Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
72295139
Commit
72295139
authored
Jan 24, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix prototypes so they don't look like function definitions.
parent
27317a0d
Changes
82
Hide whitespace changes
Inline
Side-by-side
Showing
82 changed files
with
289 additions
and
499 deletions
+289
-499
src/include/access/genam.h
src/include/access/genam.h
+7
-13
src/include/access/gist.h
src/include/access/gist.h
+3
-6
src/include/access/gistscan.h
src/include/access/gistscan.h
+1
-2
src/include/access/giststrat.h
src/include/access/giststrat.h
+1
-2
src/include/access/hash.h
src/include/access/hash.h
+10
-19
src/include/access/heapam.h
src/include/access/heapam.h
+9
-16
src/include/access/hio.h
src/include/access/hio.h
+2
-3
src/include/access/iqual.h
src/include/access/iqual.h
+2
-3
src/include/access/istrat.h
src/include/access/istrat.h
+6
-11
src/include/access/itup.h
src/include/access/itup.h
+4
-7
src/include/access/nbtree.h
src/include/access/nbtree.h
+12
-23
src/include/access/rtree.h
src/include/access/rtree.h
+6
-11
src/include/access/rtstrat.h
src/include/access/rtstrat.h
+2
-3
src/include/access/skey.h
src/include/access/skey.h
+2
-3
src/include/access/transam.h
src/include/access/transam.h
+4
-7
src/include/access/tupdesc.h
src/include/access/tupdesc.h
+2
-3
src/include/bootstrap/bootstrap.h
src/include/bootstrap/bootstrap.h
+2
-3
src/include/c.h
src/include/c.h
+2
-3
src/include/catalog/heap.h
src/include/catalog/heap.h
+2
-3
src/include/catalog/index.h
src/include/catalog/index.h
+8
-15
src/include/catalog/indexing.h
src/include/catalog/indexing.h
+5
-9
src/include/catalog/pg_aggregate.h
src/include/catalog/pg_aggregate.h
+3
-5
src/include/catalog/pg_operator.h
src/include/catalog/pg_operator.h
+2
-3
src/include/catalog/pg_proc.h
src/include/catalog/pg_proc.h
+2
-3
src/include/catalog/pg_type.h
src/include/catalog/pg_type.h
+2
-3
src/include/commands/command.h
src/include/commands/command.h
+3
-5
src/include/commands/defrem.h
src/include/commands/defrem.h
+4
-7
src/include/commands/rename.h
src/include/commands/rename.h
+3
-5
src/include/executor/execdesc.h
src/include/executor/execdesc.h
+2
-3
src/include/executor/functions.h
src/include/executor/functions.h
+3
-5
src/include/executor/nodeHash.h
src/include/executor/nodeHash.h
+4
-7
src/include/executor/nodeHashjoin.h
src/include/executor/nodeHashjoin.h
+2
-3
src/include/executor/spi.h
src/include/executor/spi.h
+1
-2
src/include/lib/qsort.h
src/include/lib/qsort.h
+2
-3
src/include/libpq/hba.h
src/include/libpq/hba.h
+2
-3
src/include/libpq/libpq-be.h
src/include/libpq/libpq-be.h
+3
-5
src/include/libpq/libpq.h
src/include/libpq/libpq.h
+4
-7
src/include/libpq/pqcomm.h
src/include/libpq/pqcomm.h
+2
-3
src/include/nodes/makefuncs.h
src/include/nodes/makefuncs.h
+5
-9
src/include/nodes/print.h
src/include/nodes/print.h
+2
-3
src/include/optimizer/clauseinfo.h
src/include/optimizer/clauseinfo.h
+3
-5
src/include/optimizer/clauses.h
src/include/optimizer/clauses.h
+3
-5
src/include/optimizer/cost.h
src/include/optimizer/cost.h
+6
-11
src/include/optimizer/ordering.h
src/include/optimizer/ordering.h
+4
-7
src/include/optimizer/pathnode.h
src/include/optimizer/pathnode.h
+6
-11
src/include/optimizer/paths.h
src/include/optimizer/paths.h
+9
-17
src/include/optimizer/plancat.h
src/include/optimizer/plancat.h
+6
-11
src/include/optimizer/tlist.h
src/include/optimizer/tlist.h
+2
-3
src/include/optimizer/xfunc.h
src/include/optimizer/xfunc.h
+3
-5
src/include/rewrite/locks.h
src/include/rewrite/locks.h
+2
-3
src/include/rewrite/rewriteSupport.h
src/include/rewrite/rewriteSupport.h
+2
-3
src/include/storage/buf_internals.h
src/include/storage/buf_internals.h
+2
-3
src/include/storage/bufmgr.h
src/include/storage/bufmgr.h
+3
-5
src/include/storage/bufpage.h
src/include/storage/bufpage.h
+2
-3
src/include/storage/ipc.h
src/include/storage/ipc.h
+3
-5
src/include/storage/lmgr.h
src/include/storage/lmgr.h
+7
-13
src/include/storage/lock.h
src/include/storage/lock.h
+3
-5
src/include/storage/shmem.h
src/include/storage/shmem.h
+4
-7
src/include/storage/sinval.h
src/include/storage/sinval.h
+2
-3
src/include/storage/sinvaladt.h
src/include/storage/sinvaladt.h
+2
-3
src/include/storage/smgr.h
src/include/storage/smgr.h
+7
-13
src/include/tcop/dest.h
src/include/tcop/dest.h
+2
-3
src/include/tcop/pquery.h
src/include/tcop/pquery.h
+3
-5
src/include/tcop/tcopprot.h
src/include/tcop/tcopprot.h
+3
-5
src/include/utils/acl.h
src/include/utils/acl.h
+4
-7
src/include/utils/array.h
src/include/utils/array.h
+9
-17
src/include/utils/catcache.h
src/include/utils/catcache.h
+5
-9
src/include/utils/datum.h
src/include/utils/datum.h
+2
-3
src/include/utils/dt.h
src/include/utils/dt.h
+5
-9
src/include/utils/exc.h
src/include/utils/exc.h
+3
-5
src/include/utils/fcache2.h
src/include/utils/fcache2.h
+2
-3
src/include/utils/geo_decls.h
src/include/utils/geo_decls.h
+3
-5
src/include/utils/hsearch.h
src/include/utils/hsearch.h
+2
-3
src/include/utils/lselect.h
src/include/utils/lselect.h
+4
-7
src/include/utils/lsyscache.h
src/include/utils/lsyscache.h
+2
-3
src/include/utils/mcxt.h
src/include/utils/mcxt.h
+2
-3
src/include/utils/memutils.h
src/include/utils/memutils.h
+2
-3
src/include/utils/portal.h
src/include/utils/portal.h
+2
-3
src/include/utils/rel.h
src/include/utils/rel.h
+2
-3
src/include/utils/rel2.h
src/include/utils/rel2.h
+2
-3
src/include/utils/relcache.h
src/include/utils/relcache.h
+2
-3
src/include/utils/syscache.h
src/include/utils/syscache.h
+4
-7
No files found.
src/include/access/genam.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: genam.h,v 1.1
0 1997/09/08 21:50:34
momjian Exp $
* $Id: genam.h,v 1.1
1 1998/01/24 22:47:48
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -25,31 +25,25 @@
...
@@ -25,31 +25,25 @@
extern
Relation
index_open
(
Oid
relationId
);
extern
Relation
index_open
(
Oid
relationId
);
extern
Relation
index_openr
(
char
*
relationName
);
extern
Relation
index_openr
(
char
*
relationName
);
extern
void
index_close
(
Relation
relation
);
extern
void
index_close
(
Relation
relation
);
extern
InsertIndexResult
extern
InsertIndexResult
index_insert
(
Relation
relation
,
index_insert
(
Relation
relation
,
Datum
*
datum
,
char
*
nulls
,
Datum
*
datum
,
char
*
nulls
,
ItemPointer
heap_t_ctid
,
ItemPointer
heap_t_ctid
,
Relation
heapRel
);
Relation
heapRel
);
extern
void
index_delete
(
Relation
relation
,
ItemPointer
indexItem
);
extern
void
index_delete
(
Relation
relation
,
ItemPointer
indexItem
);
extern
IndexScanDesc
extern
IndexScanDesc
index_beginscan
(
Relation
relation
,
bool
scanFromEnd
,
index_beginscan
(
Relation
relation
,
bool
scanFromEnd
,
uint16
numberOfKeys
,
ScanKey
key
);
uint16
numberOfKeys
,
ScanKey
key
);
extern
void
index_rescan
(
IndexScanDesc
scan
,
bool
scanFromEnd
,
ScanKey
key
);
extern
void
index_rescan
(
IndexScanDesc
scan
,
bool
scanFromEnd
,
ScanKey
key
);
extern
void
index_endscan
(
IndexScanDesc
scan
);
extern
void
index_endscan
(
IndexScanDesc
scan
);
extern
RetrieveIndexResult
extern
RetrieveIndexResult
index_getnext
(
IndexScanDesc
scan
,
index_getnext
(
IndexScanDesc
scan
,
ScanDirection
direction
);
ScanDirection
direction
);
extern
RegProcedure
extern
RegProcedure
index_getprocid
(
Relation
irel
,
AttrNumber
attnum
,
index_getprocid
(
Relation
irel
,
AttrNumber
attnum
,
uint16
procnum
);
uint16
procnum
);
extern
Datum
extern
Datum
GetIndexValue
(
HeapTuple
tuple
,
TupleDesc
hTupDesc
,
GetIndexValue
(
HeapTuple
tuple
,
TupleDesc
hTupDesc
,
int
attOff
,
AttrNumber
attrNums
[],
FuncIndexInfo
*
fInfo
,
int
attOff
,
AttrNumber
attrNums
[],
FuncIndexInfo
*
fInfo
,
bool
*
attNull
,
Buffer
buffer
);
bool
*
attNull
,
Buffer
buffer
);
/* in genam.c */
/* in genam.c */
extern
IndexScanDesc
extern
IndexScanDesc
RelationGetIndexScan
(
Relation
relation
,
bool
scanFromEnd
,
RelationGetIndexScan
(
Relation
relation
,
bool
scanFromEnd
,
uint16
numberOfKeys
,
ScanKey
key
);
uint16
numberOfKeys
,
ScanKey
key
);
extern
void
IndexScanMarkPosition
(
IndexScanDesc
scan
);
extern
void
IndexScanMarkPosition
(
IndexScanDesc
scan
);
extern
void
IndexScanRestorePosition
(
IndexScanDesc
scan
);
extern
void
IndexScanRestorePosition
(
IndexScanDesc
scan
);
...
...
src/include/access/gist.h
View file @
72295139
...
@@ -188,21 +188,18 @@ typedef struct intrange
...
@@ -188,21 +188,18 @@ typedef struct intrange
int
flag
;
int
flag
;
}
INTRANGE
;
}
INTRANGE
;
extern
void
extern
void
gistbuild
(
Relation
heap
,
gistbuild
(
Relation
heap
,
Relation
index
,
int
natts
,
Relation
index
,
int
natts
,
AttrNumber
*
attnum
,
IndexStrategy
istrat
,
AttrNumber
*
attnum
,
IndexStrategy
istrat
,
uint16
pint
,
Datum
*
params
,
uint16
pint
,
Datum
*
params
,
FuncIndexInfo
*
finfo
,
FuncIndexInfo
*
finfo
,
PredInfo
*
predInfo
);
PredInfo
*
predInfo
);
extern
InsertIndexResult
extern
InsertIndexResult
gistinsert
(
Relation
r
,
Datum
*
datum
,
gistinsert
(
Relation
r
,
Datum
*
datum
,
char
*
nulls
,
ItemPointer
ht_ctid
,
Relation
heapRel
);
char
*
nulls
,
ItemPointer
ht_ctid
,
Relation
heapRel
);
extern
void
_gistdump
(
Relation
r
);
extern
void
_gistdump
(
Relation
r
);
extern
void
gistfreestack
(
GISTSTACK
*
s
);
extern
void
gistfreestack
(
GISTSTACK
*
s
);
extern
void
initGISTstate
(
GISTSTATE
*
giststate
,
Relation
index
);
extern
void
initGISTstate
(
GISTSTATE
*
giststate
,
Relation
index
);
extern
void
extern
void
gistdentryinit
(
GISTSTATE
*
giststate
,
GISTENTRY
*
e
,
char
*
pr
,
gistdentryinit
(
GISTSTATE
*
giststate
,
GISTENTRY
*
e
,
char
*
pr
,
Relation
r
,
Page
pg
,
OffsetNumber
o
,
int
b
,
bool
l
);
Relation
r
,
Page
pg
,
OffsetNumber
o
,
int
b
,
bool
l
);
extern
StrategyNumber
RelationGetGISTStrategy
(
Relation
,
AttrNumber
,
RegProcedure
);
extern
StrategyNumber
RelationGetGISTStrategy
(
Relation
,
AttrNumber
,
RegProcedure
);
...
...
src/include/access/gistscan.h
View file @
72295139
...
@@ -16,8 +16,7 @@
...
@@ -16,8 +16,7 @@
#include <storage/block.h>
#include <storage/block.h>
#include <utils/rel.h>
#include <utils/rel.h>
extern
IndexScanDesc
extern
IndexScanDesc
gistbeginscan
(
Relation
r
,
bool
fromEnd
,
gistbeginscan
(
Relation
r
,
bool
fromEnd
,
uint16
nkeys
,
ScanKey
key
);
uint16
nkeys
,
ScanKey
key
);
extern
void
gistrescan
(
IndexScanDesc
s
,
bool
fromEnd
,
ScanKey
key
);
extern
void
gistrescan
(
IndexScanDesc
s
,
bool
fromEnd
,
ScanKey
key
);
extern
void
gistmarkpos
(
IndexScanDesc
s
);
extern
void
gistmarkpos
(
IndexScanDesc
s
);
...
...
src/include/access/giststrat.h
View file @
72295139
...
@@ -15,8 +15,7 @@
...
@@ -15,8 +15,7 @@
#include <access/strat.h>
#include <access/strat.h>
#include <utils/rel.h>
#include <utils/rel.h>
extern
StrategyNumber
extern
StrategyNumber
RelationGetGISTStrategy
(
Relation
r
,
RelationGetGISTStrategy
(
Relation
r
,
AttrNumber
attnum
,
RegProcedure
proc
);
AttrNumber
attnum
,
RegProcedure
proc
);
#endif
/* GISTSTRAT_H */
#endif
/* GISTSTRAT_H */
src/include/access/hash.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: hash.h,v 1.1
1 1997/09/08 21:50:44
momjian Exp $
* $Id: hash.h,v 1.1
2 1998/01/24 22:47:55
momjian Exp $
*
*
* NOTES
* NOTES
* modeled after Margo Seltzer's hash implementation for unix.
* modeled after Margo Seltzer's hash implementation for unix.
...
@@ -248,16 +248,13 @@ typedef HashItemData *HashItem;
...
@@ -248,16 +248,13 @@ typedef HashItemData *HashItem;
/* public routines */
/* public routines */
extern
void
extern
void
hashbuild
(
Relation
heap
,
Relation
index
,
int
natts
,
hashbuild
(
Relation
heap
,
Relation
index
,
int
natts
,
AttrNumber
*
attnum
,
IndexStrategy
istrat
,
uint16
pcount
,
AttrNumber
*
attnum
,
IndexStrategy
istrat
,
uint16
pcount
,
Datum
*
params
,
FuncIndexInfo
*
finfo
,
PredInfo
*
predInfo
);
Datum
*
params
,
FuncIndexInfo
*
finfo
,
PredInfo
*
predInfo
);
extern
InsertIndexResult
extern
InsertIndexResult
hashinsert
(
Relation
rel
,
Datum
*
datum
,
char
*
nulls
,
hashinsert
(
Relation
rel
,
Datum
*
datum
,
char
*
nulls
,
ItemPointer
ht_ctid
,
Relation
heapRel
);
ItemPointer
ht_ctid
,
Relation
heapRel
);
extern
char
*
hashgettuple
(
IndexScanDesc
scan
,
ScanDirection
dir
);
extern
char
*
hashgettuple
(
IndexScanDesc
scan
,
ScanDirection
dir
);
extern
char
*
extern
char
*
hashbeginscan
(
Relation
rel
,
bool
fromEnd
,
uint16
keysz
,
hashbeginscan
(
Relation
rel
,
bool
fromEnd
,
uint16
keysz
,
ScanKey
scankey
);
ScanKey
scankey
);
extern
void
hashrescan
(
IndexScanDesc
scan
,
bool
fromEnd
,
ScanKey
scankey
);
extern
void
hashrescan
(
IndexScanDesc
scan
,
bool
fromEnd
,
ScanKey
scankey
);
extern
void
hashendscan
(
IndexScanDesc
scan
);
extern
void
hashendscan
(
IndexScanDesc
scan
);
...
@@ -288,11 +285,9 @@ extern InsertIndexResult _hash_doinsert(Relation rel, HashItem hitem);
...
@@ -288,11 +285,9 @@ extern InsertIndexResult _hash_doinsert(Relation rel, HashItem hitem);
/* hashovfl.c */
/* hashovfl.c */
extern
Buffer
_hash_addovflpage
(
Relation
rel
,
Buffer
*
metabufp
,
Buffer
buf
);
extern
Buffer
_hash_addovflpage
(
Relation
rel
,
Buffer
*
metabufp
,
Buffer
buf
);
extern
Buffer
_hash_freeovflpage
(
Relation
rel
,
Buffer
ovflbuf
);
extern
Buffer
_hash_freeovflpage
(
Relation
rel
,
Buffer
ovflbuf
);
extern
int32
extern
int32
_hash_initbitmap
(
Relation
rel
,
HashMetaPage
metap
,
int32
pnum
,
_hash_initbitmap
(
Relation
rel
,
HashMetaPage
metap
,
int32
pnum
,
int32
nbits
,
int32
ndx
);
int32
nbits
,
int32
ndx
);
extern
void
extern
void
_hash_squeezebucket
(
Relation
rel
,
HashMetaPage
metap
,
_hash_squeezebucket
(
Relation
rel
,
HashMetaPage
metap
,
Bucket
bucket
);
Bucket
bucket
);
...
@@ -302,8 +297,7 @@ extern Buffer _hash_getbuf(Relation rel, BlockNumber blkno, int access);
...
@@ -302,8 +297,7 @@ extern Buffer _hash_getbuf(Relation rel, BlockNumber blkno, int access);
extern
void
_hash_relbuf
(
Relation
rel
,
Buffer
buf
,
int
access
);
extern
void
_hash_relbuf
(
Relation
rel
,
Buffer
buf
,
int
access
);
extern
void
_hash_wrtbuf
(
Relation
rel
,
Buffer
buf
);
extern
void
_hash_wrtbuf
(
Relation
rel
,
Buffer
buf
);
extern
void
_hash_wrtnorelbuf
(
Relation
rel
,
Buffer
buf
);
extern
void
_hash_wrtnorelbuf
(
Relation
rel
,
Buffer
buf
);
extern
Page
extern
Page
_hash_chgbufaccess
(
Relation
rel
,
Buffer
*
bufp
,
int
from_access
,
_hash_chgbufaccess
(
Relation
rel
,
Buffer
*
bufp
,
int
from_access
,
int
to_access
);
int
to_access
);
extern
void
_hash_pageinit
(
Page
page
,
Size
size
);
extern
void
_hash_pageinit
(
Page
page
,
Size
size
);
extern
void
_hash_pagedel
(
Relation
rel
,
ItemPointer
tid
);
extern
void
_hash_pagedel
(
Relation
rel
,
ItemPointer
tid
);
...
@@ -317,19 +311,16 @@ extern void _hash_adjscans(Relation rel, ItemPointer tid);
...
@@ -317,19 +311,16 @@ extern void _hash_adjscans(Relation rel, ItemPointer tid);
/* hashsearch.c */
/* hashsearch.c */
extern
void
extern
void
_hash_search
(
Relation
rel
,
int
keysz
,
ScanKey
scankey
,
_hash_search
(
Relation
rel
,
int
keysz
,
ScanKey
scankey
,
Buffer
*
bufP
,
HashMetaPage
metap
);
Buffer
*
bufP
,
HashMetaPage
metap
);
extern
RetrieveIndexResult
_hash_next
(
IndexScanDesc
scan
,
ScanDirection
dir
);
extern
RetrieveIndexResult
_hash_next
(
IndexScanDesc
scan
,
ScanDirection
dir
);
extern
RetrieveIndexResult
_hash_first
(
IndexScanDesc
scan
,
ScanDirection
dir
);
extern
RetrieveIndexResult
_hash_first
(
IndexScanDesc
scan
,
ScanDirection
dir
);
extern
bool
extern
bool
_hash_step
(
IndexScanDesc
scan
,
Buffer
*
bufP
,
ScanDirection
dir
,
_hash_step
(
IndexScanDesc
scan
,
Buffer
*
bufP
,
ScanDirection
dir
,
Buffer
metabuf
);
Buffer
metabuf
);
/* hashutil.c */
/* hashutil.c */
extern
ScanKey
extern
ScanKey
_hash_mkscankey
(
Relation
rel
,
IndexTuple
itup
,
_hash_mkscankey
(
Relation
rel
,
IndexTuple
itup
,
HashMetaPage
metap
);
HashMetaPage
metap
);
extern
void
_hash_freeskey
(
ScanKey
skey
);
extern
void
_hash_freeskey
(
ScanKey
skey
);
extern
bool
_hash_checkqual
(
IndexScanDesc
scan
,
IndexTuple
itup
);
extern
bool
_hash_checkqual
(
IndexScanDesc
scan
,
IndexTuple
itup
);
...
...
src/include/access/heapam.h
View file @
72295139
/
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*
*
*
heapam
.
h
--
*
heapam
.
h
--
*
POSTGRES
heap
access
method
definitions
.
*
POSTGRES
heap
access
method
definitions
.
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
*
Copyright
(
c
)
1994
,
Regents
of
the
University
of
California
*
Copyright
(
c
)
1994
,
Regents
of
the
University
of
California
*
*
* $Id: heapam.h,v 1.2
2 1997/11/20 23:23:31
momjian Exp $
*
$
Id
:
heapam
.
h
,
v
1
.
2
3
1998
/
01
/
24
22
:
47
:
59
momjian
Exp
$
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -121,26 +121,22 @@ extern void doinsert(Relation relation, HeapTuple tup);
...
@@ -121,26 +121,22 @@ extern void doinsert(Relation relation, HeapTuple tup);
extern
Relation
heap_open
(
Oid
relationId
);
extern
Relation
heap_open
(
Oid
relationId
);
extern
Relation
heap_openr
(
char
*
relationName
);
extern
Relation
heap_openr
(
char
*
relationName
);
extern
void
heap_close
(
Relation
relation
);
extern
void
heap_close
(
Relation
relation
);
extern
HeapScanDesc
extern
HeapScanDesc
heap_beginscan
(
Relation
relation
,
int
atend
,
heap_beginscan
(
Relation
relation
,
int
atend
,
bool
seeself
,
unsigned
nkeys
,
ScanKey
key
);
bool
seeself
,
unsigned
nkeys
,
ScanKey
key
);
extern
void
heap_rescan
(
HeapScanDesc
sdesc
,
bool
scanFromEnd
,
ScanKey
key
);
extern
void
heap_rescan
(
HeapScanDesc
sdesc
,
bool
scanFromEnd
,
ScanKey
key
);
extern
void
heap_endscan
(
HeapScanDesc
sdesc
);
extern
void
heap_endscan
(
HeapScanDesc
sdesc
);
extern
HeapTuple
heap_getnext
(
HeapScanDesc
scandesc
,
int
backw
,
Buffer
*
b
);
extern
HeapTuple
heap_getnext
(
HeapScanDesc
scandesc
,
int
backw
,
Buffer
*
b
);
extern
HeapTuple
extern
HeapTuple
heap_fetch
(
Relation
relation
,
bool
seeself
,
ItemPointer
tid
,
Buffer
*
b
);
heap_fetch
(
Relation
relation
,
bool
seeself
,
ItemPointer
tid
,
Buffer
*
b
);
extern
Oid
heap_insert
(
Relation
relation
,
HeapTuple
tup
);
extern
Oid
heap_insert
(
Relation
relation
,
HeapTuple
tup
);
extern
int
heap_delete
(
Relation
relation
,
ItemPointer
tid
);
extern
int
heap_delete
(
Relation
relation
,
ItemPointer
tid
);
extern
int
extern
int
heap_replace
(
Relation
relation
,
ItemPointer
otid
,
heap_replace
(
Relation
relation
,
ItemPointer
otid
,
HeapTuple
tup
);
HeapTuple
tup
);
extern
void
heap_markpos
(
HeapScanDesc
sdesc
);
extern
void
heap_markpos
(
HeapScanDesc
sdesc
);
extern
void
heap_restrpos
(
HeapScanDesc
sdesc
);
extern
void
heap_restrpos
(
HeapScanDesc
sdesc
);
/* in common/heaptuple.c */
/* in common/heaptuple.c */
extern
Size
ComputeDataSize
(
TupleDesc
tupleDesc
,
Datum
value
[],
char
nulls
[]);
extern
Size
ComputeDataSize
(
TupleDesc
tupleDesc
,
Datum
value
[],
char
nulls
[]);
extern
void
extern
void
DataFill
(
char
*
data
,
TupleDesc
tupleDesc
,
DataFill
(
char
*
data
,
TupleDesc
tupleDesc
,
Datum
value
[],
char
nulls
[],
uint16
*
infomask
,
Datum
value
[],
char
nulls
[],
uint16
*
infomask
,
bits8
*
bit
);
bits8
*
bit
);
extern
int
heap_attisnull
(
HeapTuple
tup
,
int
attnum
);
extern
int
heap_attisnull
(
HeapTuple
tup
,
int
attnum
);
...
@@ -150,11 +146,9 @@ extern Datum heap_getsysattr(HeapTuple tup, Buffer b, int attnum);
...
@@ -150,11 +146,9 @@ extern Datum heap_getsysattr(HeapTuple tup, Buffer b, int attnum);
extern
Datum
fastgetattr
(
HeapTuple
tup
,
int
attnum
,
extern
Datum
fastgetattr
(
HeapTuple
tup
,
int
attnum
,
TupleDesc
att
,
bool
*
isnull
);
TupleDesc
att
,
bool
*
isnull
);
extern
HeapTuple
heap_copytuple
(
HeapTuple
tuple
);
extern
HeapTuple
heap_copytuple
(
HeapTuple
tuple
);
extern
HeapTuple
extern
HeapTuple
heap_formtuple
(
TupleDesc
tupleDescriptor
,
heap_formtuple
(
TupleDesc
tupleDescriptor
,
Datum
value
[],
char
nulls
[]);
Datum
value
[],
char
nulls
[]);
extern
HeapTuple
extern
HeapTuple
heap_modifytuple
(
HeapTuple
tuple
,
Buffer
buffer
,
heap_modifytuple
(
HeapTuple
tuple
,
Buffer
buffer
,
Relation
relation
,
Datum
replValue
[],
char
replNull
[],
char
repl
[]);
Relation
relation
,
Datum
replValue
[],
char
replNull
[],
char
repl
[]);
HeapTuple
heap_addheader
(
uint32
natts
,
int
structlen
,
char
*
structure
);
HeapTuple
heap_addheader
(
uint32
natts
,
int
structlen
,
char
*
structure
);
...
@@ -163,8 +157,7 @@ extern void PrintHeapAccessStatistics(HeapAccessStatistics stats);
...
@@ -163,8 +157,7 @@ extern void PrintHeapAccessStatistics(HeapAccessStatistics stats);
extern
void
initam
(
void
);
extern
void
initam
(
void
);
/* hio.c */
/* hio.c */
extern
void
extern
void
RelationPutHeapTuple
(
Relation
relation
,
BlockNumber
blockIndex
,
RelationPutHeapTuple
(
Relation
relation
,
BlockNumber
blockIndex
,
HeapTuple
tuple
);
HeapTuple
tuple
);
extern
void
RelationPutHeapTupleAtEnd
(
Relation
relation
,
HeapTuple
tuple
);
extern
void
RelationPutHeapTupleAtEnd
(
Relation
relation
,
HeapTuple
tuple
);
...
...
src/include/access/hio.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: hio.h,v 1.
5 1997/09/08 02:34:1
1 momjian Exp $
* $Id: hio.h,v 1.
6 1998/01/24 22:48:0
1 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -17,8 +17,7 @@
...
@@ -17,8 +17,7 @@
#include <utils/rel.h>
#include <utils/rel.h>
extern
void
extern
void
RelationPutHeapTuple
(
Relation
relation
,
BlockNumber
blockIndex
,
RelationPutHeapTuple
(
Relation
relation
,
BlockNumber
blockIndex
,
HeapTuple
tuple
);
HeapTuple
tuple
);
extern
void
RelationPutHeapTupleAtEnd
(
Relation
relation
,
HeapTuple
tuple
);
extern
void
RelationPutHeapTupleAtEnd
(
Relation
relation
,
HeapTuple
tuple
);
...
...
src/include/access/iqual.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: iqual.h,v 1.
7 1997/09/08 21:50:48
momjian Exp $
* $Id: iqual.h,v 1.
8 1998/01/24 22:48:05
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -24,8 +24,7 @@
...
@@ -24,8 +24,7 @@
extern
int
NIndexTupleProcessed
;
extern
int
NIndexTupleProcessed
;
extern
bool
extern
bool
index_keytest
(
IndexTuple
tuple
,
TupleDesc
tupdesc
,
index_keytest
(
IndexTuple
tuple
,
TupleDesc
tupdesc
,
int
scanKeySize
,
ScanKey
key
);
int
scanKeySize
,
ScanKey
key
);
#endif
/* IQUAL_H */
#endif
/* IQUAL_H */
src/include/access/istrat.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: istrat.h,v 1.
8 1997/09/08 21:50:50
momjian Exp $
* $Id: istrat.h,v 1.
9 1998/01/24 22:48:05
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -47,23 +47,18 @@
...
@@ -47,23 +47,18 @@
*/
*/
#define IndexStrategyIsValid(s) PointerIsValid(s)
#define IndexStrategyIsValid(s) PointerIsValid(s)
extern
StrategyMap
extern
StrategyMap
IndexStrategyGetStrategyMap
(
IndexStrategy
indexStrategy
,
IndexStrategyGetStrategyMap
(
IndexStrategy
indexStrategy
,
StrategyNumber
maxStrategyNum
,
AttrNumber
attrNum
);
StrategyNumber
maxStrategyNum
,
AttrNumber
attrNum
);
extern
Size
extern
Size
AttributeNumberGetIndexStrategySize
(
AttrNumber
maxAttributeNumber
,
AttributeNumberGetIndexStrategySize
(
AttrNumber
maxAttributeNumber
,
StrategyNumber
maxStrategyNumber
);
StrategyNumber
maxStrategyNumber
);
extern
StrategyNumber
extern
StrategyNumber
RelationGetStrategy
(
Relation
relation
,
RelationGetStrategy
(
Relation
relation
,
AttrNumber
attributeNumber
,
StrategyEvaluation
evaluation
,
AttrNumber
attributeNumber
,
StrategyEvaluation
evaluation
,
RegProcedure
procedure
);
RegProcedure
procedure
);
extern
bool
extern
bool
RelationInvokeStrategy
(
Relation
relation
,
RelationInvokeStrategy
(
Relation
relation
,
StrategyEvaluation
evaluation
,
AttrNumber
attributeNumber
,
StrategyEvaluation
evaluation
,
AttrNumber
attributeNumber
,
StrategyNumber
strategy
,
Datum
left
,
Datum
right
);
StrategyNumber
strategy
,
Datum
left
,
Datum
right
);
extern
void
extern
void
IndexSupportInitialize
(
IndexStrategy
indexStrategy
,
IndexSupportInitialize
(
IndexStrategy
indexStrategy
,
RegProcedure
*
indexSupport
,
Oid
indexObjectId
,
RegProcedure
*
indexSupport
,
Oid
indexObjectId
,
Oid
accessMethodObjectId
,
StrategyNumber
maxStrategyNumber
,
Oid
accessMethodObjectId
,
StrategyNumber
maxStrategyNumber
,
StrategyNumber
maxSupportNumber
,
AttrNumber
maxAttributeNumber
);
StrategyNumber
maxSupportNumber
,
AttrNumber
maxAttributeNumber
);
...
...
src/include/access/itup.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: itup.h,v 1.
8 1997/09/08 21:50:53
momjian Exp $
* $Id: itup.h,v 1.
9 1998/01/24 22:48:06
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -89,14 +89,11 @@ typedef struct PredInfo
...
@@ -89,14 +89,11 @@ typedef struct PredInfo
/* indextuple.h */
/* indextuple.h */
extern
IndexTuple
extern
IndexTuple
index_formtuple
(
TupleDesc
tupleDescriptor
,
index_formtuple
(
TupleDesc
tupleDescriptor
,
Datum
value
[],
char
null
[]);
Datum
value
[],
char
null
[]);
extern
Datum
extern
Datum
index_getattr
(
IndexTuple
tuple
,
AttrNumber
attNum
,
index_getattr
(
IndexTuple
tuple
,
AttrNumber
attNum
,
TupleDesc
tupDesc
,
bool
*
isNullOutP
);
TupleDesc
tupDesc
,
bool
*
isNullOutP
);
extern
RetrieveIndexResult
extern
RetrieveIndexResult
FormRetrieveIndexResult
(
ItemPointer
indexItemPointer
,
FormRetrieveIndexResult
(
ItemPointer
indexItemPointer
,
ItemPointer
heapItemPointer
);
ItemPointer
heapItemPointer
);
extern
void
CopyIndexTuple
(
IndexTuple
source
,
IndexTuple
*
target
);
extern
void
CopyIndexTuple
(
IndexTuple
source
,
IndexTuple
*
target
);
...
...
src/include/access/nbtree.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: nbtree.h,v 1.1
8 1997/09/08 21:50:55
momjian Exp $
* $Id: nbtree.h,v 1.1
9 1998/01/24 22:48:07
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -213,13 +213,11 @@ typedef struct BTPageState
...
@@ -213,13 +213,11 @@ typedef struct BTPageState
/*
/*
* prototypes for functions in nbtinsert.c
* prototypes for functions in nbtinsert.c
*/
*/
extern
InsertIndexResult
extern
InsertIndexResult
_bt_doinsert
(
Relation
rel
,
BTItem
btitem
,
_bt_doinsert
(
Relation
rel
,
BTItem
btitem
,
bool
index_is_unique
,
Relation
heapRel
);
bool
index_is_unique
,
Relation
heapRel
);
/* default is to allow duplicates */
/* default is to allow duplicates */
extern
bool
extern
bool
_bt_itemcmp
(
Relation
rel
,
Size
keysz
,
BTItem
item1
,
BTItem
item2
,
_bt_itemcmp
(
Relation
rel
,
Size
keysz
,
BTItem
item1
,
BTItem
item2
,
StrategyNumber
strat
);
StrategyNumber
strat
);
/*
/*
...
@@ -241,16 +239,13 @@ extern void _bt_pagedel(Relation rel, ItemPointer tid);
...
@@ -241,16 +239,13 @@ extern void _bt_pagedel(Relation rel, ItemPointer tid);
*/
*/
extern
bool
BuildingBtree
;
/* in nbtree.c */
extern
bool
BuildingBtree
;
/* in nbtree.c */
extern
void
extern
void
btbuild
(
Relation
heap
,
Relation
index
,
int
natts
,
btbuild
(
Relation
heap
,
Relation
index
,
int
natts
,
AttrNumber
*
attnum
,
IndexStrategy
istrat
,
uint16
pcount
,
AttrNumber
*
attnum
,
IndexStrategy
istrat
,
uint16
pcount
,
Datum
*
params
,
FuncIndexInfo
*
finfo
,
PredInfo
*
predInfo
);
Datum
*
params
,
FuncIndexInfo
*
finfo
,
PredInfo
*
predInfo
);
extern
InsertIndexResult
extern
InsertIndexResult
btinsert
(
Relation
rel
,
Datum
*
datum
,
char
*
nulls
,
btinsert
(
Relation
rel
,
Datum
*
datum
,
char
*
nulls
,
ItemPointer
ht_ctid
,
Relation
heapRel
);
ItemPointer
ht_ctid
,
Relation
heapRel
);
extern
char
*
btgettuple
(
IndexScanDesc
scan
,
ScanDirection
dir
);
extern
char
*
btgettuple
(
IndexScanDesc
scan
,
ScanDirection
dir
);
extern
char
*
extern
char
*
btbeginscan
(
Relation
rel
,
bool
fromEnd
,
uint16
keysz
,
btbeginscan
(
Relation
rel
,
bool
fromEnd
,
uint16
keysz
,
ScanKey
scankey
);
ScanKey
scankey
);
extern
void
btrescan
(
IndexScanDesc
scan
,
bool
fromEnd
,
ScanKey
scankey
);
extern
void
btrescan
(
IndexScanDesc
scan
,
bool
fromEnd
,
ScanKey
scankey
);
...
@@ -270,17 +265,13 @@ extern void _bt_adjscans(Relation rel, ItemPointer tid, int op);
...
@@ -270,17 +265,13 @@ extern void _bt_adjscans(Relation rel, ItemPointer tid, int op);
/*
/*
* prototypes for functions in nbtsearch.c
* prototypes for functions in nbtsearch.c
*/
*/
extern
BTStack
extern
BTStack
_bt_search
(
Relation
rel
,
int
keysz
,
ScanKey
scankey
,
_bt_search
(
Relation
rel
,
int
keysz
,
ScanKey
scankey
,
Buffer
*
bufP
);
Buffer
*
bufP
);
extern
Buffer
extern
Buffer
_bt_moveright
(
Relation
rel
,
Buffer
buf
,
int
keysz
,
_bt_moveright
(
Relation
rel
,
Buffer
buf
,
int
keysz
,
ScanKey
scankey
,
int
access
);
ScanKey
scankey
,
int
access
);
extern
bool
extern
bool
_bt_skeycmp
(
Relation
rel
,
Size
keysz
,
ScanKey
scankey
,
_bt_skeycmp
(
Relation
rel
,
Size
keysz
,
ScanKey
scankey
,
Page
page
,
ItemId
itemid
,
StrategyNumber
strat
);
Page
page
,
ItemId
itemid
,
StrategyNumber
strat
);
extern
OffsetNumber
extern
OffsetNumber
_bt_binsrch
(
Relation
rel
,
Buffer
buf
,
int
keysz
,
_bt_binsrch
(
Relation
rel
,
Buffer
buf
,
int
keysz
,
ScanKey
scankey
,
int
srchtype
);
ScanKey
scankey
,
int
srchtype
);
extern
RetrieveIndexResult
_bt_next
(
IndexScanDesc
scan
,
ScanDirection
dir
);
extern
RetrieveIndexResult
_bt_next
(
IndexScanDesc
scan
,
ScanDirection
dir
);
extern
RetrieveIndexResult
_bt_first
(
IndexScanDesc
scan
,
ScanDirection
dir
);
extern
RetrieveIndexResult
_bt_first
(
IndexScanDesc
scan
,
ScanDirection
dir
);
...
@@ -289,11 +280,9 @@ extern bool _bt_step(IndexScanDesc scan, Buffer *bufP, ScanDirection dir);
...
@@ -289,11 +280,9 @@ extern bool _bt_step(IndexScanDesc scan, Buffer *bufP, ScanDirection dir);
/*
/*
* prototypes for functions in nbtstrat.c
* prototypes for functions in nbtstrat.c
*/
*/
extern
StrategyNumber
extern
StrategyNumber
_bt_getstrat
(
Relation
rel
,
AttrNumber
attno
,
_bt_getstrat
(
Relation
rel
,
AttrNumber
attno
,
RegProcedure
proc
);
RegProcedure
proc
);
extern
bool
extern
bool
_bt_invokestrat
(
Relation
rel
,
AttrNumber
attno
,
_bt_invokestrat
(
Relation
rel
,
AttrNumber
attno
,
StrategyNumber
strat
,
Datum
left
,
Datum
right
);
StrategyNumber
strat
,
Datum
left
,
Datum
right
);
/*
/*
...
...
src/include/access/rtree.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: rtree.h,v 1.1
0 1997/09/08 21:50:5
8 momjian Exp $
* $Id: rtree.h,v 1.1
1 1998/01/24 22:48:0
8 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -114,34 +114,29 @@ extern RetrieveIndexResult rtgettuple(IndexScanDesc s, ScanDirection dir);
...
@@ -114,34 +114,29 @@ extern RetrieveIndexResult rtgettuple(IndexScanDesc s, ScanDirection dir);
* RTree code.
* RTree code.
* Defined in access/index-rtree/
* Defined in access/index-rtree/
*/
*/
extern
InsertIndexResult
extern
InsertIndexResult
rtinsert
(
Relation
r
,
Datum
*
datum
,
char
*
nulls
,
rtinsert
(
Relation
r
,
Datum
*
datum
,
char
*
nulls
,
ItemPointer
ht_ctid
,
Relation
heapRel
);
ItemPointer
ht_ctid
,
Relation
heapRel
);
extern
char
*
rtdelete
(
Relation
r
,
ItemPointer
tid
);
extern
char
*
rtdelete
(
Relation
r
,
ItemPointer
tid
);
extern
RetrieveIndexResult
rtgettuple
(
IndexScanDesc
s
,
ScanDirection
dir
);
extern
RetrieveIndexResult
rtgettuple
(
IndexScanDesc
s
,
ScanDirection
dir
);
extern
IndexScanDesc
extern
IndexScanDesc
rtbeginscan
(
Relation
r
,
bool
fromEnd
,
uint16
nkeys
,
rtbeginscan
(
Relation
r
,
bool
fromEnd
,
uint16
nkeys
,
ScanKey
key
);
ScanKey
key
);
extern
void
rtendscan
(
IndexScanDesc
s
);
extern
void
rtendscan
(
IndexScanDesc
s
);
extern
void
rtmarkpos
(
IndexScanDesc
s
);
extern
void
rtmarkpos
(
IndexScanDesc
s
);
extern
void
rtrestrpos
(
IndexScanDesc
s
);
extern
void
rtrestrpos
(
IndexScanDesc
s
);
extern
void
rtrescan
(
IndexScanDesc
s
,
bool
fromEnd
,
ScanKey
key
);
extern
void
rtrescan
(
IndexScanDesc
s
,
bool
fromEnd
,
ScanKey
key
);
extern
void
extern
void
rtbuild
(
Relation
heap
,
Relation
index
,
int
natts
,
rtbuild
(
Relation
heap
,
Relation
index
,
int
natts
,
AttrNumber
*
attnum
,
IndexStrategy
istrat
,
uint16
pcount
,
AttrNumber
*
attnum
,
IndexStrategy
istrat
,
uint16
pcount
,
Datum
*
params
,
FuncIndexInfo
*
finfo
,
PredInfo
*
predInfo
);
Datum
*
params
,
FuncIndexInfo
*
finfo
,
PredInfo
*
predInfo
);
extern
void
_rtdump
(
Relation
r
);
extern
void
_rtdump
(
Relation
r
);
/* rtscan.c */
/* rtscan.c */
extern
void
extern
void
rtadjscans
(
Relation
r
,
int
op
,
BlockNumber
blkno
,
rtadjscans
(
Relation
r
,
int
op
,
BlockNumber
blkno
,
OffsetNumber
offnum
);
OffsetNumber
offnum
);
/* rtstrat.h */
/* rtstrat.h */
extern
RegProcedure
extern
RegProcedure
RTMapOperator
(
Relation
r
,
AttrNumber
attnum
,
RTMapOperator
(
Relation
r
,
AttrNumber
attnum
,
RegProcedure
proc
);
RegProcedure
proc
);
#endif
/* RTREE_H */
#endif
/* RTREE_H */
src/include/access/rtstrat.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: rtstrat.h,v 1.
5 1997/11/26 01:12
:08 momjian Exp $
* $Id: rtstrat.h,v 1.
6 1998/01/24 22:48
:08 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -16,8 +16,7 @@
...
@@ -16,8 +16,7 @@
#include <utils/rel.h>
#include <utils/rel.h>
#include <access/attnum.h>
#include <access/attnum.h>
extern
RegProcedure
extern
RegProcedure
RTMapOperator
(
Relation
r
,
AttrNumber
attnum
,
RTMapOperator
(
Relation
r
,
AttrNumber
attnum
,
RegProcedure
proc
);
RegProcedure
proc
);
#endif
/* RTSTRAT_H */
#endif
/* RTSTRAT_H */
src/include/access/skey.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: skey.h,v 1.
7 1998/01/15 19:46:18 pgsql
Exp $
* $Id: skey.h,v 1.
8 1998/01/24 22:48:10 momjian
Exp $
*
*
*
*
* Note:
* Note:
...
@@ -46,8 +46,7 @@ typedef ScanKeyData *ScanKey;
...
@@ -46,8 +46,7 @@ typedef ScanKeyData *ScanKey;
* prototypes for functions in access/common/scankey.c
* prototypes for functions in access/common/scankey.c
*/
*/
extern
void
ScanKeyEntrySetIllegal
(
ScanKey
entry
);
extern
void
ScanKeyEntrySetIllegal
(
ScanKey
entry
);
extern
void
extern
void
ScanKeyEntryInitialize
(
ScanKey
entry
,
bits16
flags
,
ScanKeyEntryInitialize
(
ScanKey
entry
,
bits16
flags
,
AttrNumber
attributeNumber
,
RegProcedure
procedure
,
Datum
argument
);
AttrNumber
attributeNumber
,
RegProcedure
procedure
,
Datum
argument
);
#endif
/* SKEY_H */
#endif
/* SKEY_H */
src/include/access/transam.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: transam.h,v 1.1
2 1997/11/02 15:26:44 vadim
Exp $
* $Id: transam.h,v 1.1
3 1998/01/24 22:48:11 momjian
Exp $
*
*
* NOTES
* NOTES
* Transaction System Version 101 now support proper oid
* Transaction System Version 101 now support proper oid
...
@@ -130,14 +130,11 @@ extern void TransactionIdAbort(TransactionId transactionId);
...
@@ -130,14 +130,11 @@ extern void TransactionIdAbort(TransactionId transactionId);
/* in transam/transsup.c */
/* in transam/transsup.c */
extern
void
AmiTransactionOverride
(
bool
flag
);
extern
void
AmiTransactionOverride
(
bool
flag
);
extern
void
extern
void
TransComputeBlockNumber
(
Relation
relation
,
TransComputeBlockNumber
(
Relation
relation
,
TransactionId
transactionId
,
BlockNumber
*
blockNumberOutP
);
TransactionId
transactionId
,
BlockNumber
*
blockNumberOutP
);
extern
XidStatus
extern
XidStatus
TransBlockNumberGetXidStatus
(
Relation
relation
,
TransBlockNumberGetXidStatus
(
Relation
relation
,
BlockNumber
blockNumber
,
TransactionId
xid
,
bool
*
failP
);
BlockNumber
blockNumber
,
TransactionId
xid
,
bool
*
failP
);
extern
void
extern
void
TransBlockNumberSetXidStatus
(
Relation
relation
,
TransBlockNumberSetXidStatus
(
Relation
relation
,
BlockNumber
blockNumber
,
TransactionId
xid
,
XidStatus
xstatus
,
BlockNumber
blockNumber
,
TransactionId
xid
,
XidStatus
xstatus
,
bool
*
failP
);
bool
*
failP
);
...
...
src/include/access/tupdesc.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: tupdesc.h,v 1.1
2 1997/09/08 21:51:04
momjian Exp $
* $Id: tupdesc.h,v 1.1
3 1998/01/24 22:48:12
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -65,8 +65,7 @@ extern TupleDesc CreateTupleDescCopyConstr(TupleDesc tupdesc);
...
@@ -65,8 +65,7 @@ extern TupleDesc CreateTupleDescCopyConstr(TupleDesc tupdesc);
extern
void
FreeTupleDesc
(
TupleDesc
tupdesc
);
extern
void
FreeTupleDesc
(
TupleDesc
tupdesc
);
extern
bool
extern
bool
TupleDescInitEntry
(
TupleDesc
desc
,
TupleDescInitEntry
(
TupleDesc
desc
,
AttrNumber
attributeNumber
,
AttrNumber
attributeNumber
,
char
*
attributeName
,
char
*
attributeName
,
char
*
typeName
,
char
*
typeName
,
...
...
src/include/bootstrap/bootstrap.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: bootstrap.h,v 1.
9 1997/09/08 21:51:08
momjian Exp $
* $Id: bootstrap.h,v 1.
10 1998/01/24 22:48:15
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -33,8 +33,7 @@ extern int numattr;
...
@@ -33,8 +33,7 @@ extern int numattr;
extern
int
DebugMode
;
extern
int
DebugMode
;
extern
int
BootstrapMain
(
int
ac
,
char
*
av
[]);
extern
int
BootstrapMain
(
int
ac
,
char
*
av
[]);
extern
void
extern
void
index_register
(
char
*
heap
,
index_register
(
char
*
heap
,
char
*
ind
,
char
*
ind
,
int
natts
,
int
natts
,
AttrNumber
*
attnos
,
AttrNumber
*
attnos
,
...
...
src/include/c.h
View file @
72295139
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: c.h,v 1.2
7 1997/11/10 05:10:34
momjian Exp $
* $Id: c.h,v 1.2
8 1998/01/24 22:47:43
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -732,8 +732,7 @@ extern Exception BadArg;
...
@@ -732,8 +732,7 @@ extern Exception BadArg;
extern
Exception
BadState
;
extern
Exception
BadState
;
/* in utils/error/assert.c */
/* in utils/error/assert.c */
extern
int
extern
int
ExceptionalCondition
(
char
*
conditionName
,
ExceptionalCondition
(
char
*
conditionName
,
Exception
*
exceptionP
,
char
*
details
,
Exception
*
exceptionP
,
char
*
details
,
char
*
fileName
,
int
lineNumber
);
char
*
fileName
,
int
lineNumber
);
...
...
src/include/catalog/heap.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: heap.h,v 1.1
0 1997/11/28 17:28:02
momjian Exp $
* $Id: heap.h,v 1.1
1 1998/01/24 22:48:19
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -17,8 +17,7 @@
...
@@ -17,8 +17,7 @@
extern
Relation
heap_create
(
char
*
relname
,
TupleDesc
att
);
extern
Relation
heap_create
(
char
*
relname
,
TupleDesc
att
);
extern
Oid
extern
Oid
heap_create_with_catalog
(
char
relname
[],
TupleDesc
tupdesc
);
heap_create_with_catalog
(
char
relname
[],
TupleDesc
tupdesc
);
extern
void
heap_destroy_with_catalog
(
char
relname
[]);
extern
void
heap_destroy_with_catalog
(
char
relname
[]);
extern
void
heap_destroy
(
Relation
r
);
extern
void
heap_destroy
(
Relation
r
);
...
...
src/include/catalog/index.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: index.h,v 1.
8 1997/09/08 21:51:20
momjian Exp $
* $Id: index.h,v 1.
9 1998/01/24 22:48:22
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -18,19 +18,15 @@
...
@@ -18,19 +18,15 @@
#include <access/itup.h>
#include <access/itup.h>
#include <access/funcindex.h>
#include <access/funcindex.h>
extern
Form_pg_am
extern
Form_pg_am
AccessMethodObjectIdGetAccessMethodTupleForm
(
Oid
accessMethodObjectId
);
AccessMethodObjectIdGetAccessMethodTupleForm
(
Oid
accessMethodObjectId
);
extern
void
extern
void
UpdateIndexPredicate
(
Oid
indexoid
,
Node
*
oldPred
,
Node
*
predicate
);
UpdateIndexPredicate
(
Oid
indexoid
,
Node
*
oldPred
,
Node
*
predicate
);
extern
void
extern
void
InitIndexStrategy
(
int
numatts
,
InitIndexStrategy
(
int
numatts
,
Relation
indexRelation
,
Relation
indexRelation
,
Oid
accessMethodObjectId
);
Oid
accessMethodObjectId
);
extern
void
extern
void
index_create
(
char
*
heapRelationName
,
index_create
(
char
*
heapRelationName
,
char
*
indexRelationName
,
char
*
indexRelationName
,
FuncIndexInfo
*
funcInfo
,
FuncIndexInfo
*
funcInfo
,
List
*
attributeList
,
List
*
attributeList
,
...
@@ -46,20 +42,17 @@ index_create(char *heapRelationName,
...
@@ -46,20 +42,17 @@ index_create(char *heapRelationName,
extern
void
index_destroy
(
Oid
indexId
);
extern
void
index_destroy
(
Oid
indexId
);
extern
void
extern
void
FormIndexDatum
(
int
numberOfAttributes
,
FormIndexDatum
(
int
numberOfAttributes
,
AttrNumber
attributeNumber
[],
HeapTuple
heapTuple
,
AttrNumber
attributeNumber
[],
HeapTuple
heapTuple
,
TupleDesc
heapDescriptor
,
Buffer
buffer
,
Datum
*
datum
,
TupleDesc
heapDescriptor
,
Buffer
buffer
,
Datum
*
datum
,
char
*
nullv
,
FuncIndexInfoPtr
fInfo
);
char
*
nullv
,
FuncIndexInfoPtr
fInfo
);
extern
void
UpdateStats
(
Oid
relid
,
long
reltuples
,
bool
hasindex
);
extern
void
UpdateStats
(
Oid
relid
,
long
reltuples
,
bool
hasindex
);
extern
void
extern
void
FillDummyExprContext
(
ExprContext
*
econtext
,
TupleTableSlot
*
slot
,
FillDummyExprContext
(
ExprContext
*
econtext
,
TupleTableSlot
*
slot
,
TupleDesc
tupdesc
,
Buffer
buffer
);
TupleDesc
tupdesc
,
Buffer
buffer
);
extern
void
extern
void
index_build
(
Relation
heapRelation
,
Relation
indexRelation
,
index_build
(
Relation
heapRelation
,
Relation
indexRelation
,
int
numberOfAttributes
,
AttrNumber
attributeNumber
[],
int
numberOfAttributes
,
AttrNumber
attributeNumber
[],
uint16
parameterCount
,
Datum
*
parameter
,
FuncIndexInfo
*
funcInfo
,
uint16
parameterCount
,
Datum
*
parameter
,
FuncIndexInfo
*
funcInfo
,
PredInfo
*
predInfo
);
PredInfo
*
predInfo
);
...
...
src/include/catalog/indexing.h
View file @
72295139
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: indexing.h,v 1.1
3 1998/01/11 21:03:01
momjian Exp $
* $Id: indexing.h,v 1.1
4 1998/01/24 22:48:27
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -66,25 +66,21 @@ extern char *IndexedCatalogNames[];
...
@@ -66,25 +66,21 @@ extern char *IndexedCatalogNames[];
*/
*/
extern
void
CatalogOpenIndices
(
int
nIndices
,
char
*
names
[],
Relation
idescs
[]);
extern
void
CatalogOpenIndices
(
int
nIndices
,
char
*
names
[],
Relation
idescs
[]);
extern
void
CatalogCloseIndices
(
int
nIndices
,
Relation
*
idescs
);
extern
void
CatalogCloseIndices
(
int
nIndices
,
Relation
*
idescs
);
extern
void
extern
void
CatalogIndexInsert
(
Relation
*
idescs
,
CatalogIndexInsert
(
Relation
*
idescs
,
int
nIndices
,
int
nIndices
,
Relation
heapRelation
,
Relation
heapRelation
,
HeapTuple
heapTuple
);
HeapTuple
heapTuple
);
extern
bool
CatalogHasIndex
(
char
*
catName
,
Oid
catId
);
extern
bool
CatalogHasIndex
(
char
*
catName
,
Oid
catId
);
extern
HeapTuple
extern
HeapTuple
AttributeNameIndexScan
(
Relation
heapRelation
,
AttributeNameIndexScan
(
Relation
heapRelation
,
Oid
relid
,
Oid
relid
,
char
*
attname
);
char
*
attname
);
extern
HeapTuple
extern
HeapTuple
AttributeNumIndexScan
(
Relation
heapRelation
,
AttributeNumIndexScan
(
Relation
heapRelation
,
Oid
relid
,
Oid
relid
,
AttrNumber
attnum
);
AttrNumber
attnum
);
extern
HeapTuple
ProcedureOidIndexScan
(
Relation
heapRelation
,
Oid
procId
);
extern
HeapTuple
ProcedureOidIndexScan
(
Relation
heapRelation
,
Oid
procId
);
extern
HeapTuple
extern
HeapTuple
ProcedureNameIndexScan
(
Relation
heapRelation
,
ProcedureNameIndexScan
(
Relation
heapRelation
,
char
*
procName
,
int
nargs
,
Oid
*
argTypes
);
char
*
procName
,
int
nargs
,
Oid
*
argTypes
);
extern
HeapTuple
ProcedureSrcIndexScan
(
Relation
heapRelation
,
text
*
procSrc
);
extern
HeapTuple
ProcedureSrcIndexScan
(
Relation
heapRelation
,
text
*
procSrc
);
extern
HeapTuple
TypeOidIndexScan
(
Relation
heapRelation
,
Oid
typeId
);
extern
HeapTuple
TypeOidIndexScan
(
Relation
heapRelation
,
Oid
typeId
);
...
...
src/include/catalog/pg_aggregate.h
View file @
72295139
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pg_aggregate.h,v 1.1
2 1997/10/15 01:08:25 thomas
Exp $
* $Id: pg_aggregate.h,v 1.1
3 1998/01/24 22:48:31 momjian
Exp $
*
*
* NOTES
* NOTES
* the genbki.sh script reads this file and generates .bki
* the genbki.sh script reads this file and generates .bki
...
@@ -129,8 +129,7 @@ DATA(insert OID = 0 ( count PGUID - int4inc - 0 0 23 23 _null_ 0 ));
...
@@ -129,8 +129,7 @@ DATA(insert OID = 0 ( count PGUID - int4inc - 0 0 23 23 _null_ 0 ));
/*
/*
* prototypes for functions in pg_aggregate.c
* prototypes for functions in pg_aggregate.c
*/
*/
extern
void
extern
void
AggregateCreate
(
char
*
aggName
,
AggregateCreate
(
char
*
aggName
,
char
*
aggtransfn1Name
,
char
*
aggtransfn1Name
,
char
*
aggtransfn2Name
,
char
*
aggtransfn2Name
,
char
*
aggfinalfnName
,
char
*
aggfinalfnName
,
...
@@ -139,8 +138,7 @@ AggregateCreate(char *aggName,
...
@@ -139,8 +138,7 @@ AggregateCreate(char *aggName,
char
*
aggtransfn2typeName
,
char
*
aggtransfn2typeName
,
char
*
agginitval1
,
char
*
agginitval1
,
char
*
agginitval2
);
char
*
agginitval2
);
extern
char
*
extern
char
*
AggNameGetInitVal
(
char
*
aggName
,
Oid
basetype
,
AggNameGetInitVal
(
char
*
aggName
,
Oid
basetype
,
int
xfuncno
,
bool
*
isNull
);
int
xfuncno
,
bool
*
isNull
);
#endif
/* PG_AGGREGATE_H */
#endif
/* PG_AGGREGATE_H */
src/include/catalog/pg_operator.h
View file @
72295139
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pg_operator.h,v 1.2
2 1997/11/30 22:49:22 thomas
Exp $
* $Id: pg_operator.h,v 1.2
3 1998/01/24 22:48:36 momjian
Exp $
*
*
* NOTES
* NOTES
* the genbki.sh script reads this file and generates .bki
* the genbki.sh script reads this file and generates .bki
...
@@ -652,8 +652,7 @@ DATA(insert OID = 1585 ( "/" PGUID 0 b t f 1186 1186 1186 0 0 0 0 timespan
...
@@ -652,8 +652,7 @@ DATA(insert OID = 1585 ( "/" PGUID 0 b t f 1186 1186 1186 0 0 0 0 timespan
/*
/*
* function prototypes
* function prototypes
*/
*/
extern
void
extern
void
OperatorCreate
(
char
*
operatorName
,
OperatorCreate
(
char
*
operatorName
,
char
*
leftTypeName
,
char
*
leftTypeName
,
char
*
rightTypeName
,
char
*
rightTypeName
,
char
*
procedureName
,
char
*
procedureName
,
...
...
src/include/catalog/pg_proc.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pg_proc.h,v 1.4
2 1998/01/01 05:47:11 thomas
Exp $
* $Id: pg_proc.h,v 1.4
3 1998/01/24 22:48:41 momjian
Exp $
*
*
* NOTES
* NOTES
* The script catalog/genbki.sh reads this file and generates .bki
* The script catalog/genbki.sh reads this file and generates .bki
...
@@ -2054,8 +2054,7 @@ DESCR("sequence current value");
...
@@ -2054,8 +2054,7 @@ DESCR("sequence current value");
/*
/*
* prototypes for functions pg_proc.c
* prototypes for functions pg_proc.c
*/
*/
extern
Oid
extern
Oid
ProcedureCreate
(
char
*
procedureName
,
ProcedureCreate
(
char
*
procedureName
,
bool
returnsSet
,
bool
returnsSet
,
char
*
returnTypeName
,
char
*
returnTypeName
,
char
*
languageName
,
char
*
languageName
,
...
...
src/include/catalog/pg_type.h
View file @
72295139
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pg_type.h,v 1.2
7 1998/01/19 02:37:47
momjian Exp $
* $Id: pg_type.h,v 1.2
8 1998/01/24 22:48:42
momjian Exp $
*
*
* NOTES
* NOTES
* the genbki.sh script reads this file and generates .bki
* the genbki.sh script reads this file and generates .bki
...
@@ -372,8 +372,7 @@ DESCR("limited-range ISO-format date and time");
...
@@ -372,8 +372,7 @@ DESCR("limited-range ISO-format date and time");
*/
*/
extern
Oid
TypeGet
(
char
*
typeName
,
bool
*
defined
);
extern
Oid
TypeGet
(
char
*
typeName
,
bool
*
defined
);
extern
Oid
TypeShellMake
(
char
*
typeName
);
extern
Oid
TypeShellMake
(
char
*
typeName
);
extern
Oid
extern
Oid
TypeCreate
(
char
*
typeName
,
TypeCreate
(
char
*
typeName
,
Oid
relationOid
,
Oid
relationOid
,
int16
internalSize
,
int16
internalSize
,
int16
externalSize
,
int16
externalSize
,
...
...
src/include/commands/command.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: command.h,v 1.
7 1997/09/08 21:51:3
4 momjian Exp $
* $Id: command.h,v 1.
8 1998/01/24 22:48:4
4 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -26,8 +26,7 @@ extern MemoryContext PortalExecutorHeapMemory;
...
@@ -26,8 +26,7 @@ extern MemoryContext PortalExecutorHeapMemory;
* BadArg if forward invalid.
* BadArg if forward invalid.
* "WARN" if portal not found.
* "WARN" if portal not found.
*/
*/
extern
void
extern
void
PerformPortalFetch
(
char
*
name
,
bool
forward
,
int
count
,
PerformPortalFetch
(
char
*
name
,
bool
forward
,
int
count
,
char
*
tag
,
CommandDest
dest
);
char
*
tag
,
CommandDest
dest
);
/*
/*
...
@@ -42,8 +41,7 @@ extern void PortalCleanup(Portal portal);
...
@@ -42,8 +41,7 @@ extern void PortalCleanup(Portal portal);
* PerformAddAttribute --
* PerformAddAttribute --
* Performs the POSTQUEL function ADD.
* Performs the POSTQUEL function ADD.
*/
*/
extern
void
extern
void
PerformAddAttribute
(
char
*
relationName
,
char
*
userName
,
PerformAddAttribute
(
char
*
relationName
,
char
*
userName
,
bool
inh
,
ColumnDef
*
colDef
);
bool
inh
,
ColumnDef
*
colDef
);
#endif
/* COMMAND_H */
#endif
/* COMMAND_H */
src/include/commands/defrem.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: defrem.h,v 1.1
0 1997/09/08 21:51:36
momjian Exp $
* $Id: defrem.h,v 1.1
1 1998/01/24 22:48:45
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -19,8 +19,7 @@
...
@@ -19,8 +19,7 @@
/*
/*
* prototypes in defind.c
* prototypes in defind.c
*/
*/
extern
void
extern
void
DefineIndex
(
char
*
heapRelationName
,
DefineIndex
(
char
*
heapRelationName
,
char
*
indexRelationName
,
char
*
indexRelationName
,
char
*
accessMethodName
,
char
*
accessMethodName
,
List
*
attributeList
,
List
*
attributeList
,
...
@@ -28,8 +27,7 @@ DefineIndex(char *heapRelationName,
...
@@ -28,8 +27,7 @@ DefineIndex(char *heapRelationName,
bool
unique
,
bool
unique
,
Expr
*
predicate
,
Expr
*
predicate
,
List
*
rangetable
);
List
*
rangetable
);
extern
void
extern
void
ExtendIndex
(
char
*
indexRelationName
,
ExtendIndex
(
char
*
indexRelationName
,
Expr
*
predicate
,
Expr
*
predicate
,
List
*
rangetable
);
List
*
rangetable
);
extern
void
RemoveIndex
(
char
*
name
);
extern
void
RemoveIndex
(
char
*
name
);
...
@@ -47,8 +45,7 @@ extern void CreateFunction(ProcedureStmt *stmt, CommandDest dest);
...
@@ -47,8 +45,7 @@ extern void CreateFunction(ProcedureStmt *stmt, CommandDest dest);
* prototypes in remove.c
* prototypes in remove.c
*/
*/
extern
void
RemoveFunction
(
char
*
functionName
,
int
nargs
,
List
*
argNameList
);
extern
void
RemoveFunction
(
char
*
functionName
,
int
nargs
,
List
*
argNameList
);
extern
void
extern
void
RemoveOperator
(
char
*
operatorName
,
RemoveOperator
(
char
*
operatorName
,
char
*
typeName1
,
char
*
typeName2
);
char
*
typeName1
,
char
*
typeName2
);
extern
void
RemoveType
(
char
*
typeName
);
extern
void
RemoveType
(
char
*
typeName
);
extern
void
RemoveAggregate
(
char
*
aggName
,
char
*
aggType
);
extern
void
RemoveAggregate
(
char
*
aggName
,
char
*
aggType
);
...
...
src/include/commands/rename.h
View file @
72295139
...
@@ -6,21 +6,19 @@
...
@@ -6,21 +6,19 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: rename.h,v 1.
2 1997/09/07 04:57:30
momjian Exp $
* $Id: rename.h,v 1.
3 1998/01/24 22:48:46
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
#ifndef RENAME_H
#ifndef RENAME_H
#define RENAME_H
#define RENAME_H
extern
void
extern
void
renameatt
(
char
*
relname
,
renameatt
(
char
*
relname
,
char
*
oldattname
,
char
*
oldattname
,
char
*
newattname
,
char
*
newattname
,
char
*
userName
,
int
recurse
);
char
*
userName
,
int
recurse
);
extern
void
extern
void
renamerel
(
char
*
oldrelname
,
renamerel
(
char
*
oldrelname
,
char
*
newrelname
);
char
*
newrelname
);
#endif
/* RENAME_H */
#endif
/* RENAME_H */
src/include/executor/execdesc.h
View file @
72295139
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: execdesc.h,v 1.
6 1997/09/08 21:51
:50 momjian Exp $
* $Id: execdesc.h,v 1.
7 1998/01/24 22:48
:50 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -33,8 +33,7 @@ typedef struct QueryDesc
...
@@ -33,8 +33,7 @@ typedef struct QueryDesc
}
QueryDesc
;
}
QueryDesc
;
/* in pquery.c */
/* in pquery.c */
extern
QueryDesc
*
extern
QueryDesc
*
CreateQueryDesc
(
Query
*
parsetree
,
Plan
*
plantree
,
CreateQueryDesc
(
Query
*
parsetree
,
Plan
*
plantree
,
CommandDest
dest
);
CommandDest
dest
);
#endif
/* EXECDESC_H */
#endif
/* EXECDESC_H */
src/include/executor/functions.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: functions.h,v 1.
5 1997/11/26 01:12:38
momjian Exp $
* $Id: functions.h,v 1.
6 1998/01/24 22:48:55
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -18,12 +18,10 @@
...
@@ -18,12 +18,10 @@
#include "nodes/primnodes.h"
#include "nodes/primnodes.h"
#include "utils/syscache.h"
#include "utils/syscache.h"
extern
Datum
extern
Datum
ProjectAttribute
(
TupleDesc
TD
,
TargetEntry
*
tlist
,
ProjectAttribute
(
TupleDesc
TD
,
TargetEntry
*
tlist
,
HeapTuple
tup
,
bool
*
isnullP
);
HeapTuple
tup
,
bool
*
isnullP
);
extern
Datum
extern
Datum
postquel_function
(
Func
*
funcNode
,
char
**
args
,
postquel_function
(
Func
*
funcNode
,
char
**
args
,
bool
*
isNull
,
bool
*
isDone
);
bool
*
isNull
,
bool
*
isDone
);
#endif
/* FUNCTIONS_H */
#endif
/* FUNCTIONS_H */
src/include/executor/nodeHash.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: nodeHash.h,v 1.
6 1997/11/26 01:26:13
momjian Exp $
* $Id: nodeHash.h,v 1.
7 1998/01/24 22:49:01
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -26,15 +26,12 @@ extern bool ExecInitHash(Hash *node, EState *estate, Plan *parent);
...
@@ -26,15 +26,12 @@ extern bool ExecInitHash(Hash *node, EState *estate, Plan *parent);
extern
int
ExecCountSlotsHash
(
Hash
*
node
);
extern
int
ExecCountSlotsHash
(
Hash
*
node
);
extern
void
ExecEndHash
(
Hash
*
node
);
extern
void
ExecEndHash
(
Hash
*
node
);
extern
HashJoinTable
ExecHashTableCreate
(
Hash
*
node
);
extern
HashJoinTable
ExecHashTableCreate
(
Hash
*
node
);
extern
void
extern
void
ExecHashTableInsert
(
HashJoinTable
hashtable
,
ExprContext
*
econtext
,
ExecHashTableInsert
(
HashJoinTable
hashtable
,
ExprContext
*
econtext
,
Var
*
hashkey
,
File
*
batches
);
Var
*
hashkey
,
File
*
batches
);
extern
void
ExecHashTableDestroy
(
HashJoinTable
hashtable
);
extern
void
ExecHashTableDestroy
(
HashJoinTable
hashtable
);
extern
int
extern
int
ExecHashGetBucket
(
HashJoinTable
hashtable
,
ExprContext
*
econtext
,
ExecHashGetBucket
(
HashJoinTable
hashtable
,
ExprContext
*
econtext
,
Var
*
hashkey
);
Var
*
hashkey
);
extern
HeapTuple
extern
HeapTuple
ExecScanHashBucket
(
HashJoinState
*
hjstate
,
HashBucket
bucket
,
ExecScanHashBucket
(
HashJoinState
*
hjstate
,
HashBucket
bucket
,
HeapTuple
curtuple
,
List
*
hjclauses
,
HeapTuple
curtuple
,
List
*
hjclauses
,
ExprContext
*
econtext
);
ExprContext
*
econtext
);
extern
void
ExecHashTableReset
(
HashJoinTable
hashtable
,
int
ntuples
);
extern
void
ExecHashTableReset
(
HashJoinTable
hashtable
,
int
ntuples
);
...
...
src/include/executor/nodeHashjoin.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: nodeHashjoin.h,v 1.
6 1997/11/26 01:12:50
momjian Exp $
* $Id: nodeHashjoin.h,v 1.
7 1998/01/24 22:49:04
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -21,8 +21,7 @@ extern TupleTableSlot *ExecHashJoin(HashJoin *node);
...
@@ -21,8 +21,7 @@ extern TupleTableSlot *ExecHashJoin(HashJoin *node);
extern
bool
ExecInitHashJoin
(
HashJoin
*
node
,
EState
*
estate
,
Plan
*
parent
);
extern
bool
ExecInitHashJoin
(
HashJoin
*
node
,
EState
*
estate
,
Plan
*
parent
);
extern
int
ExecCountSlotsHashJoin
(
HashJoin
*
node
);
extern
int
ExecCountSlotsHashJoin
(
HashJoin
*
node
);
extern
void
ExecEndHashJoin
(
HashJoin
*
node
);
extern
void
ExecEndHashJoin
(
HashJoin
*
node
);
extern
char
*
extern
char
*
ExecHashJoinSaveTuple
(
HeapTuple
heapTuple
,
char
*
buffer
,
ExecHashJoinSaveTuple
(
HeapTuple
heapTuple
,
char
*
buffer
,
File
file
,
char
*
position
);
File
file
,
char
*
position
);
...
...
src/include/executor/spi.h
View file @
72295139
...
@@ -78,8 +78,7 @@ extern void *SPI_prepare(char *src, int nargs, Oid * argtypes);
...
@@ -78,8 +78,7 @@ extern void *SPI_prepare(char *src, int nargs, Oid * argtypes);
extern
void
*
SPI_saveplan
(
void
*
plan
);
extern
void
*
SPI_saveplan
(
void
*
plan
);
extern
HeapTuple
SPI_copytuple
(
HeapTuple
tuple
);
extern
HeapTuple
SPI_copytuple
(
HeapTuple
tuple
);
extern
HeapTuple
extern
HeapTuple
SPI_modifytuple
(
Relation
rel
,
HeapTuple
tuple
,
int
natts
,
SPI_modifytuple
(
Relation
rel
,
HeapTuple
tuple
,
int
natts
,
int
*
attnum
,
Datum
*
Values
,
char
*
Nulls
);
int
*
attnum
,
Datum
*
Values
,
char
*
Nulls
);
extern
int
SPI_fnumber
(
TupleDesc
tupdesc
,
char
*
fname
);
extern
int
SPI_fnumber
(
TupleDesc
tupdesc
,
char
*
fname
);
extern
char
*
SPI_fname
(
TupleDesc
tupdesc
,
int
fnumber
);
extern
char
*
SPI_fname
(
TupleDesc
tupdesc
,
int
fnumber
);
...
...
src/include/lib/qsort.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: qsort.h,v 1.
3 1997/09/07 04:58:13
momjian Exp $
* $Id: qsort.h,v 1.
4 1998/01/24 22:49:12
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -14,8 +14,7 @@
...
@@ -14,8 +14,7 @@
#define QSORT_H
#define QSORT_H
extern
void
extern
void
pg_qsort
(
void
*
bot
,
pg_qsort
(
void
*
bot
,
size_t
nmemb
,
size_t
nmemb
,
size_t
size
,
size_t
size
,
int
(
*
compar
)
(
void
*
,
void
*
));
int
(
*
compar
)
(
void
*
,
void
*
));
...
...
src/include/libpq/hba.h
View file @
72295139
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* Interface to hba.c
* Interface to hba.c
*
*
*
*
* $Id: hba.h,v 1.
5 1997/09/08 21:52:34
momjian Exp $
* $Id: hba.h,v 1.
6 1998/01/24 22:49:15
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -42,8 +42,7 @@ enum Userauth
...
@@ -42,8 +42,7 @@ enum Userauth
Password
Password
};
};
extern
int
extern
int
hba_recvauth
(
const
Port
*
port
,
const
char
database
[],
const
char
user
[],
hba_recvauth
(
const
Port
*
port
,
const
char
database
[],
const
char
user
[],
const
char
DataDir
[]);
const
char
DataDir
[]);
void
void
find_hba_entry
(
const
char
DataDir
[],
const
struct
in_addr
ip_addr
,
find_hba_entry
(
const
char
DataDir
[],
const
struct
in_addr
ip_addr
,
...
...
src/include/libpq/libpq-be.h
View file @
72295139
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: libpq-be.h,v 1.
7 1997/09/08 21:52:35
momjian Exp $
* $Id: libpq-be.h,v 1.
8 1998/01/24 22:49:18
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -35,15 +35,13 @@ extern void be_portalpush(PortalEntry *entry);
...
@@ -35,15 +35,13 @@ extern void be_portalpush(PortalEntry *entry);
extern
PortalEntry
*
be_portalpop
(
void
);
extern
PortalEntry
*
be_portalpop
(
void
);
extern
PortalEntry
*
be_currentportal
(
void
);
extern
PortalEntry
*
be_currentportal
(
void
);
extern
PortalEntry
*
be_newportal
(
void
);
extern
PortalEntry
*
be_newportal
(
void
);
extern
void
extern
void
be_typeinit
(
PortalEntry
*
entry
,
TupleDesc
attrs
,
be_typeinit
(
PortalEntry
*
entry
,
TupleDesc
attrs
,
int
natts
);
int
natts
);
extern
void
be_printtup
(
HeapTuple
tuple
,
TupleDesc
typeinfo
);
extern
void
be_printtup
(
HeapTuple
tuple
,
TupleDesc
typeinfo
);
/* in be-pqexec.c */
/* in be-pqexec.c */
extern
char
*
extern
char
*
PQfn
(
int
fnid
,
int
*
result_buf
,
int
result_len
,
int
result_is_int
,
PQfn
(
int
fnid
,
int
*
result_buf
,
int
result_len
,
int
result_is_int
,
PQArgBlock
*
args
,
int
nargs
);
PQArgBlock
*
args
,
int
nargs
);
extern
char
*
PQexec
(
char
*
query
);
extern
char
*
PQexec
(
char
*
query
);
extern
int
pqtest_PQexec
(
char
*
q
);
extern
int
pqtest_PQexec
(
char
*
q
);
...
...
src/include/libpq/libpq.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: libpq.h,v 1.
8 1997/09/08 21:52:36
momjian Exp $
* $Id: libpq.h,v 1.
9 1998/01/24 22:49:21
momjian Exp $
*
*
* NOTES
* NOTES
* This file contains definitions for structures and
* This file contains definitions for structures and
...
@@ -179,11 +179,9 @@ extern int PQninstancesGroup(PortalBuffer *portal, int group_index);
...
@@ -179,11 +179,9 @@ extern int PQninstancesGroup(PortalBuffer *portal, int group_index);
extern
int
PQnfieldsGroup
(
PortalBuffer
*
portal
,
int
group_index
);
extern
int
PQnfieldsGroup
(
PortalBuffer
*
portal
,
int
group_index
);
extern
int
PQfnumberGroup
(
PortalBuffer
*
portal
,
int
group_index
,
char
*
field_name
);
extern
int
PQfnumberGroup
(
PortalBuffer
*
portal
,
int
group_index
,
char
*
field_name
);
extern
char
*
PQfnameGroup
(
PortalBuffer
*
portal
,
int
group_index
,
int
field_number
);
extern
char
*
PQfnameGroup
(
PortalBuffer
*
portal
,
int
group_index
,
int
field_number
);
extern
int
extern
int
PQftypeGroup
(
PortalBuffer
*
portal
,
int
group_index
,
PQftypeGroup
(
PortalBuffer
*
portal
,
int
group_index
,
int
field_number
);
int
field_number
);
extern
int
extern
int
PQfsizeGroup
(
PortalBuffer
*
portal
,
int
group_index
,
PQfsizeGroup
(
PortalBuffer
*
portal
,
int
group_index
,
int
field_number
);
int
field_number
);
extern
GroupBuffer
*
PQgroup
(
PortalBuffer
*
portal
,
int
tuple_index
);
extern
GroupBuffer
*
PQgroup
(
PortalBuffer
*
portal
,
int
tuple_index
);
extern
int
PQgetgroup
(
PortalBuffer
*
portal
,
int
tuple_index
);
extern
int
PQgetgroup
(
PortalBuffer
*
portal
,
int
tuple_index
);
...
@@ -250,8 +248,7 @@ extern int pq_sendoob(char *msg, int len);
...
@@ -250,8 +248,7 @@ extern int pq_sendoob(char *msg, int len);
extern
int
pq_recvoob
(
char
*
msgPtr
,
int
*
lenPtr
);
extern
int
pq_recvoob
(
char
*
msgPtr
,
int
*
lenPtr
);
extern
int
pq_getinaddr
(
struct
sockaddr_in
*
sin
,
char
*
host
,
int
port
);
extern
int
pq_getinaddr
(
struct
sockaddr_in
*
sin
,
char
*
host
,
int
port
);
extern
int
pq_getinserv
(
struct
sockaddr_in
*
sin
,
char
*
host
,
char
*
serv
);
extern
int
pq_getinserv
(
struct
sockaddr_in
*
sin
,
char
*
host
,
char
*
serv
);
extern
int
extern
int
pq_connect
(
char
*
dbname
,
char
*
user
,
char
*
args
,
char
*
hostName
,
pq_connect
(
char
*
dbname
,
char
*
user
,
char
*
args
,
char
*
hostName
,
char
*
debugTty
,
char
*
execFile
,
short
portName
);
char
*
debugTty
,
char
*
execFile
,
short
portName
);
extern
int
StreamOpen
(
char
*
hostName
,
short
portName
,
Port
*
port
);
extern
int
StreamOpen
(
char
*
hostName
,
short
portName
,
Port
*
port
);
extern
void
pq_regoob
(
void
(
*
fptr
)
());
extern
void
pq_regoob
(
void
(
*
fptr
)
());
...
...
src/include/libpq/pqcomm.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pqcomm.h,v 1.1
7 1997/12/04 00:27:56 scrappy
Exp $
* $Id: pqcomm.h,v 1.1
8 1998/01/24 22:49:23 momjian
Exp $
*
*
* NOTES
* NOTES
* Some of this should move to libpq.h
* Some of this should move to libpq.h
...
@@ -164,8 +164,7 @@ int pqPutByte(int, FILE *);
...
@@ -164,8 +164,7 @@ int pqPutByte(int, FILE *);
* prototypes for functions in pqpacket.c
* prototypes for functions in pqpacket.c
*/
*/
extern
int
PacketReceive
(
Port
*
port
,
PacketBuf
*
buf
,
char
nonBlocking
);
extern
int
PacketReceive
(
Port
*
port
,
PacketBuf
*
buf
,
char
nonBlocking
);
extern
int
extern
int
PacketSend
(
Port
*
port
,
PacketBuf
*
buf
,
PacketSend
(
Port
*
port
,
PacketBuf
*
buf
,
PacketLen
len
,
char
nonBlocking
);
PacketLen
len
,
char
nonBlocking
);
/* extern PacketBuf* StartupInfo2PacketBuf(StartupInfo*); */
/* extern PacketBuf* StartupInfo2PacketBuf(StartupInfo*); */
...
...
src/include/nodes/makefuncs.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: makefuncs.h,v 1.
6 1998/01/20 22:12:13
momjian Exp $
* $Id: makefuncs.h,v 1.
7 1998/01/24 22:49:25
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -16,23 +16,20 @@
...
@@ -16,23 +16,20 @@
#include <nodes/primnodes.h>
#include <nodes/primnodes.h>
#include <utils/fcache.h>
#include <utils/fcache.h>
extern
Oper
*
extern
Oper
*
makeOper
(
Oid
opno
,
makeOper
(
Oid
opno
,
Oid
opid
,
Oid
opid
,
Oid
opresulttype
,
Oid
opresulttype
,
int
opsize
,
int
opsize
,
FunctionCachePtr
op_fcache
);
FunctionCachePtr
op_fcache
);
extern
Var
*
extern
Var
*
makeVar
(
Index
varno
,
makeVar
(
Index
varno
,
AttrNumber
varattno
,
AttrNumber
varattno
,
Oid
vartype
,
Oid
vartype
,
Index
varlevelsup
,
Index
varlevelsup
,
Index
varnoold
,
Index
varnoold
,
AttrNumber
varoattno
);
AttrNumber
varoattno
);
extern
Resdom
*
extern
Resdom
*
makeResdom
(
AttrNumber
resno
,
makeResdom
(
AttrNumber
resno
,
Oid
restype
,
Oid
restype
,
int
reslen
,
int
reslen
,
char
*
resname
,
char
*
resname
,
...
@@ -40,8 +37,7 @@ makeResdom(AttrNumber resno,
...
@@ -40,8 +37,7 @@ makeResdom(AttrNumber resno,
Oid
reskeyop
,
Oid
reskeyop
,
int
resjunk
);
int
resjunk
);
extern
Const
*
extern
Const
*
makeConst
(
Oid
consttype
,
makeConst
(
Oid
consttype
,
Size
constlen
,
Size
constlen
,
Datum
constvalue
,
Datum
constvalue
,
bool
constisnull
,
bool
constisnull
,
...
...
src/include/nodes/print.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: print.h,v 1.
5 1997/09/08 21:52:59
momjian Exp $
* $Id: print.h,v 1.
6 1998/01/24 22:49:28
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -26,8 +26,7 @@ extern void print_expr(Node *expr, List *rtable);
...
@@ -26,8 +26,7 @@ extern void print_expr(Node *expr, List *rtable);
extern
void
print_keys
(
List
*
keys
,
List
*
rtable
);
extern
void
print_keys
(
List
*
keys
,
List
*
rtable
);
extern
void
print_tl
(
List
*
tlist
,
List
*
rtable
);
extern
void
print_tl
(
List
*
tlist
,
List
*
rtable
);
extern
void
print_slot
(
TupleTableSlot
*
slot
);
extern
void
print_slot
(
TupleTableSlot
*
slot
);
extern
void
extern
void
print_plan_recursive
(
Plan
*
p
,
Query
*
parsetree
,
print_plan_recursive
(
Plan
*
p
,
Query
*
parsetree
,
int
indentLevel
,
char
*
label
);
int
indentLevel
,
char
*
label
);
extern
void
print_plan
(
Plan
*
p
,
Query
*
parsetree
);
extern
void
print_plan
(
Plan
*
p
,
Query
*
parsetree
);
...
...
src/include/optimizer/clauseinfo.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: clauseinfo.h,v 1.
5 1997/11/26 01:13:12
momjian Exp $
* $Id: clauseinfo.h,v 1.
6 1998/01/24 22:49:34
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -18,11 +18,9 @@
...
@@ -18,11 +18,9 @@
extern
bool
valid_or_clause
(
CInfo
*
clauseinfo
);
extern
bool
valid_or_clause
(
CInfo
*
clauseinfo
);
extern
List
*
get_actual_clauses
(
List
*
clauseinfo_list
);
extern
List
*
get_actual_clauses
(
List
*
clauseinfo_list
);
extern
void
extern
void
get_relattvals
(
List
*
clauseinfo_list
,
List
**
attnos
,
get_relattvals
(
List
*
clauseinfo_list
,
List
**
attnos
,
List
**
values
,
List
**
flags
);
List
**
values
,
List
**
flags
);
extern
void
extern
void
get_joinvars
(
Oid
relid
,
List
*
clauseinfo_list
,
get_joinvars
(
Oid
relid
,
List
*
clauseinfo_list
,
List
**
attnos
,
List
**
values
,
List
**
flags
);
List
**
attnos
,
List
**
values
,
List
**
flags
);
extern
List
*
get_opnos
(
List
*
clauseinfo_list
);
extern
List
*
get_opnos
(
List
*
clauseinfo_list
);
...
...
src/include/optimizer/clauses.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: clauses.h,v 1.
7 1997/09/08 21:53:06
momjian Exp $
* $Id: clauses.h,v 1.
8 1998/01/24 22:49:39
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -42,11 +42,9 @@ extern bool join_clause_p(Node *clause);
...
@@ -42,11 +42,9 @@ extern bool join_clause_p(Node *clause);
extern
bool
qual_clause_p
(
Node
*
clause
);
extern
bool
qual_clause_p
(
Node
*
clause
);
extern
void
fix_opid
(
Node
*
clause
);
extern
void
fix_opid
(
Node
*
clause
);
extern
List
*
fix_opids
(
List
*
clauses
);
extern
List
*
fix_opids
(
List
*
clauses
);
extern
void
extern
void
get_relattval
(
Node
*
clause
,
int
*
relid
,
get_relattval
(
Node
*
clause
,
int
*
relid
,
AttrNumber
*
attno
,
Datum
*
constval
,
int
*
flag
);
AttrNumber
*
attno
,
Datum
*
constval
,
int
*
flag
);
extern
void
extern
void
get_rels_atts
(
Node
*
clause
,
int
*
relid1
,
get_rels_atts
(
Node
*
clause
,
int
*
relid1
,
AttrNumber
*
attno1
,
int
*
relid2
,
AttrNumber
*
attno2
);
AttrNumber
*
attno1
,
int
*
relid2
,
AttrNumber
*
attno2
);
extern
void
CommuteClause
(
Node
*
clause
);
extern
void
CommuteClause
(
Node
*
clause
);
...
...
src/include/optimizer/cost.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: cost.h,v 1.
6 1997/11/26 01:13:16
momjian Exp $
* $Id: cost.h,v 1.
7 1998/01/24 22:49:41
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -31,20 +31,16 @@ extern bool _enable_mergesort_;
...
@@ -31,20 +31,16 @@ extern bool _enable_mergesort_;
extern
bool
_enable_hashjoin_
;
extern
bool
_enable_hashjoin_
;
extern
Cost
cost_seqscan
(
int
relid
,
int
relpages
,
int
reltuples
);
extern
Cost
cost_seqscan
(
int
relid
,
int
relpages
,
int
reltuples
);
extern
Cost
extern
Cost
cost_index
(
Oid
indexid
,
int
expected_indexpages
,
Cost
selec
,
cost_index
(
Oid
indexid
,
int
expected_indexpages
,
Cost
selec
,
int
relpages
,
int
reltuples
,
int
indexpages
,
int
relpages
,
int
reltuples
,
int
indexpages
,
int
indextuples
,
bool
is_injoin
);
int
indextuples
,
bool
is_injoin
);
extern
Cost
cost_sort
(
List
*
keys
,
int
tuples
,
int
width
,
bool
noread
);
extern
Cost
cost_sort
(
List
*
keys
,
int
tuples
,
int
width
,
bool
noread
);
extern
Cost
extern
Cost
cost_nestloop
(
Cost
outercost
,
Cost
innercost
,
int
outertuples
,
cost_nestloop
(
Cost
outercost
,
Cost
innercost
,
int
outertuples
,
int
innertuples
,
int
outerpages
,
bool
is_indexjoin
);
int
innertuples
,
int
outerpages
,
bool
is_indexjoin
);
extern
Cost
extern
Cost
cost_mergesort
(
Cost
outercost
,
Cost
innercost
,
cost_mergesort
(
Cost
outercost
,
Cost
innercost
,
List
*
outersortkeys
,
List
*
innersortkeys
,
List
*
outersortkeys
,
List
*
innersortkeys
,
int
outersize
,
int
innersize
,
int
outerwidth
,
int
innerwidth
);
int
outersize
,
int
innersize
,
int
outerwidth
,
int
innerwidth
);
extern
Cost
extern
Cost
cost_hashjoin
(
Cost
outercost
,
Cost
innercost
,
List
*
outerkeys
,
cost_hashjoin
(
Cost
outercost
,
Cost
innercost
,
List
*
outerkeys
,
List
*
innerkeys
,
int
outersize
,
int
innersize
,
List
*
innerkeys
,
int
outersize
,
int
innersize
,
int
outerwidth
,
int
innerwidth
);
int
outerwidth
,
int
innerwidth
);
extern
int
compute_rel_size
(
Rel
*
rel
);
extern
int
compute_rel_size
(
Rel
*
rel
);
...
@@ -60,8 +56,7 @@ extern void set_clause_selectivities(List *clauseinfo_list, Cost new_selectivity
...
@@ -60,8 +56,7 @@ extern void set_clause_selectivities(List *clauseinfo_list, Cost new_selectivity
extern
Cost
product_selec
(
List
*
clauseinfo_list
);
extern
Cost
product_selec
(
List
*
clauseinfo_list
);
extern
void
set_rest_relselec
(
Query
*
root
,
List
*
rel_list
);
extern
void
set_rest_relselec
(
Query
*
root
,
List
*
rel_list
);
extern
void
set_rest_selec
(
Query
*
root
,
List
*
clauseinfo_list
);
extern
void
set_rest_selec
(
Query
*
root
,
List
*
clauseinfo_list
);
extern
Cost
extern
Cost
compute_clause_selec
(
Query
*
root
,
compute_clause_selec
(
Query
*
root
,
Node
*
clause
,
List
*
or_selectivities
);
Node
*
clause
,
List
*
or_selectivities
);
#endif
/* COST_H */
#endif
/* COST_H */
src/include/optimizer/ordering.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: ordering.h,v 1.
6 1997/09/08 21:53:19
momjian Exp $
* $Id: ordering.h,v 1.
7 1998/01/24 22:49:43
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -15,14 +15,11 @@
...
@@ -15,14 +15,11 @@
#include <nodes/relation.h>
#include <nodes/relation.h>
extern
bool
extern
bool
equal_path_path_ordering
(
PathOrder
*
path_ordering1
,
equal_path_path_ordering
(
PathOrder
*
path_ordering1
,
PathOrder
*
path_ordering2
);
PathOrder
*
path_ordering2
);
extern
bool
extern
bool
equal_path_merge_ordering
(
Oid
*
path_ordering
,
equal_path_merge_ordering
(
Oid
*
path_ordering
,
MergeOrder
*
merge_ordering
);
MergeOrder
*
merge_ordering
);
extern
bool
extern
bool
equal_merge_merge_ordering
(
MergeOrder
*
merge_ordering1
,
equal_merge_merge_ordering
(
MergeOrder
*
merge_ordering1
,
MergeOrder
*
merge_ordering2
);
MergeOrder
*
merge_ordering2
);
#endif
/* ORDERING_H */
#endif
/* ORDERING_H */
src/include/optimizer/pathnode.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pathnode.h,v 1.
5 1997/11/26 01:13
:46 momjian Exp $
* $Id: pathnode.h,v 1.
6 1998/01/24 22:49
:46 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -22,24 +22,19 @@
...
@@ -22,24 +22,19 @@
*/
*/
extern
bool
path_is_cheaper
(
Path
*
path1
,
Path
*
path2
);
extern
bool
path_is_cheaper
(
Path
*
path1
,
Path
*
path2
);
extern
Path
*
set_cheapest
(
Rel
*
parent_rel
,
List
*
pathlist
);
extern
Path
*
set_cheapest
(
Rel
*
parent_rel
,
List
*
pathlist
);
extern
List
*
extern
List
*
add_pathlist
(
Rel
*
parent_rel
,
List
*
unique_paths
,
add_pathlist
(
Rel
*
parent_rel
,
List
*
unique_paths
,
List
*
new_paths
);
List
*
new_paths
);
extern
Path
*
create_seqscan_path
(
Rel
*
rel
);
extern
Path
*
create_seqscan_path
(
Rel
*
rel
);
extern
IndexPath
*
extern
IndexPath
*
create_index_path
(
Query
*
root
,
Rel
*
rel
,
Rel
*
index
,
create_index_path
(
Query
*
root
,
Rel
*
rel
,
Rel
*
index
,
List
*
restriction_clauses
,
bool
is_join_scan
);
List
*
restriction_clauses
,
bool
is_join_scan
);
extern
JoinPath
*
extern
JoinPath
*
create_nestloop_path
(
Rel
*
joinrel
,
Rel
*
outer_rel
,
create_nestloop_path
(
Rel
*
joinrel
,
Rel
*
outer_rel
,
Path
*
outer_path
,
Path
*
inner_path
,
List
*
keys
);
Path
*
outer_path
,
Path
*
inner_path
,
List
*
keys
);
extern
MergePath
*
extern
MergePath
*
create_mergesort_path
(
Rel
*
joinrel
,
int
outersize
,
create_mergesort_path
(
Rel
*
joinrel
,
int
outersize
,
int
innersize
,
int
outerwidth
,
int
innerwidth
,
Path
*
outer_path
,
int
innersize
,
int
outerwidth
,
int
innerwidth
,
Path
*
outer_path
,
Path
*
inner_path
,
List
*
keys
,
MergeOrder
*
order
,
Path
*
inner_path
,
List
*
keys
,
MergeOrder
*
order
,
List
*
mergeclauses
,
List
*
outersortkeys
,
List
*
innersortkeys
);
List
*
mergeclauses
,
List
*
outersortkeys
,
List
*
innersortkeys
);
extern
HashPath
*
extern
HashPath
*
create_hashjoin_path
(
Rel
*
joinrel
,
int
outersize
,
create_hashjoin_path
(
Rel
*
joinrel
,
int
outersize
,
int
innersize
,
int
outerwidth
,
int
innerwidth
,
Path
*
outer_path
,
int
innersize
,
int
outerwidth
,
int
innerwidth
,
Path
*
outer_path
,
Path
*
inner_path
,
List
*
keys
,
Oid
operator
,
List
*
hashclauses
,
Path
*
inner_path
,
List
*
keys
,
Oid
operator
,
List
*
hashclauses
,
List
*
outerkeys
,
List
*
innerkeys
);
List
*
outerkeys
,
List
*
innerkeys
);
...
...
src/include/optimizer/paths.h
View file @
72295139
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: paths.h,v 1.
6 1997/12/21 05:18
:48 momjian Exp $
* $Id: paths.h,v 1.
7 1998/01/24 22:49
:48 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -27,8 +27,7 @@ extern List *find_paths(Query *root, List *rels);
...
@@ -27,8 +27,7 @@ extern List *find_paths(Query *root, List *rels);
* indxpath.h
* indxpath.h
* routines to generate index paths
* routines to generate index paths
*/
*/
extern
List
*
extern
List
*
find_index_paths
(
Query
*
root
,
Rel
*
rel
,
List
*
indices
,
find_index_paths
(
Query
*
root
,
Rel
*
rel
,
List
*
indices
,
List
*
clauseinfo_list
,
List
*
clauseinfo_list
,
List
*
joininfo_list
);
List
*
joininfo_list
);
...
@@ -48,37 +47,30 @@ extern List *create_or_index_paths(Query *root, Rel *rel, List *clauses);
...
@@ -48,37 +47,30 @@ extern List *create_or_index_paths(Query *root, Rel *rel, List *clauses);
* hashutils.h
* hashutils.h
* routines to deal with hash keys and clauses
* routines to deal with hash keys and clauses
*/
*/
extern
List
*
extern
List
*
group_clauses_by_hashop
(
List
*
clauseinfo_list
,
group_clauses_by_hashop
(
List
*
clauseinfo_list
,
int
inner_relid
);
int
inner_relid
);
/*
/*
* joinutils.h
* joinutils.h
* generic join method key/clause routines
* generic join method key/clause routines
*/
*/
extern
List
*
extern
List
*
match_pathkeys_joinkeys
(
List
*
pathkeys
,
match_pathkeys_joinkeys
(
List
*
pathkeys
,
List
*
joinkeys
,
List
*
joinclauses
,
int
which_subkey
,
List
*
joinkeys
,
List
*
joinclauses
,
int
which_subkey
,
List
**
matchedJoinClausesPtr
);
List
**
matchedJoinClausesPtr
);
extern
List
*
extern
List
*
extract_path_keys
(
List
*
joinkeys
,
List
*
tlist
,
extract_path_keys
(
List
*
joinkeys
,
List
*
tlist
,
int
which_subkey
);
int
which_subkey
);
extern
Path
*
extern
Path
*
match_paths_joinkeys
(
List
*
joinkeys
,
PathOrder
*
ordering
,
match_paths_joinkeys
(
List
*
joinkeys
,
PathOrder
*
ordering
,
List
*
paths
,
int
which_subkey
);
List
*
paths
,
int
which_subkey
);
extern
List
*
extern
List
*
new_join_pathkeys
(
List
*
outer_pathkeys
,
new_join_pathkeys
(
List
*
outer_pathkeys
,
List
*
join_rel_tlist
,
List
*
joinclauses
);
List
*
join_rel_tlist
,
List
*
joinclauses
);
/*
/*
* mergeutils.h
* mergeutils.h
* routines to deal with merge keys and clauses
* routines to deal with merge keys and clauses
*/
*/
extern
List
*
extern
List
*
group_clauses_by_order
(
List
*
clauseinfo_list
,
group_clauses_by_order
(
List
*
clauseinfo_list
,
int
inner_relid
);
int
inner_relid
);
extern
MInfo
*
extern
MInfo
*
match_order_mergeinfo
(
PathOrder
*
ordering
,
match_order_mergeinfo
(
PathOrder
*
ordering
,
List
*
mergeinfo_list
);
List
*
mergeinfo_list
);
/*
/*
...
...
src/include/optimizer/plancat.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: plancat.h,v 1.
6 1997/09/08 21:53:27
momjian Exp $
* $Id: plancat.h,v 1.
7 1998/01/24 22:49:50
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -34,31 +34,26 @@ typedef struct IdxInfoRetval
...
@@ -34,31 +34,26 @@ typedef struct IdxInfoRetval
}
IdxInfoRetval
;
}
IdxInfoRetval
;
extern
void
extern
void
relation_info
(
Query
*
root
,
relation_info
(
Query
*
root
,
Oid
relid
,
Oid
relid
,
bool
*
hashindex
,
int
*
pages
,
bool
*
hashindex
,
int
*
pages
,
int
*
tuples
);
int
*
tuples
);
extern
bool
extern
bool
index_info
(
Query
*
root
,
index_info
(
Query
*
root
,
bool
first
,
int
relid
,
IdxInfoRetval
*
info
);
bool
first
,
int
relid
,
IdxInfoRetval
*
info
);
extern
Cost
extern
Cost
restriction_selectivity
(
Oid
functionObjectId
,
restriction_selectivity
(
Oid
functionObjectId
,
Oid
operatorObjectId
,
Oid
operatorObjectId
,
Oid
relationObjectId
,
Oid
relationObjectId
,
AttrNumber
attributeNumber
,
AttrNumber
attributeNumber
,
char
*
constValue
,
char
*
constValue
,
int32
constFlag
);
int32
constFlag
);
extern
void
extern
void
index_selectivity
(
Oid
indid
,
Oid
*
classes
,
List
*
opnos
,
index_selectivity
(
Oid
indid
,
Oid
*
classes
,
List
*
opnos
,
Oid
relid
,
List
*
attnos
,
List
*
values
,
List
*
flags
,
Oid
relid
,
List
*
attnos
,
List
*
values
,
List
*
flags
,
int32
nkeys
,
float
*
idxPages
,
float
*
idxSelec
);
int32
nkeys
,
float
*
idxPages
,
float
*
idxSelec
);
extern
Cost
extern
Cost
join_selectivity
(
Oid
functionObjectId
,
Oid
operatorObjectId
,
join_selectivity
(
Oid
functionObjectId
,
Oid
operatorObjectId
,
Oid
relationObjectId1
,
AttrNumber
attributeNumber1
,
Oid
relationObjectId1
,
AttrNumber
attributeNumber1
,
Oid
relationObjectId2
,
AttrNumber
attributeNumber2
);
Oid
relationObjectId2
,
AttrNumber
attributeNumber2
);
...
...
src/include/optimizer/tlist.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: tlist.h,v 1.
6 1997/11/26 01:13
:51 momjian Exp $
* $Id: tlist.h,v 1.
7 1998/01/24 22:49
:51 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -33,8 +33,7 @@ extern TargetEntry *match_varid(Var *test_var, List *tlist);
...
@@ -33,8 +33,7 @@ extern TargetEntry *match_varid(Var *test_var, List *tlist);
extern
List
*
new_unsorted_tlist
(
List
*
targetlist
);
extern
List
*
new_unsorted_tlist
(
List
*
targetlist
);
extern
List
*
copy_vars
(
List
*
target
,
List
*
source
);
extern
List
*
copy_vars
(
List
*
target
,
List
*
source
);
extern
List
*
flatten_tlist
(
List
*
tlist
);
extern
List
*
flatten_tlist
(
List
*
tlist
);
extern
List
*
extern
List
*
flatten_tlist_vars
(
List
*
full_tlist
,
flatten_tlist_vars
(
List
*
full_tlist
,
List
*
flat_tlist
);
List
*
flat_tlist
);
#endif
/* TLIST_H */
#endif
/* TLIST_H */
src/include/optimizer/xfunc.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: xfunc.h,v 1.
5 1997/09/08 21:53:33
momjian Exp $
* $Id: xfunc.h,v 1.
6 1998/01/24 22:49:52
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -50,11 +50,9 @@ extern int XfuncMode; /* defined in tcop/postgres.c */
...
@@ -50,11 +50,9 @@ extern int XfuncMode; /* defined in tcop/postgres.c */
/* function prototypes from planner/path/xfunc.c */
/* function prototypes from planner/path/xfunc.c */
extern
void
xfunc_trypullup
(
Rel
*
rel
);
extern
void
xfunc_trypullup
(
Rel
*
rel
);
extern
int
extern
int
xfunc_shouldpull
(
Path
*
childpath
,
JoinPath
*
parentpath
,
xfunc_shouldpull
(
Path
*
childpath
,
JoinPath
*
parentpath
,
int
whichchild
,
CInfo
*
maxcinfopt
);
int
whichchild
,
CInfo
*
maxcinfopt
);
extern
CInfo
*
extern
CInfo
*
xfunc_pullup
(
Path
*
childpath
,
JoinPath
*
parentpath
,
CInfo
*
cinfo
,
xfunc_pullup
(
Path
*
childpath
,
JoinPath
*
parentpath
,
CInfo
*
cinfo
,
int
whichchild
,
int
clausetype
);
int
whichchild
,
int
clausetype
);
extern
Cost
xfunc_rank
(
Expr
*
clause
);
extern
Cost
xfunc_rank
(
Expr
*
clause
);
extern
Cost
xfunc_expense
(
Query
*
queryInfo
,
Expr
*
clause
);
extern
Cost
xfunc_expense
(
Query
*
queryInfo
,
Expr
*
clause
);
...
...
src/include/rewrite/locks.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: locks.h,v 1.
6 1997/09/08 21:54:01
momjian Exp $
* $Id: locks.h,v 1.
7 1998/01/24 22:49:55
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -17,8 +17,7 @@
...
@@ -17,8 +17,7 @@
#include "nodes/parsenodes.h"
#include "nodes/parsenodes.h"
#include "rewrite/prs2lock.h"
#include "rewrite/prs2lock.h"
extern
List
*
extern
List
*
matchLocks
(
CmdType
event
,
RuleLock
*
rulelocks
,
int
varno
,
matchLocks
(
CmdType
event
,
RuleLock
*
rulelocks
,
int
varno
,
Query
*
parsetree
);
Query
*
parsetree
);
#endif
/* LOCKS_H */
#endif
/* LOCKS_H */
src/include/rewrite/rewriteSupport.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: rewriteSupport.h,v 1.
6 1997/11/26 01:14:27
momjian Exp $
* $Id: rewriteSupport.h,v 1.
7 1998/01/24 22:49:55
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -18,8 +18,7 @@
...
@@ -18,8 +18,7 @@
extern
int
IsDefinedRewriteRule
(
char
*
ruleName
);
extern
int
IsDefinedRewriteRule
(
char
*
ruleName
);
extern
void
extern
void
prs2_addToRelation
(
Oid
relid
,
Oid
ruleId
,
CmdType
event_type
,
prs2_addToRelation
(
Oid
relid
,
Oid
ruleId
,
CmdType
event_type
,
AttrNumber
attno
,
bool
isInstead
,
Node
*
qual
,
AttrNumber
attno
,
bool
isInstead
,
Node
*
qual
,
List
*
actions
);
List
*
actions
);
extern
void
prs2_deleteFromRelation
(
Oid
relid
,
Oid
ruleId
);
extern
void
prs2_deleteFromRelation
(
Oid
relid
,
Oid
ruleId
);
...
...
src/include/storage/buf_internals.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: buf_internals.h,v 1.
19 1997/11/21 18:12:43
momjian Exp $
* $Id: buf_internals.h,v 1.
20 1998/01/24 22:50:00
momjian Exp $
*
*
* NOTE
* NOTE
* If BUFFERPAGE0 is defined, then 0 will be used as a
* If BUFFERPAGE0 is defined, then 0 will be used as a
...
@@ -227,8 +227,7 @@ extern long *LocalRefCount;
...
@@ -227,8 +227,7 @@ extern long *LocalRefCount;
extern
BufferDesc
*
LocalBufferDescriptors
;
extern
BufferDesc
*
LocalBufferDescriptors
;
extern
int
NLocBuffer
;
extern
int
NLocBuffer
;
extern
BufferDesc
*
extern
BufferDesc
*
LocalBufferAlloc
(
Relation
reln
,
BlockNumber
blockNum
,
LocalBufferAlloc
(
Relation
reln
,
BlockNumber
blockNum
,
bool
*
foundPtr
);
bool
*
foundPtr
);
extern
int
WriteLocalBuffer
(
Buffer
buffer
,
bool
release
);
extern
int
WriteLocalBuffer
(
Buffer
buffer
,
bool
release
);
extern
int
FlushLocalBuffer
(
Buffer
buffer
,
bool
release
);
extern
int
FlushLocalBuffer
(
Buffer
buffer
,
bool
release
);
...
...
src/include/storage/bufmgr.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: bufmgr.h,v 1.1
6 1998/01/13 04:05:09 scrappy
Exp $
* $Id: bufmgr.h,v 1.1
7 1998/01/24 22:50:03 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -75,14 +75,12 @@ extern int ShowPinTrace;
...
@@ -75,14 +75,12 @@ extern int ShowPinTrace;
/*
/*
* prototypes for functions in bufmgr.c
* prototypes for functions in bufmgr.c
*/
*/
extern
Buffer
extern
Buffer
RelationGetBufferWithBuffer
(
Relation
relation
,
RelationGetBufferWithBuffer
(
Relation
relation
,
BlockNumber
blockNumber
,
Buffer
buffer
);
BlockNumber
blockNumber
,
Buffer
buffer
);
extern
Buffer
ReadBuffer
(
Relation
reln
,
BlockNumber
blockNum
);
extern
Buffer
ReadBuffer
(
Relation
reln
,
BlockNumber
blockNum
);
extern
int
WriteBuffer
(
Buffer
buffer
);
extern
int
WriteBuffer
(
Buffer
buffer
);
extern
int
WriteNoReleaseBuffer
(
Buffer
buffer
);
extern
int
WriteNoReleaseBuffer
(
Buffer
buffer
);
extern
Buffer
extern
Buffer
ReleaseAndReadBuffer
(
Buffer
buffer
,
Relation
relation
,
ReleaseAndReadBuffer
(
Buffer
buffer
,
Relation
relation
,
BlockNumber
blockNum
);
BlockNumber
blockNum
);
extern
void
InitBufferPool
(
IPCKey
key
);
extern
void
InitBufferPool
(
IPCKey
key
);
...
...
src/include/storage/bufpage.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: bufpage.h,v 1.1
5 1998/01/13 14:56:15 vadim
Exp $
* $Id: bufpage.h,v 1.1
6 1998/01/24 22:50:05 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -287,8 +287,7 @@ typedef enum
...
@@ -287,8 +287,7 @@ typedef enum
*/
*/
extern
void
PageInit
(
Page
page
,
Size
pageSize
,
Size
specialSize
);
extern
void
PageInit
(
Page
page
,
Size
pageSize
,
Size
specialSize
);
extern
OffsetNumber
extern
OffsetNumber
PageAddItem
(
Page
page
,
Item
item
,
Size
size
,
PageAddItem
(
Page
page
,
Item
item
,
Size
size
,
OffsetNumber
offsetNumber
,
ItemIdFlags
flags
);
OffsetNumber
offsetNumber
,
ItemIdFlags
flags
);
extern
Page
PageGetTempPage
(
Page
page
,
Size
specialSize
);
extern
Page
PageGetTempPage
(
Page
page
,
Size
specialSize
);
extern
void
PageRestoreTempPage
(
Page
tempPage
,
Page
oldPage
);
extern
void
PageRestoreTempPage
(
Page
tempPage
,
Page
oldPage
);
...
...
src/include/storage/ipc.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: ipc.h,v 1.2
2 1997/09/22 15:49:11
momjian Exp $
* $Id: ipc.h,v 1.2
3 1998/01/24 22:50:08
momjian Exp $
*
*
* NOTES
* NOTES
* This file is very architecture-specific. This stuff should actually
* This file is very architecture-specific. This stuff should actually
...
@@ -75,8 +75,7 @@ extern void exitpg(int code);
...
@@ -75,8 +75,7 @@ extern void exitpg(int code);
extern
void
quasi_exitpg
(
void
);
extern
void
quasi_exitpg
(
void
);
extern
int
on_exitpg
(
void
(
*
function
)
(),
caddr_t
arg
);
extern
int
on_exitpg
(
void
(
*
function
)
(),
caddr_t
arg
);
extern
IpcSemaphoreId
extern
IpcSemaphoreId
IpcSemaphoreCreate
(
IpcSemaphoreKey
semKey
,
IpcSemaphoreCreate
(
IpcSemaphoreKey
semKey
,
int
semNum
,
int
permission
,
int
semStartValue
,
int
semNum
,
int
permission
,
int
semStartValue
,
int
removeOnExit
,
int
*
status
);
int
removeOnExit
,
int
*
status
);
extern
void
IpcSemaphoreKill
(
IpcSemaphoreKey
key
);
extern
void
IpcSemaphoreKill
(
IpcSemaphoreKey
key
);
...
@@ -84,8 +83,7 @@ extern void IpcSemaphoreLock(IpcSemaphoreId semId, int sem, int lock);
...
@@ -84,8 +83,7 @@ extern void IpcSemaphoreLock(IpcSemaphoreId semId, int sem, int lock);
extern
void
IpcSemaphoreUnlock
(
IpcSemaphoreId
semId
,
int
sem
,
int
lock
);
extern
void
IpcSemaphoreUnlock
(
IpcSemaphoreId
semId
,
int
sem
,
int
lock
);
extern
int
IpcSemaphoreGetCount
(
IpcSemaphoreId
semId
,
int
sem
);
extern
int
IpcSemaphoreGetCount
(
IpcSemaphoreId
semId
,
int
sem
);
extern
int
IpcSemaphoreGetValue
(
IpcSemaphoreId
semId
,
int
sem
);
extern
int
IpcSemaphoreGetValue
(
IpcSemaphoreId
semId
,
int
sem
);
extern
IpcMemoryId
extern
IpcMemoryId
IpcMemoryCreate
(
IpcMemoryKey
memKey
,
uint32
size
,
IpcMemoryCreate
(
IpcMemoryKey
memKey
,
uint32
size
,
int
permission
);
int
permission
);
extern
IpcMemoryId
IpcMemoryIdGet
(
IpcMemoryKey
memKey
,
uint32
size
);
extern
IpcMemoryId
IpcMemoryIdGet
(
IpcMemoryKey
memKey
,
uint32
size
);
extern
char
*
IpcMemoryAttach
(
IpcMemoryId
memId
);
extern
char
*
IpcMemoryAttach
(
IpcMemoryId
memId
);
...
...
src/include/storage/lmgr.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: lmgr.h,v 1.
8 1997/09/08 21:54:30
momjian Exp $
* $Id: lmgr.h,v 1.
9 1998/01/24 22:50:09
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -49,22 +49,17 @@ extern void RelationSetLockForWrite(Relation relation);
...
@@ -49,22 +49,17 @@ extern void RelationSetLockForWrite(Relation relation);
extern
void
RelationUnsetLockForWrite
(
Relation
relation
);
extern
void
RelationUnsetLockForWrite
(
Relation
relation
);
/* used in vaccum.c */
/* used in vaccum.c */
extern
void
extern
void
RelationSetLockForWritePage
(
Relation
relation
,
RelationSetLockForWritePage
(
Relation
relation
,
ItemPointer
itemPointer
);
ItemPointer
itemPointer
);
/* used in nbtpage.c, hashpage.c */
/* used in nbtpage.c, hashpage.c */
extern
void
extern
void
RelationSetSingleWLockPage
(
Relation
relation
,
RelationSetSingleWLockPage
(
Relation
relation
,
ItemPointer
itemPointer
);
ItemPointer
itemPointer
);
extern
void
extern
void
RelationUnsetSingleWLockPage
(
Relation
relation
,
RelationUnsetSingleWLockPage
(
Relation
relation
,
ItemPointer
itemPointer
);
ItemPointer
itemPointer
);
extern
void
extern
void
RelationSetSingleRLockPage
(
Relation
relation
,
RelationSetSingleRLockPage
(
Relation
relation
,
ItemPointer
itemPointer
);
ItemPointer
itemPointer
);
extern
void
extern
void
RelationUnsetSingleRLockPage
(
Relation
relation
,
RelationUnsetSingleRLockPage
(
Relation
relation
,
ItemPointer
itemPointer
);
ItemPointer
itemPointer
);
extern
void
RelationSetRIntentLock
(
Relation
relation
);
extern
void
RelationSetRIntentLock
(
Relation
relation
);
extern
void
RelationUnsetRIntentLock
(
Relation
relation
);
extern
void
RelationUnsetRIntentLock
(
Relation
relation
);
...
@@ -73,8 +68,7 @@ extern void RelationUnsetWIntentLock(Relation relation);
...
@@ -73,8 +68,7 @@ extern void RelationUnsetWIntentLock(Relation relation);
/* single.c */
/* single.c */
extern
bool
SingleLockReln
(
LockInfo
linfo
,
LOCKT
lockt
,
int
action
);
extern
bool
SingleLockReln
(
LockInfo
linfo
,
LOCKT
lockt
,
int
action
);
extern
bool
extern
bool
SingleLockPage
(
LockInfo
linfo
,
ItemPointer
tidPtr
,
SingleLockPage
(
LockInfo
linfo
,
ItemPointer
tidPtr
,
LOCKT
lockt
,
int
action
);
LOCKT
lockt
,
int
action
);
/* proc.c */
/* proc.c */
...
...
src/include/storage/lock.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: lock.h,v 1.
8 1997/09/08 21:54:3
1 momjian Exp $
* $Id: lock.h,v 1.
9 1998/01/24 22:50:1
1 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -204,12 +204,10 @@ extern SPINLOCK LockMgrLock;
...
@@ -204,12 +204,10 @@ extern SPINLOCK LockMgrLock;
*/
*/
extern
void
InitLocks
(
void
);
extern
void
InitLocks
(
void
);
extern
void
LockDisable
(
int
status
);
extern
void
LockDisable
(
int
status
);
extern
LockTableId
extern
LockTableId
LockTabInit
(
char
*
tabName
,
MASK
*
conflictsP
,
int
*
prioP
,
LockTabInit
(
char
*
tabName
,
MASK
*
conflictsP
,
int
*
prioP
,
int
ntypes
);
int
ntypes
);
extern
bool
LockAcquire
(
LockTableId
tableId
,
LOCKTAG
*
lockName
,
LOCKT
lockt
);
extern
bool
LockAcquire
(
LockTableId
tableId
,
LOCKTAG
*
lockName
,
LOCKT
lockt
);
extern
int
extern
int
LockResolveConflicts
(
LOCKTAB
*
ltable
,
LOCK
*
lock
,
LOCKT
lockt
,
LockResolveConflicts
(
LOCKTAB
*
ltable
,
LOCK
*
lock
,
LOCKT
lockt
,
TransactionId
xid
);
TransactionId
xid
);
extern
bool
LockRelease
(
LockTableId
tableId
,
LOCKTAG
*
lockName
,
LOCKT
lockt
);
extern
bool
LockRelease
(
LockTableId
tableId
,
LOCKTAG
*
lockName
,
LOCKT
lockt
);
extern
void
GrantLock
(
LOCK
*
lock
,
LOCKT
lockt
);
extern
void
GrantLock
(
LOCK
*
lock
,
LOCKT
lockt
);
...
...
src/include/storage/shmem.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: shmem.h,v 1.
9 1997/09/08 21:54:3
3 momjian Exp $
* $Id: shmem.h,v 1.
10 1998/01/24 22:50:1
3 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -64,13 +64,11 @@ extern void ShmemCreate(unsigned int key, unsigned int size);
...
@@ -64,13 +64,11 @@ extern void ShmemCreate(unsigned int key, unsigned int size);
extern
int
InitShmem
(
unsigned
int
key
,
unsigned
int
size
);
extern
int
InitShmem
(
unsigned
int
key
,
unsigned
int
size
);
extern
long
*
ShmemAlloc
(
unsigned
long
size
);
extern
long
*
ShmemAlloc
(
unsigned
long
size
);
extern
int
ShmemIsValid
(
unsigned
long
addr
);
extern
int
ShmemIsValid
(
unsigned
long
addr
);
extern
HTAB
*
extern
HTAB
*
ShmemInitHash
(
char
*
name
,
long
init_size
,
long
max_size
,
ShmemInitHash
(
char
*
name
,
long
init_size
,
long
max_size
,
HASHCTL
*
infoP
,
int
hash_flags
);
HASHCTL
*
infoP
,
int
hash_flags
);
extern
bool
ShmemPIDLookup
(
int
pid
,
SHMEM_OFFSET
*
locationPtr
);
extern
bool
ShmemPIDLookup
(
int
pid
,
SHMEM_OFFSET
*
locationPtr
);
extern
SHMEM_OFFSET
ShmemPIDDestroy
(
int
pid
);
extern
SHMEM_OFFSET
ShmemPIDDestroy
(
int
pid
);
extern
long
*
extern
long
*
ShmemInitStruct
(
char
*
name
,
unsigned
long
size
,
ShmemInitStruct
(
char
*
name
,
unsigned
long
size
,
bool
*
foundPtr
);
bool
*
foundPtr
);
extern
bool
TransactionIdIsInProgress
(
TransactionId
xid
);
extern
bool
TransactionIdIsInProgress
(
TransactionId
xid
);
...
@@ -100,8 +98,7 @@ extern void SHMQueueInit(SHM_QUEUE *queue);
...
@@ -100,8 +98,7 @@ extern void SHMQueueInit(SHM_QUEUE *queue);
extern
void
SHMQueueElemInit
(
SHM_QUEUE
*
queue
);
extern
void
SHMQueueElemInit
(
SHM_QUEUE
*
queue
);
extern
void
SHMQueueDelete
(
SHM_QUEUE
*
queue
);
extern
void
SHMQueueDelete
(
SHM_QUEUE
*
queue
);
extern
void
SHMQueueInsertTL
(
SHM_QUEUE
*
queue
,
SHM_QUEUE
*
elem
);
extern
void
SHMQueueInsertTL
(
SHM_QUEUE
*
queue
,
SHM_QUEUE
*
elem
);
extern
void
extern
void
SHMQueueFirst
(
SHM_QUEUE
*
queue
,
Pointer
*
nextPtrPtr
,
SHMQueueFirst
(
SHM_QUEUE
*
queue
,
Pointer
*
nextPtrPtr
,
SHM_QUEUE
*
nextQueue
);
SHM_QUEUE
*
nextQueue
);
extern
bool
SHMQueueEmpty
(
SHM_QUEUE
*
queue
);
extern
bool
SHMQueueEmpty
(
SHM_QUEUE
*
queue
);
...
...
src/include/storage/sinval.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: sinval.h,v 1.
6 1997/09/08 02:39:09
momjian Exp $
* $Id: sinval.h,v 1.
7 1998/01/24 22:50:15
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -21,8 +21,7 @@ extern SPINLOCK SInvalLock;
...
@@ -21,8 +21,7 @@ extern SPINLOCK SInvalLock;
extern
void
CreateSharedInvalidationState
(
IPCKey
key
);
extern
void
CreateSharedInvalidationState
(
IPCKey
key
);
extern
void
AttachSharedInvalidationState
(
IPCKey
key
);
extern
void
AttachSharedInvalidationState
(
IPCKey
key
);
extern
void
InitSharedInvalidationState
(
void
);
extern
void
InitSharedInvalidationState
(
void
);
extern
void
extern
void
RegisterSharedInvalid
(
int
cacheId
,
Index
hashIndex
,
RegisterSharedInvalid
(
int
cacheId
,
Index
hashIndex
,
ItemPointer
pointer
);
ItemPointer
pointer
);
extern
void
InvalidateSharedInvalid
(
void
(
*
invalFunction
)
(),
extern
void
InvalidateSharedInvalid
(
void
(
*
invalFunction
)
(),
void
(
*
resetFunction
)
());
void
(
*
resetFunction
)
());
...
...
src/include/storage/sinvaladt.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: sinvaladt.h,v 1.
6 1997/09/08 21:54:34
momjian Exp $
* $Id: sinvaladt.h,v 1.
7 1998/01/24 22:50:17
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -125,8 +125,7 @@ extern int SISegmentInit(bool killExistingSegment, IPCKey key);
...
@@ -125,8 +125,7 @@ extern int SISegmentInit(bool killExistingSegment, IPCKey key);
extern
bool
SISetDataEntry
(
SISeg
*
segP
,
SharedInvalidData
*
data
);
extern
bool
SISetDataEntry
(
SISeg
*
segP
,
SharedInvalidData
*
data
);
extern
void
SISetProcStateInvalid
(
SISeg
*
segP
);
extern
void
SISetProcStateInvalid
(
SISeg
*
segP
);
extern
bool
SIDelDataEntry
(
SISeg
*
segP
);
extern
bool
SIDelDataEntry
(
SISeg
*
segP
);
extern
void
extern
void
SIReadEntryData
(
SISeg
*
segP
,
int
backendId
,
SIReadEntryData
(
SISeg
*
segP
,
int
backendId
,
void
(
*
invalFunction
)
(),
void
(
*
resetFunction
)
());
void
(
*
invalFunction
)
(),
void
(
*
resetFunction
)
());
extern
void
SIDelExpiredDataEntries
(
SISeg
*
segP
);
extern
void
SIDelExpiredDataEntries
(
SISeg
*
segP
);
...
...
src/include/storage/smgr.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: smgr.h,v 1.
9 1997/09/08 02:39:13
momjian Exp $
* $Id: smgr.h,v 1.
10 1998/01/24 22:50:18
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -28,17 +28,13 @@ extern int smgrunlink(int16 which, Relation reln);
...
@@ -28,17 +28,13 @@ extern int smgrunlink(int16 which, Relation reln);
extern
int
smgrextend
(
int16
which
,
Relation
reln
,
char
*
buffer
);
extern
int
smgrextend
(
int16
which
,
Relation
reln
,
char
*
buffer
);
extern
int
smgropen
(
int16
which
,
Relation
reln
);
extern
int
smgropen
(
int16
which
,
Relation
reln
);
extern
int
smgrclose
(
int16
which
,
Relation
reln
);
extern
int
smgrclose
(
int16
which
,
Relation
reln
);
extern
int
extern
int
smgrread
(
int16
which
,
Relation
reln
,
BlockNumber
blocknum
,
smgrread
(
int16
which
,
Relation
reln
,
BlockNumber
blocknum
,
char
*
buffer
);
char
*
buffer
);
extern
int
extern
int
smgrwrite
(
int16
which
,
Relation
reln
,
BlockNumber
blocknum
,
smgrwrite
(
int16
which
,
Relation
reln
,
BlockNumber
blocknum
,
char
*
buffer
);
char
*
buffer
);
extern
int
extern
int
smgrflush
(
int16
which
,
Relation
reln
,
BlockNumber
blocknum
,
smgrflush
(
int16
which
,
Relation
reln
,
BlockNumber
blocknum
,
char
*
buffer
);
char
*
buffer
);
extern
int
extern
int
smgrblindwrt
(
int16
which
,
char
*
dbname
,
char
*
relname
,
Oid
dbid
,
smgrblindwrt
(
int16
which
,
char
*
dbname
,
char
*
relname
,
Oid
dbid
,
Oid
relid
,
BlockNumber
blkno
,
char
*
buffer
);
Oid
relid
,
BlockNumber
blkno
,
char
*
buffer
);
extern
int
smgrnblocks
(
int16
which
,
Relation
reln
);
extern
int
smgrnblocks
(
int16
which
,
Relation
reln
);
extern
int
smgrtruncate
(
int16
which
,
Relation
reln
,
int
nblocks
);
extern
int
smgrtruncate
(
int16
which
,
Relation
reln
,
int
nblocks
);
...
@@ -59,8 +55,7 @@ extern int mdclose(Relation reln);
...
@@ -59,8 +55,7 @@ extern int mdclose(Relation reln);
extern
int
mdread
(
Relation
reln
,
BlockNumber
blocknum
,
char
*
buffer
);
extern
int
mdread
(
Relation
reln
,
BlockNumber
blocknum
,
char
*
buffer
);
extern
int
mdwrite
(
Relation
reln
,
BlockNumber
blocknum
,
char
*
buffer
);
extern
int
mdwrite
(
Relation
reln
,
BlockNumber
blocknum
,
char
*
buffer
);
extern
int
mdflush
(
Relation
reln
,
BlockNumber
blocknum
,
char
*
buffer
);
extern
int
mdflush
(
Relation
reln
,
BlockNumber
blocknum
,
char
*
buffer
);
extern
int
extern
int
mdblindwrt
(
char
*
dbstr
,
char
*
relstr
,
Oid
dbid
,
Oid
relid
,
mdblindwrt
(
char
*
dbstr
,
char
*
relstr
,
Oid
dbid
,
Oid
relid
,
BlockNumber
blkno
,
char
*
buffer
);
BlockNumber
blkno
,
char
*
buffer
);
extern
int
mdnblocks
(
Relation
reln
);
extern
int
mdnblocks
(
Relation
reln
);
extern
int
mdtruncate
(
Relation
reln
,
int
nblocks
);
extern
int
mdtruncate
(
Relation
reln
,
int
nblocks
);
...
@@ -80,8 +75,7 @@ extern int mmclose(Relation reln);
...
@@ -80,8 +75,7 @@ extern int mmclose(Relation reln);
extern
int
mmread
(
Relation
reln
,
BlockNumber
blocknum
,
char
*
buffer
);
extern
int
mmread
(
Relation
reln
,
BlockNumber
blocknum
,
char
*
buffer
);
extern
int
mmwrite
(
Relation
reln
,
BlockNumber
blocknum
,
char
*
buffer
);
extern
int
mmwrite
(
Relation
reln
,
BlockNumber
blocknum
,
char
*
buffer
);
extern
int
mmflush
(
Relation
reln
,
BlockNumber
blocknum
,
char
*
buffer
);
extern
int
mmflush
(
Relation
reln
,
BlockNumber
blocknum
,
char
*
buffer
);
extern
int
extern
int
mmblindwrt
(
char
*
dbstr
,
char
*
relstr
,
Oid
dbid
,
Oid
relid
,
mmblindwrt
(
char
*
dbstr
,
char
*
relstr
,
Oid
dbid
,
Oid
relid
,
BlockNumber
blkno
,
char
*
buffer
);
BlockNumber
blkno
,
char
*
buffer
);
extern
int
mmnblocks
(
Relation
reln
);
extern
int
mmnblocks
(
Relation
reln
);
extern
int
mmcommit
(
void
);
extern
int
mmcommit
(
void
);
...
...
src/include/tcop/dest.h
View file @
72295139
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: dest.h,v 1.1
1 1997/09/08 21:54:36
momjian Exp $
* $Id: dest.h,v 1.1
2 1998/01/24 22:50:22
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -70,8 +70,7 @@ extern void EndCommand(char *commandTag, CommandDest dest);
...
@@ -70,8 +70,7 @@ extern void EndCommand(char *commandTag, CommandDest dest);
extern
void
SendCopyBegin
(
void
);
extern
void
SendCopyBegin
(
void
);
extern
void
ReceiveCopyBegin
(
void
);
extern
void
ReceiveCopyBegin
(
void
);
extern
void
NullCommand
(
CommandDest
dest
);
extern
void
NullCommand
(
CommandDest
dest
);
extern
void
extern
void
BeginCommand
(
char
*
pname
,
int
operation
,
TupleDesc
attinfo
,
BeginCommand
(
char
*
pname
,
int
operation
,
TupleDesc
attinfo
,
bool
isIntoRel
,
bool
isIntoPortal
,
char
*
tag
,
bool
isIntoRel
,
bool
isIntoPortal
,
char
*
tag
,
CommandDest
dest
);
CommandDest
dest
);
extern
void
UpdateCommandInfo
(
int
operation
,
Oid
lastoid
,
uint32
tuples
);
extern
void
UpdateCommandInfo
(
int
operation
,
Oid
lastoid
,
uint32
tuples
);
...
...
src/include/tcop/pquery.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pquery.h,v 1.
7 1997/09/08 21:54:40
momjian Exp $
* $Id: pquery.h,v 1.
8 1998/01/24 22:50:24
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -23,13 +23,11 @@ extern QueryDesc *CreateQueryDesc(Query *parsetree, Plan *plantree,
...
@@ -23,13 +23,11 @@ extern QueryDesc *CreateQueryDesc(Query *parsetree, Plan *plantree,
extern
EState
*
CreateExecutorState
(
void
);
extern
EState
*
CreateExecutorState
(
void
);
extern
void
extern
void
ProcessPortal
(
char
*
portalName
,
Query
*
parseTree
,
ProcessPortal
(
char
*
portalName
,
Query
*
parseTree
,
Plan
*
plan
,
EState
*
state
,
TupleDesc
attinfo
,
Plan
*
plan
,
EState
*
state
,
TupleDesc
attinfo
,
CommandDest
dest
);
CommandDest
dest
);
extern
void
extern
void
ProcessQuery
(
Query
*
parsetree
,
Plan
*
plan
,
char
*
argv
[],
ProcessQuery
(
Query
*
parsetree
,
Plan
*
plan
,
char
*
argv
[],
Oid
*
typev
,
int
nargs
,
CommandDest
dest
);
Oid
*
typev
,
int
nargs
,
CommandDest
dest
);
#endif
/* pqueryIncluded */
#endif
/* pqueryIncluded */
src/include/tcop/tcopprot.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: tcopprot.h,v 1.
9 1997/12/11 17:36:58
momjian Exp $
* $Id: tcopprot.h,v 1.
10 1998/01/24 22:50:26
momjian Exp $
*
*
* OLD COMMENTS
* OLD COMMENTS
* This file was created so that other c files could get the two
* This file was created so that other c files could get the two
...
@@ -22,12 +22,10 @@
...
@@ -22,12 +22,10 @@
#include <parser/parse_node.h>
#include <parser/parse_node.h>
#ifndef BOOTSTRAP_INCLUDE
#ifndef BOOTSTRAP_INCLUDE
extern
List
*
extern
List
*
pg_parse_and_plan
(
char
*
query_string
,
Oid
*
typev
,
int
nargs
,
pg_parse_and_plan
(
char
*
query_string
,
Oid
*
typev
,
int
nargs
,
QueryTreeList
**
queryListP
,
CommandDest
dest
);
QueryTreeList
**
queryListP
,
CommandDest
dest
);
extern
void
pg_exec_query
(
char
*
query_string
,
char
**
argv
,
Oid
*
typev
,
int
nargs
);
extern
void
pg_exec_query
(
char
*
query_string
,
char
**
argv
,
Oid
*
typev
,
int
nargs
);
extern
void
extern
void
pg_exec_query_dest
(
char
*
query_string
,
char
**
argv
,
Oid
*
typev
,
pg_exec_query_dest
(
char
*
query_string
,
char
**
argv
,
Oid
*
typev
,
int
nargs
,
CommandDest
dest
);
int
nargs
,
CommandDest
dest
);
#endif
/* BOOTSTRAP_HEADER */
#endif
/* BOOTSTRAP_HEADER */
...
...
src/include/utils/acl.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: acl.h,v 1.1
2 1998/01/05 18:43:1
8 momjian Exp $
* $Id: acl.h,v 1.1
3 1998/01/24 22:50:2
8 momjian Exp $
*
*
* NOTES
* NOTES
* For backward-compatability purposes we have to allow there
* For backward-compatability purposes we have to allow there
...
@@ -141,8 +141,7 @@ extern Acl *aclinsert3(Acl *old_acl, AclItem *mod_aip, unsigned modechg);
...
@@ -141,8 +141,7 @@ extern Acl *aclinsert3(Acl *old_acl, AclItem *mod_aip, unsigned modechg);
extern
char
*
aclmakepriv
(
char
*
old_privlist
,
char
new_priv
);
extern
char
*
aclmakepriv
(
char
*
old_privlist
,
char
new_priv
);
extern
char
*
aclmakeuser
(
char
*
user_type
,
char
*
user
);
extern
char
*
aclmakeuser
(
char
*
user_type
,
char
*
user
);
extern
ChangeACLStmt
*
extern
ChangeACLStmt
*
makeAclStmt
(
char
*
privs
,
List
*
rel_list
,
char
*
grantee
,
makeAclStmt
(
char
*
privs
,
List
*
rel_list
,
char
*
grantee
,
char
grant_or_revoke
);
char
grant_or_revoke
);
/*
/*
...
@@ -164,11 +163,9 @@ extern char *get_groname(AclId grosysid);
...
@@ -164,11 +163,9 @@ extern char *get_groname(AclId grosysid);
extern
int32
pg_aclcheck
(
char
*
relname
,
char
*
usename
,
AclMode
mode
);
extern
int32
pg_aclcheck
(
char
*
relname
,
char
*
usename
,
AclMode
mode
);
extern
int32
pg_ownercheck
(
char
*
usename
,
char
*
value
,
int
cacheid
);
extern
int32
pg_ownercheck
(
char
*
usename
,
char
*
value
,
int
cacheid
);
extern
int32
extern
int32
pg_func_ownercheck
(
char
*
usename
,
char
*
funcname
,
pg_func_ownercheck
(
char
*
usename
,
char
*
funcname
,
int
nargs
,
Oid
*
arglist
);
int
nargs
,
Oid
*
arglist
);
extern
int32
extern
int32
pg_aggr_ownercheck
(
char
*
usename
,
char
*
aggname
,
pg_aggr_ownercheck
(
char
*
usename
,
char
*
aggname
,
Oid
basetypeID
);
Oid
basetypeID
);
#endif
/* ACL_H */
#endif
/* ACL_H */
src/include/utils/array.h
View file @
72295139
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: array.h,v 1.
8 1997/09/08 21:54:49
momjian Exp $
* $Id: array.h,v 1.
9 1998/01/24 22:50:31
momjian Exp $
*
*
* NOTES
* NOTES
* XXX the data array should be LONGALIGN'd -- notice that the array
* XXX the data array should be LONGALIGN'd -- notice that the array
...
@@ -117,22 +117,17 @@ typedef struct
...
@@ -117,22 +117,17 @@ typedef struct
extern
char
*
array_in
(
char
*
string
,
Oid
element_type
);
extern
char
*
array_in
(
char
*
string
,
Oid
element_type
);
extern
char
*
array_out
(
ArrayType
*
v
,
Oid
element_type
);
extern
char
*
array_out
(
ArrayType
*
v
,
Oid
element_type
);
extern
char
*
array_dims
(
ArrayType
*
v
,
bool
*
isNull
);
extern
char
*
array_dims
(
ArrayType
*
v
,
bool
*
isNull
);
extern
Datum
extern
Datum
array_ref
(
ArrayType
*
array
,
int
n
,
int
indx
[],
int
reftype
,
array_ref
(
ArrayType
*
array
,
int
n
,
int
indx
[],
int
reftype
,
int
elmlen
,
int
arraylen
,
bool
*
isNull
);
int
elmlen
,
int
arraylen
,
bool
*
isNull
);
extern
Datum
extern
Datum
array_clip
(
ArrayType
*
array
,
int
n
,
int
upperIndx
[],
array_clip
(
ArrayType
*
array
,
int
n
,
int
upperIndx
[],
int
lowerIndx
[],
int
reftype
,
int
len
,
bool
*
isNull
);
int
lowerIndx
[],
int
reftype
,
int
len
,
bool
*
isNull
);
extern
char
*
extern
char
*
array_set
(
ArrayType
*
array
,
int
n
,
int
indx
[],
char
*
dataPtr
,
array_set
(
ArrayType
*
array
,
int
n
,
int
indx
[],
char
*
dataPtr
,
int
reftype
,
int
elmlen
,
int
arraylen
,
bool
*
isNull
);
int
reftype
,
int
elmlen
,
int
arraylen
,
bool
*
isNull
);
extern
char
*
extern
char
*
array_assgn
(
ArrayType
*
array
,
int
n
,
int
upperIndx
[],
array_assgn
(
ArrayType
*
array
,
int
n
,
int
upperIndx
[],
int
lowerIndx
[],
ArrayType
*
newArr
,
int
reftype
,
int
lowerIndx
[],
ArrayType
*
newArr
,
int
reftype
,
int
len
,
bool
*
isNull
);
int
len
,
bool
*
isNull
);
extern
int
array_eq
(
ArrayType
*
array1
,
ArrayType
*
array2
);
extern
int
array_eq
(
ArrayType
*
array1
,
ArrayType
*
array2
);
extern
int
extern
int
_LOtransfer
(
char
**
destfd
,
int
size
,
int
nitems
,
char
**
srcfd
,
_LOtransfer
(
char
**
destfd
,
int
size
,
int
nitems
,
char
**
srcfd
,
int
isSrcLO
,
int
isDestLO
);
int
isSrcLO
,
int
isDestLO
);
extern
char
*
_array_newLO
(
int
*
fd
,
int
flag
);
extern
char
*
_array_newLO
(
int
*
fd
,
int
flag
);
...
@@ -156,14 +151,11 @@ extern int next_tuple(int n, int curr[], int span[]);
...
@@ -156,14 +151,11 @@ extern int next_tuple(int n, int curr[], int span[]);
/*
/*
* prototypes for functions defined in chunk.c
* prototypes for functions defined in chunk.c
*/
*/
extern
char
*
extern
char
*
_ChunkArray
(
int
fd
,
FILE
*
afd
,
int
ndim
,
int
dim
[],
int
baseSize
,
_ChunkArray
(
int
fd
,
FILE
*
afd
,
int
ndim
,
int
dim
[],
int
baseSize
,
int
*
nbytes
,
char
*
chunkfile
);
int
*
nbytes
,
char
*
chunkfile
);
extern
int
extern
int
_ReadChunkArray
(
int
st
[],
int
endp
[],
int
bsize
,
int
fp
,
_ReadChunkArray
(
int
st
[],
int
endp
[],
int
bsize
,
int
fp
,
char
*
destfp
,
ArrayType
*
array
,
int
isDestLO
,
bool
*
isNull
);
char
*
destfp
,
ArrayType
*
array
,
int
isDestLO
,
bool
*
isNull
);
extern
struct
varlena
*
extern
struct
varlena
*
_ReadChunkArray1El
(
int
st
[],
int
bsize
,
int
fp
,
_ReadChunkArray1El
(
int
st
[],
int
bsize
,
int
fp
,
ArrayType
*
array
,
bool
*
isNull
);
ArrayType
*
array
,
bool
*
isNull
);
...
...
src/include/utils/catcache.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: catcache.h,v 1.
8 1997/09/08 21:54:52
momjian Exp $
* $Id: catcache.h,v 1.
9 1998/01/24 22:50:34
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -63,18 +63,14 @@ typedef struct catcache
...
@@ -63,18 +63,14 @@ typedef struct catcache
extern
struct
catcache
*
Caches
;
extern
struct
catcache
*
Caches
;
extern
GlobalMemory
CacheCxt
;
extern
GlobalMemory
CacheCxt
;
extern
void
extern
void
CatalogCacheIdInvalidate
(
int
cacheId
,
Index
hashIndex
,
CatalogCacheIdInvalidate
(
int
cacheId
,
Index
hashIndex
,
ItemPointer
pointer
);
ItemPointer
pointer
);
extern
void
ResetSystemCache
(
void
);
extern
void
ResetSystemCache
(
void
);
extern
CatCache
*
extern
CatCache
*
InitSysCache
(
char
*
relname
,
char
*
indname
,
int
id
,
int
nkeys
,
InitSysCache
(
char
*
relname
,
char
*
indname
,
int
id
,
int
nkeys
,
int
key
[],
HeapTuple
(
*
iScanfuncP
)
());
int
key
[],
HeapTuple
(
*
iScanfuncP
)
());
extern
HeapTuple
extern
HeapTuple
SearchSysCache
(
struct
catcache
*
cache
,
Datum
v1
,
Datum
v2
,
SearchSysCache
(
struct
catcache
*
cache
,
Datum
v1
,
Datum
v2
,
Datum
v3
,
Datum
v4
);
Datum
v3
,
Datum
v4
);
extern
void
extern
void
RelationInvalidateCatalogCacheTuple
(
Relation
relation
,
RelationInvalidateCatalogCacheTuple
(
Relation
relation
,
HeapTuple
tuple
,
void
(
*
function
)
());
HeapTuple
tuple
,
void
(
*
function
)
());
#endif
/* CATCACHE_H */
#endif
/* CATCACHE_H */
src/include/utils/datum.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: datum.h,v 1.
5 1997/09/08 21:54:53
momjian Exp $
* $Id: datum.h,v 1.
6 1998/01/24 22:50:36
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -57,8 +57,7 @@ extern void datumFree(Datum value, Oid type, bool byVal, Size len);
...
@@ -57,8 +57,7 @@ extern void datumFree(Datum value, Oid type, bool byVal, Size len);
* return true if thwo datums are equal, false otherwise.
* return true if thwo datums are equal, false otherwise.
* XXX : See comments in the code for restrictions!
* XXX : See comments in the code for restrictions!
*/
*/
extern
bool
extern
bool
datumIsEqual
(
Datum
value1
,
Datum
value2
,
Oid
type
,
datumIsEqual
(
Datum
value1
,
Datum
value2
,
Oid
type
,
bool
byVal
,
Size
len
);
bool
byVal
,
Size
len
);
#endif
/* DATUM_H */
#endif
/* DATUM_H */
src/include/utils/dt.h
View file @
72295139
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: dt.h,v 1.2
4 1997/12/17 23:19:28 thomas
Exp $
* $Id: dt.h,v 1.2
5 1998/01/24 22:50:39 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -320,19 +320,15 @@ extern int date2j(int year, int month, int day);
...
@@ -320,19 +320,15 @@ extern int date2j(int year, int month, int day);
extern
double
time2t
(
const
int
hour
,
const
int
min
,
const
double
sec
);
extern
double
time2t
(
const
int
hour
,
const
int
min
,
const
double
sec
);
extern
int
extern
int
ParseDateTime
(
char
*
timestr
,
char
*
lowstr
,
ParseDateTime
(
char
*
timestr
,
char
*
lowstr
,
char
*
field
[],
int
ftype
[],
int
maxfields
,
int
*
numfields
);
char
*
field
[],
int
ftype
[],
int
maxfields
,
int
*
numfields
);
extern
int
extern
int
DecodeDateTime
(
char
*
field
[],
int
ftype
[],
DecodeDateTime
(
char
*
field
[],
int
ftype
[],
int
nf
,
int
*
dtype
,
struct
tm
*
tm
,
double
*
fsec
,
int
*
tzp
);
int
nf
,
int
*
dtype
,
struct
tm
*
tm
,
double
*
fsec
,
int
*
tzp
);
extern
int
extern
int
DecodeTimeOnly
(
char
*
field
[],
int
ftype
[],
int
nf
,
DecodeTimeOnly
(
char
*
field
[],
int
ftype
[],
int
nf
,
int
*
dtype
,
struct
tm
*
tm
,
double
*
fsec
);
int
*
dtype
,
struct
tm
*
tm
,
double
*
fsec
);
extern
int
extern
int
DecodeDateDelta
(
char
*
field
[],
int
ftype
[],
DecodeDateDelta
(
char
*
field
[],
int
ftype
[],
int
nf
,
int
*
dtype
,
struct
tm
*
tm
,
double
*
fsec
);
int
nf
,
int
*
dtype
,
struct
tm
*
tm
,
double
*
fsec
);
extern
int
EncodeDateOnly
(
struct
tm
*
tm
,
int
style
,
char
*
str
);
extern
int
EncodeDateOnly
(
struct
tm
*
tm
,
int
style
,
char
*
str
);
...
...
src/include/utils/exc.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: exc.h,v 1.1
0 1997/09/08 21:54:56
momjian Exp $
* $Id: exc.h,v 1.1
1 1998/01/24 22:50:41
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -78,8 +78,7 @@ typedef void ExcProc (Exception *, ExcDetail, ExcData, ExcMessage);
...
@@ -78,8 +78,7 @@ typedef void ExcProc (Exception *, ExcDetail, ExcData, ExcMessage);
* prototypes for functions in exc.c
* prototypes for functions in exc.c
*/
*/
extern
void
EnableExceptionHandling
(
bool
on
);
extern
void
EnableExceptionHandling
(
bool
on
);
extern
void
extern
void
ExcRaise
(
Exception
*
excP
,
ExcRaise
(
Exception
*
excP
,
ExcDetail
detail
,
ExcDetail
detail
,
ExcData
data
,
ExcData
data
,
ExcMessage
message
);
ExcMessage
message
);
...
@@ -88,8 +87,7 @@ ExcRaise(Exception *excP,
...
@@ -88,8 +87,7 @@ ExcRaise(Exception *excP,
/*
/*
* prototypes for functions in excabort.c
* prototypes for functions in excabort.c
*/
*/
extern
void
extern
void
ExcAbort
(
const
Exception
*
excP
,
ExcDetail
detail
,
ExcData
data
,
ExcAbort
(
const
Exception
*
excP
,
ExcDetail
detail
,
ExcData
data
,
ExcMessage
message
);
ExcMessage
message
);
#endif
/* EXC_H */
#endif
/* EXC_H */
src/include/utils/fcache2.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: fcache2.h,v 1.
5 1997/09/08 21:55:0
2 momjian Exp $
* $Id: fcache2.h,v 1.
6 1998/01/24 22:50:4
2 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
#include <nodes/execnodes.h>
#include <nodes/execnodes.h>
extern
void
extern
void
setFcache
(
Node
*
node
,
Oid
foid
,
List
*
argList
,
ExprContext
*
econtext
);
setFcache
(
Node
*
node
,
Oid
foid
,
List
*
argList
,
ExprContext
*
econtext
);
#endif
/* FCACHE2_H */
#endif
/* FCACHE2_H */
src/include/utils/geo_decls.h
View file @
72295139
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: geo_decls.h,v 1.1
6 1998/01/07 18:46:59
momjian Exp $
* $Id: geo_decls.h,v 1.1
7 1998/01/24 22:50:43
momjian Exp $
*
*
* NOTE
* NOTE
* These routines do *not* use the float types from adt/.
* These routines do *not* use the float types from adt/.
...
@@ -340,11 +340,9 @@ extern double *circle_area(CIRCLE *circle);
...
@@ -340,11 +340,9 @@ extern double *circle_area(CIRCLE *circle);
extern
double
circle_dt
(
CIRCLE
*
circle1
,
CIRCLE
*
circle2
);
extern
double
circle_dt
(
CIRCLE
*
circle1
,
CIRCLE
*
circle2
);
/* geo_selfuncs.c */
/* geo_selfuncs.c */
extern
float64
extern
float64
areasel
(
Oid
opid
,
Oid
relid
,
AttrNumber
attno
,
areasel
(
Oid
opid
,
Oid
relid
,
AttrNumber
attno
,
char
*
value
,
int32
flag
);
char
*
value
,
int32
flag
);
extern
float64
extern
float64
areajoinsel
(
Oid
opid
,
Oid
relid
,
AttrNumber
attno
,
areajoinsel
(
Oid
opid
,
Oid
relid
,
AttrNumber
attno
,
char
*
value
,
int32
flag
);
char
*
value
,
int32
flag
);
#endif
/* GEO_DECLS_H */
#endif
/* GEO_DECLS_H */
src/include/utils/hsearch.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: hsearch.h,v 1.
6 1997/09/08 21:55:07
momjian Exp $
* $Id: hsearch.h,v 1.
7 1998/01/24 22:50:45
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -133,8 +133,7 @@ typedef enum
...
@@ -133,8 +133,7 @@ typedef enum
extern
HTAB
*
hash_create
(
int
nelem
,
HASHCTL
*
info
,
int
flags
);
extern
HTAB
*
hash_create
(
int
nelem
,
HASHCTL
*
info
,
int
flags
);
extern
void
hash_destroy
(
HTAB
*
hashp
);
extern
void
hash_destroy
(
HTAB
*
hashp
);
extern
void
hash_stats
(
char
*
where
,
HTAB
*
hashp
);
extern
void
hash_stats
(
char
*
where
,
HTAB
*
hashp
);
extern
long
*
extern
long
*
hash_search
(
HTAB
*
hashp
,
char
*
keyPtr
,
HASHACTION
action
,
hash_search
(
HTAB
*
hashp
,
char
*
keyPtr
,
HASHACTION
action
,
bool
*
foundPtr
);
bool
*
foundPtr
);
extern
long
*
hash_seq
(
HTAB
*
hashp
);
extern
long
*
hash_seq
(
HTAB
*
hashp
);
...
...
src/include/utils/lselect.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: lselect.h,v 1.
8 1997/11/26 01:14:33
momjian Exp $
* $Id: lselect.h,v 1.
9 1998/01/24 22:50:46
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -39,14 +39,11 @@ typedef struct
...
@@ -39,14 +39,11 @@ typedef struct
}
LeftistContextData
;
}
LeftistContextData
;
typedef
LeftistContextData
*
LeftistContext
;
typedef
LeftistContextData
*
LeftistContext
;
extern
struct
leftist
*
extern
struct
leftist
*
lmerge
(
struct
leftist
*
pt
,
struct
leftist
*
qt
,
lmerge
(
struct
leftist
*
pt
,
struct
leftist
*
qt
,
LeftistContext
context
);
LeftistContext
context
);
extern
HeapTuple
extern
HeapTuple
gettuple
(
struct
leftist
**
treep
,
short
*
devnum
,
gettuple
(
struct
leftist
**
treep
,
short
*
devnum
,
LeftistContext
context
);
LeftistContext
context
);
extern
void
extern
void
puttuple
(
struct
leftist
**
treep
,
HeapTuple
newtuple
,
short
devnum
,
puttuple
(
struct
leftist
**
treep
,
HeapTuple
newtuple
,
short
devnum
,
LeftistContext
context
);
LeftistContext
context
);
extern
int
tuplecmp
(
HeapTuple
ltup
,
HeapTuple
rtup
,
LeftistContext
context
);
extern
int
tuplecmp
(
HeapTuple
ltup
,
HeapTuple
rtup
,
LeftistContext
context
);
...
...
src/include/utils/lsyscache.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: lsyscache.h,v 1.
7 1998/01/20 05:05:0
8 momjian Exp $
* $Id: lsyscache.h,v 1.
8 1998/01/24 22:50:4
8 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -24,8 +24,7 @@ extern bool get_attisset(Oid relid, char *attname);
...
@@ -24,8 +24,7 @@ extern bool get_attisset(Oid relid, char *attname);
extern
int
get_atttypmod
(
Oid
relid
,
AttrNumber
attnum
);
extern
int
get_atttypmod
(
Oid
relid
,
AttrNumber
attnum
);
extern
RegProcedure
get_opcode
(
Oid
opid
);
extern
RegProcedure
get_opcode
(
Oid
opid
);
extern
char
*
get_opname
(
Oid
opid
);
extern
char
*
get_opname
(
Oid
opid
);
extern
bool
extern
bool
op_mergesortable
(
Oid
opid
,
Oid
ltype
,
Oid
rtype
,
op_mergesortable
(
Oid
opid
,
Oid
ltype
,
Oid
rtype
,
Oid
*
leftOp
,
Oid
*
rightOp
);
Oid
*
leftOp
,
Oid
*
rightOp
);
extern
Oid
op_hashjoinable
(
Oid
opid
,
Oid
ltype
,
Oid
rtype
);
extern
Oid
op_hashjoinable
(
Oid
opid
,
Oid
ltype
,
Oid
rtype
);
extern
Oid
get_commutator
(
Oid
opid
);
extern
Oid
get_commutator
(
Oid
opid
);
...
...
src/include/utils/mcxt.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: mcxt.h,v 1.
8 1997/09/08 21:55:11
momjian Exp $
* $Id: mcxt.h,v 1.
9 1998/01/24 22:50:50
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -39,8 +39,7 @@ extern MemoryContext TopMemoryContext;
...
@@ -39,8 +39,7 @@ extern MemoryContext TopMemoryContext;
*/
*/
extern
void
EnableMemoryContext
(
bool
on
);
extern
void
EnableMemoryContext
(
bool
on
);
extern
Pointer
MemoryContextAlloc
(
MemoryContext
context
,
Size
size
);
extern
Pointer
MemoryContextAlloc
(
MemoryContext
context
,
Size
size
);
extern
Pointer
extern
Pointer
MemoryContextRealloc
(
MemoryContext
context
,
MemoryContextRealloc
(
MemoryContext
context
,
Pointer
pointer
,
Pointer
pointer
,
Size
size
);
Size
size
);
extern
void
MemoryContextFree
(
MemoryContext
context
,
Pointer
pointer
);
extern
void
MemoryContextFree
(
MemoryContext
context
,
Pointer
pointer
);
...
...
src/include/utils/memutils.h
View file @
72295139
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: memutils.h,v 1.1
2 1998/01/11 21:03:10
momjian Exp $
* $Id: memutils.h,v 1.1
3 1998/01/24 22:50:51
momjian Exp $
*
*
* NOTES
* NOTES
* some of the information in this file will be moved to
* some of the information in this file will be moved to
...
@@ -233,8 +233,7 @@ extern void AllocSetReset(AllocSet set);
...
@@ -233,8 +233,7 @@ extern void AllocSetReset(AllocSet set);
extern
bool
AllocSetContains
(
AllocSet
set
,
AllocPointer
pointer
);
extern
bool
AllocSetContains
(
AllocSet
set
,
AllocPointer
pointer
);
extern
AllocPointer
AllocSetAlloc
(
AllocSet
set
,
Size
size
);
extern
AllocPointer
AllocSetAlloc
(
AllocSet
set
,
Size
size
);
extern
void
AllocSetFree
(
AllocSet
set
,
AllocPointer
pointer
);
extern
void
AllocSetFree
(
AllocSet
set
,
AllocPointer
pointer
);
extern
AllocPointer
extern
AllocPointer
AllocSetRealloc
(
AllocSet
set
,
AllocPointer
pointer
,
AllocSetRealloc
(
AllocSet
set
,
AllocPointer
pointer
,
Size
size
);
Size
size
);
extern
void
AllocSetDump
(
AllocSet
set
);
extern
void
AllocSetDump
(
AllocSet
set
);
...
...
src/include/utils/portal.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: portal.h,v 1.
7 1997/09/08 21:55:14
momjian Exp $
* $Id: portal.h,v 1.
8 1998/01/24 22:50:52
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -68,8 +68,7 @@ extern void AtEOXact_portals(void);
...
@@ -68,8 +68,7 @@ extern void AtEOXact_portals(void);
extern
void
EnablePortalManager
(
bool
on
);
extern
void
EnablePortalManager
(
bool
on
);
extern
Portal
GetPortalByName
(
char
*
name
);
extern
Portal
GetPortalByName
(
char
*
name
);
extern
Portal
BlankPortalAssignName
(
char
*
name
);
extern
Portal
BlankPortalAssignName
(
char
*
name
);
extern
void
extern
void
PortalSetQuery
(
Portal
portal
,
QueryDesc
*
queryDesc
,
PortalSetQuery
(
Portal
portal
,
QueryDesc
*
queryDesc
,
TupleDesc
attinfo
,
EState
*
state
,
TupleDesc
attinfo
,
EState
*
state
,
void
(
*
cleanup
)
(
Portal
portal
));
void
(
*
cleanup
)
(
Portal
portal
));
extern
QueryDesc
*
PortalGetQueryDesc
(
Portal
portal
);
extern
QueryDesc
*
PortalGetQueryDesc
(
Portal
portal
);
...
...
src/include/utils/rel.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: rel.h,v 1.1
5 1998/01/15 19:46:37 pgsql
Exp $
* $Id: rel.h,v 1.1
6 1998/01/24 22:50:54 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -186,8 +186,7 @@ typedef Relation *RelationPtr;
...
@@ -186,8 +186,7 @@ typedef Relation *RelationPtr;
extern
IndexStrategy
RelationGetIndexStrategy
(
Relation
relation
);
extern
IndexStrategy
RelationGetIndexStrategy
(
Relation
relation
);
extern
void
extern
void
RelationSetIndexSupport
(
Relation
relation
,
IndexStrategy
strategy
,
RelationSetIndexSupport
(
Relation
relation
,
IndexStrategy
strategy
,
RegProcedure
*
support
);
RegProcedure
*
support
);
#endif
/* REL_H */
#endif
/* REL_H */
src/include/utils/rel2.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: rel2.h,v 1.
4 1997/09/08 21:55:16
momjian Exp $
* $Id: rel2.h,v 1.
5 1998/01/24 22:50:55
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -17,8 +17,7 @@
...
@@ -17,8 +17,7 @@
extern
IndexStrategy
RelationGetIndexStrategy
(
Relation
relation
);
extern
IndexStrategy
RelationGetIndexStrategy
(
Relation
relation
);
extern
void
extern
void
RelationSetIndexSupport
(
Relation
relation
,
IndexStrategy
strategy
,
RelationSetIndexSupport
(
Relation
relation
,
IndexStrategy
strategy
,
RegProcedure
*
support
);
RegProcedure
*
support
);
#endif
/* TMP_REL2_H */
#endif
/* TMP_REL2_H */
src/include/utils/relcache.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: relcache.h,v 1.
8 1997/09/08 02:39
:56 momjian Exp $
* $Id: relcache.h,v 1.
9 1998/01/24 22:50
:56 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -26,8 +26,7 @@ extern void RelationClose(Relation relation);
...
@@ -26,8 +26,7 @@ extern void RelationClose(Relation relation);
extern
void
RelationForgetRelation
(
Oid
rid
);
extern
void
RelationForgetRelation
(
Oid
rid
);
extern
void
RelationIdInvalidateRelationCacheByRelationId
(
Oid
relationId
);
extern
void
RelationIdInvalidateRelationCacheByRelationId
(
Oid
relationId
);
extern
void
extern
void
RelationIdInvalidateRelationCacheByAccessMethodId
(
Oid
accessMethodId
);
RelationIdInvalidateRelationCacheByAccessMethodId
(
Oid
accessMethodId
);
extern
void
RelationCacheInvalidate
(
bool
onlyFlushReferenceCountZero
);
extern
void
RelationCacheInvalidate
(
bool
onlyFlushReferenceCountZero
);
...
...
src/include/utils/syscache.h
View file @
72295139
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: syscache.h,v 1.
8 1997/10/28 15:11:45 vadim
Exp $
* $Id: syscache.h,v 1.
9 1998/01/24 22:50:57 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -79,14 +79,11 @@ struct cachedesc
...
@@ -79,14 +79,11 @@ struct cachedesc
extern
void
zerocaches
(
void
);
extern
void
zerocaches
(
void
);
extern
void
InitCatalogCache
(
void
);
extern
void
InitCatalogCache
(
void
);
extern
HeapTuple
extern
HeapTuple
SearchSysCacheTuple
(
int
cacheId
,
Datum
key1
,
Datum
key2
,
SearchSysCacheTuple
(
int
cacheId
,
Datum
key1
,
Datum
key2
,
Datum
key3
,
Datum
key4
);
Datum
key3
,
Datum
key4
);
extern
int32
extern
int32
SearchSysCacheStruct
(
int
cacheId
,
char
*
returnStruct
,
SearchSysCacheStruct
(
int
cacheId
,
char
*
returnStruct
,
Datum
key1
,
Datum
key2
,
Datum
key3
,
Datum
key4
);
Datum
key1
,
Datum
key2
,
Datum
key3
,
Datum
key4
);
extern
void
*
extern
void
*
SearchSysCacheGetAttribute
(
int
cacheId
,
SearchSysCacheGetAttribute
(
int
cacheId
,
AttrNumber
attributeNumber
,
AttrNumber
attributeNumber
,
Datum
key1
,
Datum
key1
,
Datum
key2
,
Datum
key2
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment