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
9fb31dcb
Commit
9fb31dcb
authored
28 years ago
by
Marc G. Fournier
Browse files
Options
Downloads
Patches
Plain Diff
Here is a /doc patch for the oid preservation code.
Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
parent
ab76bbf8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/man/copy.l
+29
-14
29 additions, 14 deletions
doc/man/copy.l
doc/man/pg_dump.1
+13
-1
13 additions, 1 deletion
doc/man/pg_dump.1
with
42 additions
and
15 deletions
doc/man/copy.l
+
29
−
14
View file @
9fb31dcb
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/doc/man/Attic/copy.l,v 1.
2
1996/09/19 20:0
8
:0
9
scrappy Exp $
.\" $Header: /cvsroot/pgsql/doc/man/Attic/copy.l,v 1.
3
1996/09/19 20:0
9
:0
1
scrappy Exp $
.TH COPY SQL 11/05/95 Postgres95 Postgres95
.SH NAME
copy \(em copy data to or from a class from or to a Unix file.
.SH SYNOPSIS
.nf
\fBcopy\fP [\fBbinary\fP] classname
\fBcopy\fP [\fBbinary\fP] classname
[\fBwith oids\fP]
\fBto\fP|\fBfrom\fP "filename"|\fBstdin\fR|\fBstdout\fR
[\fB
USING DELIMITERS
\fP delim]
[\fB
using delimiters
\fP delim]
.fi
.SH DESCRIPTION
.BR Copy
...
...
@@ -18,6 +18,11 @@ keyword
changes the behavior of field formatting, as described below.
.IR Classname
is the name of an existing class.
The keyword
.BR "with oids"
copies the internal unique object id (OID) for each row.
.IR Classname
is the name of an existing class.
.IR Filename
is the Unix pathname of the file. In place of a filename, the
keywords
...
...
@@ -26,7 +31,9 @@ can be used so that input to
.BR copy
can be written by a Libpq application and output from the
.BR copy
command can be read by a Libpq application. The
command can be read by a Libpq application.
.PP
The
.BR binary
keyword will force all data to be stored/read as binary objects rather
than as ASCII text. It is somewhat faster than the normal
...
...
@@ -34,16 +41,19 @@ than as ASCII text. It is somewhat faster than the normal
command, but is not generally portable, and the files generated are
somewhat larger, although this factor is highly dependent on the data
itself.
.PP
By default,
When copying in, the
.BR "with oids"
keyword should only be used on an empty database because
the loaded oids could conflict with existing oids.
By default, a ASCII
.BR copy
uses a tab (\\t) character as a delimiter. The delimiter may also be changed
to any other single-character with the use of
.BR "
USING DELIMITERS
" .
.BR "
using delimiters
" .
Characters in data fields which happen to match the delimiter character
will be quoted.
.PP
You must have read access on any class whose values are read by the
You must have read access on any class whose values are read by the
.BR copy
command, and either write or append access to a class to which values
are being appended by the
...
...
@@ -69,6 +79,7 @@ The actual format for each instance is
.nf
<attr1><tab><attr2><tab>...<tab><attrn><newline>
.fi
The oid is placed on the beginning of the line if specified.
.PP
If
.BR copy
...
...
@@ -111,12 +122,16 @@ this format must be followed
Unsigned four-byte integer quantities are called uint32 in the below
description.
.nf
uint32 totallength (not including itself),
uint32 number of null attributes
[uint32 attribute number of first null attribute
...
uint32 attribute number of nth null attribute],
<data>
The first value is:
uint32 number of tuples
then for each tuple:
uint32 total length of data segment
uint32 oid (if specified)
uint32 number of null attributes
[uint32 attribute number of first null attribute
...
uint32 attribute number of nth null attribute],
<data segment>
.fi
.bp
.SS "ALIGNMENT OF BINARY DATA"
...
...
This diff is collapsed.
Click to expand it.
doc/man/pg_dump.1
+
13
−
1
View file @
9fb31dcb
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/doc/man/Attic/pg_dump.1,v 1.
1.1.1
1996/0
8
/1
8
2
2:14:26
scrappy Exp $
.\" $Header: /cvsroot/pgsql/doc/man/Attic/pg_dump.1,v 1.
2
1996/0
9
/1
9
2
0:09:02
scrappy Exp $
.TH PG_DUMP UNIX 1/20/96 Postgres95 Postgres95
.SH NAME
pg_dump \(em dumps out a Postgres database into a script file
...
...
@@ -21,8 +21,20 @@ port]
.BR "-v"
]
[\c
.BR "-d[a]"
]
[\c
.BR "-S"
help]
[\c
.BR "-a"
]
[\c
.BR "-t"
table]
[\c
.BR "-o"
]
dbname
.in -5n
.SH DESCRIPTION
...
...
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