Search Postgresql Archives

Can't figure out how to use now() in default for tsrange column (PG 9.2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to set [now(), 2049-12-31 00:00:00) as the default for a tsrange column (Postgres 9.2), but can't figure out how to do it. I'm either getting syntax errors or now() is being evaluated, so that the default becomes something like [2012-07-14 14:04:35, 2049-12-31 00:00:00), which is not what I want. Can anyone point me in the right direction, please?

--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux