Re: Bug with views and defaults - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Bug with views and defaults
Date
Msg-id 200006170006.UAA06645@candle.pha.pa.us
Whole thread Raw
In response to Re: Bug with views and defaults  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> This is a known and not readily fixable problem.  It's far safer
> to write the default for a timestamp column as now(), rather than
> relying on a string literal not getting coerced to timestamp form
> too soon.  See
> http://www.postgresql.org/mhonarc/pgsql-hackers/1999-10/msg00036.html
> 
> BTW, Bruce: it probably would be wise to have the FAQ's item 4.22
> recommend now() and nothing else.  'now' has nothing much to recommend
> it and there are still pitfalls like this one.
> 
>             regards, tom lane
> 

TODO updated.


--  Bruce Momjian                        |  http://www.op.net/~candle pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug with views and defaults
Next
From: Bruce Momjian
Date:
Subject: Re: Big 7.1 open items