diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-10-21 15:55:29 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-10-21 15:55:29 +0000 |
commit | 293d1e5f2c0333008ba417781ccb15cb6aafa86d (patch) | |
tree | 41f9513ad8e22df9bb81c8bd67a4c98612fc5b8c /src/include/storage/large_object.h | |
parent | 33581195d5a06657b5a59763356bc3fe7d34a710 (diff) |
here it is as requested by Bruce.
I tested it restoring my database with > 100000 BLOBS, and dumping it out.
But unfortunatly I can not restore it back due to problems in pg_dump.
--
Sincerely Yours,
Denis Perchine
Diffstat (limited to 'src/include/storage/large_object.h')
-rw-r--r-- | src/include/storage/large_object.h | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/include/storage/large_object.h b/src/include/storage/large_object.h index b3d3512d949..77990c56335 100644 --- a/src/include/storage/large_object.h +++ b/src/include/storage/large_object.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: large_object.h,v 1.15 2000/10/08 03:53:15 momjian Exp $ + * $Id: large_object.h,v 1.16 2000/10/21 15:55:29 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -22,17 +22,11 @@ /* * This structure will eventually have lots more stuff associated with it. */ -typedef struct LargeObjectDesc -{ - Relation heap_r; /* heap relation */ - Relation index_r; /* index relation on seqno attribute */ - IndexScanDesc iscan; /* index scan we're using */ - TupleDesc hdesc; /* heap relation tuple desc */ - TupleDesc idesc; /* index relation tuple desc */ - uint32 lowbyte; /* low byte on the current page */ - uint32 highbyte; /* high byte on the current page */ +typedef struct LargeObjectDesc { + Relation heap_r; + Relation index_r; uint32 offset; /* current seek pointer */ - ItemPointerData htid; /* tid of current heap tuple */ + Oid id; #define IFS_RDLOCK (1 << 0) #define IFS_WRLOCK (1 << 1) @@ -55,7 +49,4 @@ extern int inv_tell(LargeObjectDesc *obj_desc); extern int inv_read(LargeObjectDesc *obj_desc, char *buf, int nbytes); extern int inv_write(LargeObjectDesc *obj_desc, char *buf, int nbytes); -/* added for buffer leak prevention [ PA ] */ -extern void inv_cleanindex(LargeObjectDesc *obj_desc); - #endif /* LARGE_OBJECT_H */ |