Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
65689398
Commit
65689398
authored
23 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Mention that COPY cannot be used on a view (per recent suggestion).
Other small improvements.
parent
135dea63
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/src/sgml/ref/copy.sgml
+14
-7
14 additions, 7 deletions
doc/src/sgml/ref/copy.sgml
with
14 additions
and
7 deletions
doc/src/sgml/ref/copy.sgml
+
14
−
7
View file @
65689398
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.2
1
2001/0
5/27 09:59:27 petere
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.2
2
2001/0
8/10 23:09:30 tgl
Exp $
Postgres documentation
Postgres documentation
-->
-->
...
@@ -65,7 +65,7 @@ COPY [ BINARY ] <replaceable class="parameter">table</replaceable> [ WITH OIDS ]
...
@@ -65,7 +65,7 @@ COPY [ BINARY ] <replaceable class="parameter">table</replaceable> [ WITH OIDS ]
<term>WITH OIDS</term>
<term>WITH OIDS</term>
<listitem>
<listitem>
<para>
<para>
Specifies copying the internal
unique
object id (OID) for each row.
Specifies copying the internal object id (OID) for each row.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
...
@@ -181,12 +181,12 @@ ERROR: <replaceable>reason</replaceable>
...
@@ -181,12 +181,12 @@ ERROR: <replaceable>reason</replaceable>
</para>
</para>
<para>
<para>
<command>COPY</command> instructs
<command>COPY</command>
with a filename
instructs
the <productname>Postgres</productname> backend
the <productname>Postgres</productname> backend
to directly read from or write to a file.
If a file name is specified,
to directly read from or write to a file.
t
he file must be accessible to the backend and the name must be specified
T
he file must be accessible to the backend and the name must be specified
from the viewpoint of the backend.
from the viewpoint of the backend.
If
<filename>stdin</filename> or <filename>stdout</filename> is
When
<filename>stdin</filename> or <filename>stdout</filename> is
specified, data flows through the client frontend to the backend.
specified, data flows through the client frontend to the backend.
<tip>
<tip>
...
@@ -209,6 +209,11 @@ ERROR: <replaceable>reason</replaceable>
...
@@ -209,6 +209,11 @@ ERROR: <replaceable>reason</replaceable>
<title>
<title>
Notes
Notes
</title>
</title>
<para>
<command>COPY</command> can only be used with plain tables, not with
views.
</para>
<para>
<para>
The BINARY keyword will force all data to be
The BINARY keyword will force all data to be
stored/read as binary format rather than as text. It is
stored/read as binary format rather than as text. It is
...
@@ -318,6 +323,8 @@ ERROR: <replaceable>reason</replaceable>
...
@@ -318,6 +323,8 @@ ERROR: <replaceable>reason</replaceable>
</para>
</para>
<para>
<para>
The OID is emitted as the first column if WITH OIDS is specified.
The OID is emitted as the first column if WITH OIDS is specified.
(An error is raised if WITH OIDS is specified for a table that does not
have OIDs.)
</para>
</para>
<para>
<para>
If <command>COPY TO</command> is sending its output to standard
If <command>COPY TO</command> is sending its output to standard
...
@@ -525,7 +532,7 @@ If OIDs are included in the dump, the OID field immediately follows the
...
@@ -525,7 +532,7 @@ If OIDs are included in the dump, the OID field immediately follows the
field-count word. It is a normal field except that it's not included
field-count word. It is a normal field except that it's not included
in the field-count. In particular it has a typlen --- this will allow
in the field-count. In particular it has a typlen --- this will allow
handling of 4-byte vs 8-byte OIDs without too much pain, and will allow
handling of 4-byte vs 8-byte OIDs without too much pain, and will allow
OIDs to be shown as NULL if
we someday allow OIDs to be optional
.
OIDs to be shown as NULL if
that ever proves desirable
.
</para>
</para>
</refsect3>
</refsect3>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment