diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-04-27 04:08:07 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-04-27 04:08:07 +0000 |
commit | 09baa3cc81fc7c53872e10a4cc196bff61207b19 (patch) | |
tree | d6e4008c07352e9a5dabcf69de65882db05c84c9 /src/backend/storage/large_object/inv_api.c | |
parent | e8fd57d7633ab9ddcd64861e13a59aa8dfbc3b05 (diff) | |
download | postgresql-09baa3cc81fc7c53872e10a4cc196bff61207b19.tar.gz postgresql-09baa3cc81fc7c53872e10a4cc196bff61207b19.zip |
This patch...
1. Removes the unnecessary "#define AbcRegProcedure 123"'s from
pg_proc.h.
2. Changes those #defines to use the names already defined in
fmgr.h.
3. Forces the make of fmgr.h in backend/Makefile instead of having
it
made as a dependency in access/common/Makefile *hack*hack*hack*
4. Rearranged the #includes to a less helter-skelter arrangement,
also
changing <file.h> to "file.h" to signify a non-system header.
5. Removed "pg_proc.h" from files where its only purpose was for
the
#defines removed in item #1.
6. Added "fmgr.h" to each file changed for completeness sake.
Turns out that #6 was not necessary for some files because fmgr.h
was being included in a roundabout way SIX levels deep by the first
include.
"access/genam.h"
->"access/relscan.h"
->"utils/rel.h"
->"access/strat.h"
->"access/skey.h"
->"fmgr.h"
So adding fmgr.h really didn't add anything to the compile, hopefully
just made it clearer to the programmer.
S Darren.
Diffstat (limited to 'src/backend/storage/large_object/inv_api.c')
-rw-r--r-- | src/backend/storage/large_object/inv_api.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/backend/storage/large_object/inv_api.c b/src/backend/storage/large_object/inv_api.c index 04d7d8b35d6..7dff1921d05 100644 --- a/src/backend/storage/large_object/inv_api.c +++ b/src/backend/storage/large_object/inv_api.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.28 1998/02/10 04:02:05 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.29 1998/04/27 04:06:41 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -19,8 +19,7 @@ #include <sys/stat.h> #include "postgres.h" -#include "miscadmin.h" -#include "libpq/libpq-fs.h" + #include "access/genam.h" #include "access/heapam.h" #include "access/relscan.h" @@ -29,25 +28,26 @@ #include "access/xact.h" #include "access/nbtree.h" #include "access/tupdesc.h" -#include "catalog/index.h" /* for index_create() */ #include "catalog/catalog.h" /* for newoid() */ +#include "catalog/heap.h" +#include "catalog/index.h" /* for index_create() */ #include "catalog/pg_am.h" /* for BTREE_AM_OID */ #include "catalog/pg_type.h" /* for INT4OID */ #include "catalog/pg_opclass.h" /* for INT4_OPS_OID */ -#include "catalog/pg_proc.h" /* for INT4GE_PROC_OID */ +#include "fmgr.h" +#include "libpq/libpq-fs.h" +#include "miscadmin.h" +#include "nodes/pg_list.h" #include "storage/itemptr.h" #include "storage/bufpage.h" #include "storage/bufmgr.h" +#include "storage/large_object.h" +#include "storage/lmgr.h" #include "storage/smgr.h" +#include "utils/builtins.h" /* for namestrcpy() */ #include "utils/rel.h" #include "utils/relcache.h" -#include "utils/palloc.h" -#include "storage/large_object.h" -#include "storage/lmgr.h" #include "utils/syscache.h" -#include "utils/builtins.h" /* for namestrcpy() */ -#include "catalog/heap.h" -#include "nodes/pg_list.h" /* * Warning, Will Robinson... In order to pack data into an inversion @@ -401,7 +401,7 @@ inv_seek(LargeObjectDesc *obj_desc, int offset, int whence) else { - ScanKeyEntryInitialize(&skey, 0x0, 1, INT4GE_PROC_OID, + ScanKeyEntryInitialize(&skey, 0x0, 1, F_INT4GE, Int32GetDatum(offset)); obj_desc->iscan = index_beginscan(obj_desc->index_r, @@ -593,7 +593,7 @@ inv_fetchtup(LargeObjectDesc *obj_desc, Buffer *bufP) { ScanKeyData skey; - ScanKeyEntryInitialize(&skey, 0x0, 1, INT4GE_PROC_OID, + ScanKeyEntryInitialize(&skey, 0x0, 1, F_INT4GE, Int32GetDatum(0)); obj_desc->iscan = index_beginscan(obj_desc->index_r, |