Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
5eaa271b
Commit
5eaa271b
authored
Apr 13, 2000
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No longer need to cast default non-cacheable functions.
parent
97580f69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
doc/src/sgml/ref/create_table.sgml
doc/src/sgml/ref/create_table.sgml
+1
-16
No files found.
doc/src/sgml/ref/create_table.sgml
View file @
5eaa271b
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.2
1 2000/04/12 04:40:03 thomas
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.2
2 2000/04/13 07:19:27 momjian
Exp $
Postgres documentation
Postgres documentation
-->
-->
...
@@ -393,21 +393,6 @@ DEFAULT <replaceable class="PARAMETER">value</replaceable>
...
@@ -393,21 +393,6 @@ DEFAULT <replaceable class="PARAMETER">value</replaceable>
</variablelist>
</variablelist>
</para>
</para>
<para>
In the current release (v7.0), <productname>Postgres</productname>
evaluates all default expressions at the time the table is defined.
Hence, functions which are "non-cacheable" such as
<function>CURRENT_TIMESTAMP</function> may not produce the desired
effect. For the particular case of date/time types, one can work
around this behavior by using
<quote>DEFAULT TEXT 'now'</quote>
instead of
<quote>DEFAULT 'now'</quote>
or
<quote>DEFAULT CURRENT_TIMESTAMP</quote>.
This forces <productname>Postgres</productname> to consider the constant a string
type and then to convert the value to <type>timestamp</type> at runtime.
</para>
</refsect2>
</refsect2>
<refsect2 id="R2-SQL-DEFAULTCLAUSE-4">
<refsect2 id="R2-SQL-DEFAULTCLAUSE-4">
<title>
<title>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment