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
9cecff03
Commit
9cecff03
authored
22 years ago
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document that zero-column tables are allowed (and non-standard).
parent
5131e5ab
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
doc/src/sgml/ref/alter_table.sgml
doc/src/sgml/ref/alter_table.sgml
+7
-1
doc/src/sgml/ref/create_table.sgml
doc/src/sgml/ref/create_table.sgml
+14
-1
No files found.
doc/src/sgml/ref/alter_table.sgml
View file @
9cecff03
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.5
2 2002/10/19 23:09:20
tgl Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.5
3 2002/12/16 19:08:25
tgl Exp $
PostgreSQL documentation
-->
...
...
@@ -506,6 +506,12 @@ ALTER TABLE distributors ADD PRIMARY KEY (dist_id);
The clauses to rename tables, columns, indexes, and sequences are
<productname>PostgreSQL</productname> extensions from SQL92.
</para>
<para>
<command>ALTER TABLE DROP COLUMN</> can be used to drop the only column
of a table, leaving a zero-column table. This is an extension from SQL92,
which disallows zero-column tables.
</para>
</refsect2>
</refsect1>
...
...
This diff is collapsed.
Click to expand it.
doc/src/sgml/ref/create_table.sgml
View file @
9cecff03
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.
59 2002/11/21 23:34:43 petere
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.
60 2002/12/16 19:08:25 tgl
Exp $
PostgreSQL documentation
-->
...
...
@@ -915,6 +915,19 @@ CREATE ASSERTION <replaceable>name</replaceable> CHECK ( <replaceable>condition<
standard.
</para>
</refsect2>
<refsect2>
<title>Zero-column tables</title>
<para>
<productname>PostgreSQL</productname> allows a table of no columns
to be created (for example, <literal>CREATE TABLE foo();</>). This
is an extension from the SQL standard, which does not allow zero-column
tables. Zero-column tables are not in themselves very useful, but
disallowing them creates odd special cases for <command>ALTER TABLE
DROP COLUMN</>, so it seems cleaner to ignore this spec restriction.
</para>
</refsect2>
</refsect1>
...
...
This diff is collapsed.
Click to expand it.
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