Re: [HACKERS] create table and default 'now' problem ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Cc: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] create table and default 'now' problem ?
Date: 1999-09-21 14:25:16
Message-ID: 21636.937923916@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> writes:
> Thank you Tom for explanation. It's not very bothered me as far as I have
> many workarounds suggested in mailing list. But I wondering because
> 'now'::text works as expected when I create view

Yes, it's just the context of a DEFAULT expression that has these
problems. (Actually, it looks like constraints --- CHECK() expressions
--- are handled in the same bogus way, but we don't seem to get as many
gripes about them...)

regards, tom lane

Browse pgsql-hackers by date

  From Date Subject
Next Message Vadim Mikheev 1999-09-21 14:33:20 Re: [HACKERS] Re: Referential Integrity In PostgreSQL
Previous Message Oleg Bartunov 1999-09-21 14:09:34 Re: [HACKERS] create table and default 'now' problem ?