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
65689398
Commit
65689398
authored
Aug 10, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mention that COPY cannot be used on a view (per recent suggestion).
Other small improvements.
parent
135dea63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
doc/src/sgml/ref/copy.sgml
doc/src/sgml/ref/copy.sgml
+14
-7
No files found.
doc/src/sgml/ref/copy.sgml
View file @
65689398
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.2
1 2001/05/27 09:59:27 petere
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.2
2 2001/08/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>
...
...
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