Re: Bug with views and defaults

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Bug with views and defaults
Дата
Msg-id 200006170006.UAA06645@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Bug with views and defaults  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Bug with views and defaults
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Big 7.1 open items