From: Bruce Momjian Date: Thu, 13 Apr 2000 07:19:27 +0000 (+0000) Subject: No longer need to cast default non-cacheable functions. X-Git-Tag: REL7_0~150 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=5eaa271b77858c5ce01c87c8bd36359fd7dc58f3;p=users%2Fkgrittn%2Fpostgres.git No longer need to cast default non-cacheable functions. --- diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml index 0e4642e912..9bc0968a43 100644 --- a/doc/src/sgml/ref/create_table.sgml +++ b/doc/src/sgml/ref/create_table.sgml @@ -1,5 +1,5 @@ @@ -393,21 +393,6 @@ DEFAULT value - - In the current release (v7.0), Postgres - evaluates all default expressions at the time the table is defined. - Hence, functions which are "non-cacheable" such as - CURRENT_TIMESTAMP may not produce the desired - effect. For the particular case of date/time types, one can work - around this behavior by using - DEFAULT TEXT 'now' - instead of - DEFAULT 'now' - or - DEFAULT CURRENT_TIMESTAMP. - This forces Postgres to consider the constant a string - type and then to convert the value to timestamp at runtime. -