summaryrefslogtreecommitdiff
path: root/src/backend/nodes/parsenodes.h
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-08-24 20:49:41 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-08-24 20:49:41 +0000
commit208a30f23db0926604a338eda4ed69b5c278d2e2 (patch)
treea6b31fe54d006b5402d5dc6a3ee21dd573442116 /src/backend/nodes/parsenodes.h
parent2adb6d703bd255f531fc8e33c9d6abd8d6236a0b (diff)
downloadpostgresql-208a30f23db0926604a338eda4ed69b5c278d2e2.tar.gz
The patch does several things:
It adds a WITH OIDS option to the copy command, which allows dumping and loading of oids. If a copy command tried to load in an oid that is greater than its current system max oid, the system max oid is incremented. No checking is done to see if other backends are running and have cached oids. pg_dump as its first step when using the -o (oid) option, will copy in a dummy row to set the system max oid value so as rows are loaded in, they are certain to be lower than the system oid. pg_dump now creates indexes at the end to speed loading Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
Diffstat (limited to 'src/backend/nodes/parsenodes.h')
-rw-r--r--src/backend/nodes/parsenodes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/nodes/parsenodes.h b/src/backend/nodes/parsenodes.h
index 07f86b252e..f2c7c59109 100644
--- a/src/backend/nodes/parsenodes.h
+++ b/src/backend/nodes/parsenodes.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parsenodes.h,v 1.3 1996/08/06 16:37:53 scrappy Exp $
+ * $Id: parsenodes.h,v 1.4 1996/08/24 20:48:31 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -114,6 +114,7 @@ typedef struct CopyStmt {
NodeTag type;
bool binary; /* is a binary copy? */
char *relname; /* the relation to copy */
+ bool oids; /* copy oid's? */
int direction; /* TO or FROM */
char *filename; /* if NULL, use stdin/stdout */
char *delimiter; /* delimiter character, \t by default*/