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
3f4f235f
Commit
3f4f235f
authored
Apr 14, 2003
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another try at correctly explaining the difference between Postgres and
SQL92 temp tables. Possibly I got it right this time.
parent
0851e122
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
doc/src/sgml/ref/create_table.sgml
doc/src/sgml/ref/create_table.sgml
+16
-9
No files found.
doc/src/sgml/ref/create_table.sgml
View file @
3f4f235f
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.6
5 2003/04/14 15:40:02
tgl Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.6
6 2003/04/14 18:08:58
tgl Exp $
PostgreSQL documentation
PostgreSQL documentation
-->
-->
...
@@ -828,14 +828,14 @@ CREATE TABLE distributors (
...
@@ -828,14 +828,14 @@ CREATE TABLE distributors (
<para>
<para>
Although the syntax of <literal>CREATE TEMPORARY TABLE</literal>
Although the syntax of <literal>CREATE TEMPORARY TABLE</literal>
resembles that of SQL92, the effect is not the same. In the standard,
resembles that of SQL92, the effect is not the same. In the standard,
temporary tables are associated with modules; a temporary table is created
temporary tables are defined just once and automatically exist (starting
just once and automatically exists (starting with empty contents) in every
with empty contents) in every session that needs them.
session that uses the module.
<productname>PostgreSQL</productname> instead
<productname>PostgreSQL</productname> does not have modules, and
requires each session to issue its own <literal>CREATE TEMPORARY
requires each session to issue its own <literal>CREATE TEMPORARY
TABLE</literal> command for each temporary table to be used.
TABLE</literal> command for each temporary table to be used. This allows
The notion of <literal>GLOBAL</literal> temporary tables found in SQL92
different sessions to use the same temporary table name for different
is not in <productname>PostgreSQL</productname> at all.
purposes, whereas the spec's approach constrains all instances of a
given temporary table name to have the same table structure.
</para>
</para>
<note>
<note>
...
@@ -846,6 +846,13 @@ CREATE TABLE distributors (
...
@@ -846,6 +846,13 @@ CREATE TABLE distributors (
</para>
</para>
</note>
</note>
<para>
SQL92's distinction between global and local temporary tables
is not in <productname>PostgreSQL</productname>, since that distinction
depends on the concept of modules, which
<productname>PostgreSQL</productname> does not have.
</para>
<para>
<para>
The <literal>ON COMMIT</literal> clause for temporary tables
The <literal>ON COMMIT</literal> clause for temporary tables
also resembles SQL92, but has some differences.
also resembles SQL92, but has some differences.
...
@@ -853,7 +860,7 @@ CREATE TABLE distributors (
...
@@ -853,7 +860,7 @@ CREATE TABLE distributors (
default behavior is <literal>ON COMMIT DELETE ROWS</>. However, the
default behavior is <literal>ON COMMIT DELETE ROWS</>. However, the
default behavior in <productname>PostgreSQL</productname> is
default behavior in <productname>PostgreSQL</productname> is
<literal>ON COMMIT PRESERVE ROWS</literal>. The <literal>ON COMMIT
<literal>ON COMMIT PRESERVE ROWS</literal>. The <literal>ON COMMIT
DROP</literal> option does not exist in SQL92
at all
.
DROP</literal> option does not exist in SQL92.
</para>
</para>
</refsect2>
</refsect2>
...
...
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