diff options
author | Marc G. Fournier <scrappy@hub.org> | 1996-08-24 20:49:41 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1996-08-24 20:49:41 +0000 |
commit | 208a30f23db0926604a338eda4ed69b5c278d2e2 (patch) | |
tree | a6b31fe54d006b5402d5dc6a3ee21dd573442116 /src/backend/access/transam.h | |
parent | 2adb6d703bd255f531fc8e33c9d6abd8d6236a0b (diff) |
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/access/transam.h')
-rw-r--r-- | src/backend/access/transam.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/backend/access/transam.h b/src/backend/access/transam.h index 0f5a9724dc0..ca9a47e802b 100644 --- a/src/backend/access/transam.h +++ b/src/backend/access/transam.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: transam.h,v 1.1.1.1 1996/07/09 06:21:09 scrappy Exp $ + * $Id: transam.h,v 1.2 1996/08/24 20:47:42 scrappy Exp $ * * NOTES * Transaction System Version 101 now support proper oid @@ -46,6 +46,14 @@ typedef unsigned char XidStatus; /* (2 bits) */ +/* ---------- + * note: we reserve the first 16384 object ids for internal use. + * oid's less than this appear in the .bki files. the choice of + * 16384 is completely arbitrary. + * ---------- + */ +#define BootstrapObjectIdData 16384 + /* ---------------- * BitIndexOf computes the index of the Nth xid on a given block * ---------------- @@ -182,6 +190,7 @@ extern void GetNewTransactionId(TransactionId *xid); extern void UpdateLastCommittedXid(TransactionId xid); extern void GetNewObjectIdBlock(Oid *oid_return, int oid_block_size); extern void GetNewObjectId(Oid *oid_return); +extern void CheckMaxObjectId(Oid assigned_oid); /* ---------------- * global variable extern declarations |