Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5eaa271

Browse files
committed
No longer need to cast default non-cacheable functions.
1 parent97580f6 commit5eaa271

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

‎doc/src/sgml/ref/create_table.sgml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.21 2000/04/12 04:40:03 thomas Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.22 2000/04/13 07:19:27 momjian Exp $
33
Postgres documentation
44
-->
55

@@ -393,21 +393,6 @@ DEFAULT <replaceable class="PARAMETER">value</replaceable>
393393
</variablelist>
394394
</para>
395395

396-
<para>
397-
In the current release (v7.0), <productname>Postgres</productname>
398-
evaluates all default expressions at the time the table is defined.
399-
Hence, functions which are "non-cacheable" such as
400-
<function>CURRENT_TIMESTAMP</function> may not produce the desired
401-
effect. For the particular case of date/time types, one can work
402-
around this behavior by using
403-
<quote>DEFAULT TEXT 'now'</quote>
404-
instead of
405-
<quote>DEFAULT 'now'</quote>
406-
or
407-
<quote>DEFAULT CURRENT_TIMESTAMP</quote>.
408-
This forces <productname>Postgres</productname> to consider the constant a string
409-
type and then to convert the value to <type>timestamp</type> at runtime.
410-
</para>
411396
</refsect2>
412397
<refsect2 id="R2-SQL-DEFAULTCLAUSE-4">
413398
<title>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp