Question

This doesn't work:

create table event (
...
time int default date_part('epoch', timestamp 'now'),
...
);
Was it helpful?

Solution

I'm no postgresql expert but shouldn't this one work

time int default date_part('epoch', now())
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top