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
6456b17b
Commit
6456b17b
authored
Jan 10, 2000
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename oid8 -> oidvector and int28 -> int2vector. Cleanup of *out functions.
parent
3f03f74f
Changes
27
Show whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
119 additions
and
120 deletions
+119
-120
src/backend/access/hash/hashfunc.c
src/backend/access/hash/hashfunc.c
+2
-2
src/backend/access/nbtree/nbtcompare.c
src/backend/access/nbtree/nbtcompare.c
+2
-2
src/backend/bootstrap/bootstrap.c
src/backend/bootstrap/bootstrap.c
+3
-3
src/backend/catalog/indexing.c
src/backend/catalog/indexing.c
+2
-2
src/backend/tcop/fastpath.c
src/backend/tcop/fastpath.c
+2
-2
src/backend/utils/adt/int.c
src/backend/utils/adt/int.c
+9
-9
src/backend/utils/adt/int8.c
src/backend/utils/adt/int8.c
+2
-2
src/backend/utils/adt/oid.c
src/backend/utils/adt/oid.c
+13
-13
src/backend/utils/adt/regproc.c
src/backend/utils/adt/regproc.c
+2
-2
src/backend/utils/cache/catcache.c
src/backend/utils/cache/catcache.c
+8
-8
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+1
-2
src/bin/psql/describe.c
src/bin/psql/describe.c
+4
-4
src/include/access/hash.h
src/include/access/hash.h
+2
-2
src/include/catalog/catversion.h
src/include/catalog/catversion.h
+2
-2
src/include/catalog/indexing.h
src/include/catalog/indexing.h
+2
-2
src/include/catalog/pg_amop.h
src/include/catalog/pg_amop.h
+3
-3
src/include/catalog/pg_index.h
src/include/catalog/pg_index.h
+3
-3
src/include/catalog/pg_opclass.h
src/include/catalog/pg_opclass.h
+2
-2
src/include/catalog/pg_operator.h
src/include/catalog/pg_operator.h
+7
-7
src/include/catalog/pg_proc.h
src/include/catalog/pg_proc.h
+16
-16
src/include/catalog/pg_trigger.h
src/include/catalog/pg_trigger.h
+1
-1
src/include/catalog/pg_type.h
src/include/catalog/pg_type.h
+9
-9
src/include/postgres.h
src/include/postgres.h
+4
-4
src/include/utils/builtins.h
src/include/utils/builtins.h
+13
-13
src/include/utils/int8.h
src/include/utils/int8.h
+2
-2
src/interfaces/odbc/convert.c
src/interfaces/odbc/convert.c
+1
-1
src/interfaces/odbc/pgtypes.h
src/interfaces/odbc/pgtypes.h
+2
-2
No files found.
src/backend/access/hash/hashfunc.c
View file @
6456b17b
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashfunc.c,v 1.2
0 1999/11/07 23:07:49
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashfunc.c,v 1.2
1 2000/01/10 16:13:10
momjian Exp $
*
* NOTES
* These functions are stored in pg_amproc. For each operator class
...
...
@@ -140,7 +140,7 @@ hashoid(Oid key)
}
uint32
hashoid
8
(
Oid
*
key
)
hashoid
vector
(
Oid
*
key
)
{
int
i
;
uint32
result
=
0
;
...
...
src/backend/access/nbtree/nbtcompare.c
View file @
6456b17b
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtcompare.c,v 1.2
8 1999/11/07 23:07:56
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtcompare.c,v 1.2
9 2000/01/10 16:13:10
momjian Exp $
*
* NOTES
* These functions are stored in pg_amproc. For each operator class
...
...
@@ -94,7 +94,7 @@ btoidcmp(Oid a, Oid b)
}
int32
btoid
8
cmp
(
Oid
*
a
,
Oid
*
b
)
btoid
vector
cmp
(
Oid
*
a
,
Oid
*
b
)
{
int
i
;
...
...
src/backend/bootstrap/bootstrap.c
View file @
6456b17b
...
...
@@ -7,7 +7,7 @@
* Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.7
4 1999/12/20 10:40:39 wieck
Exp $
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.7
5 2000/01/10 16:13:11 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -109,7 +109,7 @@ static struct typinfo Procid[] = {
{
"dummy"
,
20
,
0
,
16
,
0
,
0
},
/* { "dt", 20, 0, 4, F_DTIN, F_DTOUT}, */
{
"int2"
,
21
,
0
,
2
,
F_INT2IN
,
F_INT2OUT
},
{
"int2
8"
,
22
,
0
,
16
,
F_INT28IN
,
F_INT28
OUT
},
{
"int2
vector"
,
22
,
0
,
16
,
F_INT2VECTORIN
,
F_INT2VECTOR
OUT
},
{
"int4"
,
23
,
0
,
4
,
F_INT4IN
,
F_INT4OUT
},
{
"regproc"
,
24
,
0
,
4
,
F_REGPROCIN
,
F_REGPROCOUT
},
{
"text"
,
25
,
0
,
-
1
,
F_TEXTIN
,
F_TEXTOUT
},
...
...
@@ -117,7 +117,7 @@ static struct typinfo Procid[] = {
{
"tid"
,
27
,
0
,
6
,
F_TIDIN
,
F_TIDOUT
},
{
"xid"
,
28
,
0
,
5
,
F_XIDIN
,
F_XIDOUT
},
{
"iid"
,
29
,
0
,
1
,
F_CIDIN
,
F_CIDOUT
},
{
"oid
8"
,
30
,
0
,
32
,
F_OID8IN
,
F_OID8
OUT
},
{
"oid
vector"
,
30
,
0
,
32
,
F_OIDVECTORIN
,
F_OIDVECTOR
OUT
},
{
"smgr"
,
210
,
0
,
2
,
F_SMGRIN
,
F_SMGROUT
},
{
"_int4"
,
1007
,
23
,
-
1
,
F_ARRAY_IN
,
F_ARRAY_OUT
},
{
"_aclitem"
,
1034
,
1033
,
-
1
,
F_ARRAY_IN
,
F_ARRAY_OUT
}
...
...
src/backend/catalog/indexing.c
View file @
6456b17b
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.5
5 1999/12/30 05:04:55 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.5
6 2000/01/10 16:13:12 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -763,7 +763,7 @@ ProcedureNameIndexScan(Relation heapRelation,
ScanKeyEntryInitialize
(
&
skey
[
2
],
(
bits16
)
0x0
,
(
AttrNumber
)
3
,
(
RegProcedure
)
F_OID
8
EQ
,
(
RegProcedure
)
F_OID
VECTOR
EQ
,
PointerGetDatum
(
argTypes
));
idesc
=
index_openr
(
ProcedureNameIndex
);
...
...
src/backend/tcop/fastpath.c
View file @
6456b17b
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.3
1 1999/11/22 17:56:26
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.3
2 2000/01/10 16:13:13
momjian Exp $
*
* NOTES
* This cruft is the server side of PQfn.
...
...
@@ -181,7 +181,7 @@ valid_fp_info(Oid func_id, struct fp_info * fip)
static
void
update_fp_info
(
Oid
func_id
,
struct
fp_info
*
fip
)
{
Oid
*
argtypes
;
/* an oid
8
*/
Oid
*
argtypes
;
/* an oid
vector
*/
Oid
rettype
;
HeapTuple
func_htp
,
type_htp
;
...
...
src/backend/utils/adt/int.c
View file @
6456b17b
...
...
@@ -7,14 +7,14 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.3
0 2000/01/10 15:41:26
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.3
1 2000/01/10 16:13:14
momjian Exp $
*
*-------------------------------------------------------------------------
*/
/*
* OLD COMMENTS
* I/O routines:
* int2in, int2out, int2
8in, int28
out, int4in, int4out
* int2in, int2out, int2
vectorin, int2vector
out, int4in, int4out
* Conversion routines:
* itoi, int2_text, int4_text
* Boolean operators:
...
...
@@ -71,13 +71,13 @@ int2out(int16 sh)
}
/*
* int2
8
in - converts "num num ..." to internal form
* int2
vector
in - converts "num num ..." to internal form
*
* Note:
* Fills any nonexistent digits with NULLs.
*/
int16
*
int2
8
in
(
char
*
intString
)
int2
vector
in
(
char
*
intString
)
{
int16
*
result
;
int
slot
;
...
...
@@ -99,7 +99,7 @@ int28in(char *intString)
while
(
*
intString
&&
isspace
(
*
intString
))
intString
++
;
if
(
*
intString
)
elog
(
ERROR
,
"int2
8
value has too many values"
);
elog
(
ERROR
,
"int2
vector
value has too many values"
);
while
(
slot
<
INDEX_MAX_KEYS
)
result
[
slot
++
]
=
0
;
...
...
@@ -107,10 +107,10 @@ int28in(char *intString)
}
/*
* int2
8
out - converts internal form to "num num ..."
* int2
vector
out - converts internal form to "num num ..."
*/
char
*
int2
8
out
(
int16
*
int2Array
)
int2
vector
out
(
int16
*
int2Array
)
{
int
num
,
maxnum
;
char
*
rp
;
...
...
@@ -130,7 +130,7 @@ int28out(int16 *int2Array)
break
;
/* assumes sign, 5 digits, ' ' */
rp
=
result
=
(
char
*
)
palloc
(
maxnum
*
7
+
1
);
rp
=
result
=
(
char
*
)
palloc
(
(
maxnum
+
1
)
*
7
+
1
);
for
(
num
=
0
;
num
<=
maxnum
;
num
++
)
{
if
(
num
!=
0
)
...
...
@@ -168,7 +168,7 @@ int44in(char *input_string)
}
/*
* int2
8
out - converts internal form to "num num ..."
* int2
vector
out - converts internal form to "num num ..."
*/
char
*
int44out
(
int32
*
an_array
)
...
...
src/backend/utils/adt/int8.c
View file @
6456b17b
...
...
@@ -519,7 +519,7 @@ int84(int64 *val)
#if NOT_USED
int64
*
int2
8
(
int16
val
)
int2
vector
(
int16
val
)
{
int64
*
result
;
...
...
@@ -528,7 +528,7 @@ int28 (int16 val)
*
result
=
val
;
return
result
;
}
/* int2
8
() */
}
/* int2
vector
() */
int16
int82
(
int64
*
val
)
...
...
src/backend/utils/adt/oid.c
View file @
6456b17b
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/oid.c,v 1.3
1 2000/01/10 15:41:26
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/oid.c,v 1.3
2 2000/01/10 16:13:14
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -22,13 +22,13 @@
*****************************************************************************/
/*
* oid
8
in - converts "num num ..." to internal form
* oid
vector
in - converts "num num ..." to internal form
*
* Note:
* Fills any nonexistent digits with NULL oids.
*/
Oid
*
oid
8
in
(
char
*
oidString
)
oid
vector
in
(
char
*
oidString
)
{
Oid
*
result
;
int
slot
;
...
...
@@ -50,7 +50,7 @@ oid8in(char *oidString)
while
(
*
oidString
&&
isspace
(
*
oidString
))
oidString
++
;
if
(
*
oidString
)
elog
(
ERROR
,
"oid
8
value has too many values"
);
elog
(
ERROR
,
"oid
vector
value has too many values"
);
while
(
slot
<
INDEX_MAX_KEYS
)
result
[
slot
++
]
=
0
;
...
...
@@ -58,10 +58,10 @@ oid8in(char *oidString)
}
/*
* oid
8
out - converts internal form to "num num ..."
* oid
vector
out - converts internal form to "num num ..."
*/
char
*
oid
8
out
(
Oid
*
oidArray
)
oid
vector
out
(
Oid
*
oidArray
)
{
int
num
,
maxnum
;
char
*
rp
;
...
...
@@ -81,7 +81,7 @@ oid8out(Oid *oidArray)
break
;
/* assumes sign, 10 digits, ' ' */
rp
=
result
=
(
char
*
)
palloc
(
maxnum
*
12
+
1
);
rp
=
result
=
(
char
*
)
palloc
(
(
maxnum
+
1
)
*
12
+
1
);
for
(
num
=
0
;
num
<=
maxnum
;
num
++
)
{
if
(
num
!=
0
)
...
...
@@ -127,19 +127,19 @@ oidne(Oid arg1, Oid arg2)
}
bool
oid
8
eq
(
Oid
*
arg1
,
Oid
*
arg2
)
oid
vector
eq
(
Oid
*
arg1
,
Oid
*
arg2
)
{
return
(
bool
)
(
memcmp
(
arg1
,
arg2
,
INDEX_MAX_KEYS
*
sizeof
(
Oid
))
==
0
);
}
bool
oid
8
ne
(
Oid
*
arg1
,
Oid
*
arg2
)
oid
vector
ne
(
Oid
*
arg1
,
Oid
*
arg2
)
{
return
(
bool
)
(
memcmp
(
arg1
,
arg2
,
INDEX_MAX_KEYS
*
sizeof
(
Oid
))
!=
0
);
}
bool
oid
8
lt
(
Oid
*
arg1
,
Oid
*
arg2
)
oid
vector
lt
(
Oid
*
arg1
,
Oid
*
arg2
)
{
int
i
;
...
...
@@ -150,7 +150,7 @@ oid8lt(Oid *arg1, Oid *arg2)
}
bool
oid
8
le
(
Oid
*
arg1
,
Oid
*
arg2
)
oid
vector
le
(
Oid
*
arg1
,
Oid
*
arg2
)
{
int
i
;
...
...
@@ -161,7 +161,7 @@ oid8le(Oid *arg1, Oid *arg2)
}
bool
oid
8
ge
(
Oid
*
arg1
,
Oid
*
arg2
)
oid
vector
ge
(
Oid
*
arg1
,
Oid
*
arg2
)
{
int
i
;
...
...
@@ -172,7 +172,7 @@ oid8ge(Oid *arg1, Oid *arg2)
}
bool
oid
8
gt
(
Oid
*
arg1
,
Oid
*
arg2
)
oid
vector
gt
(
Oid
*
arg1
,
Oid
*
arg2
)
{
int
i
;
...
...
src/backend/utils/adt/regproc.c
View file @
6456b17b
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/regproc.c,v 1.4
7 1999/12/30 05:05:07 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/regproc.c,v 1.4
8 2000/01/10 16:13:14 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -233,7 +233,7 @@ regprocout(RegProcedure proid)
* int8typeout - converts int8 type oids to "typname" list
*/
text
*
oid
8
types
(
Oid
*
oidArray
)
oid
vector
types
(
Oid
*
oidArray
)
{
HeapTuple
typetup
;
text
*
result
;
...
...
src/backend/utils/cache/catcache.c
View file @
6456b17b
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.5
5 1999/12/16 22:19:54 wieck
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.5
6 2000/01/10 16:13:15 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -70,7 +70,7 @@ GlobalMemory CacheCxt; /* context in which caches are allocated */
static
long
eqproc
[]
=
{
F_BOOLEQ
,
0l
,
F_CHAREQ
,
F_NAMEEQ
,
0l
,
F_INT2EQ
,
F_KEYFIRSTEQ
,
F_INT4EQ
,
0l
,
F_TEXTEQ
,
F_OIDEQ
,
0l
,
0l
,
0l
,
F_OID
8
EQ
F_OIDEQ
,
0l
,
0l
,
0l
,
F_OID
VECTOR
EQ
};
#define EQPROC(SYSTEMTYPEOID) eqproc[(SYSTEMTYPEOID)-16]
...
...
@@ -191,14 +191,14 @@ CatalogCacheInitializeCache(struct catcache * cache,
/*
* Yoiks. The implementation of the hashing code and the
* implementation of int2
8
's are at loggerheads. The right
* thing to do is to throw out the implementation of int2
8
's
* implementation of int2
vector
's are at loggerheads. The right
* thing to do is to throw out the implementation of int2
vector
's
* altogether; until that happens, we do the right thing here
* to guarantee that the hash key generator doesn't try to
* dereference an int2 by mistake.
*/
if
(
tupdesc
->
attrs
[
cache
->
cc_key
[
i
]
-
1
]
->
atttypid
==
INT2
8
OID
)
if
(
tupdesc
->
attrs
[
cache
->
cc_key
[
i
]
-
1
]
->
atttypid
==
INT2
VECTOR
OID
)
cache
->
cc_klen
[
i
]
=
sizeof
(
short
);
else
cache
->
cc_klen
[
i
]
=
tupdesc
->
attrs
[
cache
->
cc_key
[
i
]
-
1
]
->
attlen
;
...
...
src/bin/pg_dump/pg_dump.c
View file @
6456b17b
...
...
@@ -21,7 +21,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.1
29 1999/12/27 18:21:07
momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.1
30 2000/01/10 16:13:16
momjian Exp $
*
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
*
...
...
@@ -1770,7 +1770,6 @@ getTables(int *numTables, FuncInfo *finfo, int numFuncs)
for
(
findx
=
0
;
findx
<
tgnargs
;
findx
++
)
{
const
char
*
s
;
char
*
d
;
for
(
p
=
tgargs
;;)
{
...
...
src/bin/psql/describe.c
View file @
6456b17b
...
...
@@ -118,7 +118,7 @@ describeFunctions(const char *name, PsqlSettings *pset, bool verbose, bool desc)
*/
strcpy
(
buf
,
"SELECT t.typname as
\"
Result
\"
, p.proname as
\"
Function
\"
,
\n
"
" oid
8
types(p.proargtypes) as
\"
Arguments
\"
"
);
" oid
vector
types(p.proargtypes) as
\"
Arguments
\"
"
);
if
(
verbose
)
strcat
(
buf
,
",
\n
u.usename as
\"
Owner
\"
, l.lanname as
\"
Language
\"
, p.prosrc as
\"
Source
\"
"
);
if
(
desc
)
...
...
@@ -127,12 +127,12 @@ describeFunctions(const char *name, PsqlSettings *pset, bool verbose, bool desc)
if
(
!
verbose
)
strcat
(
buf
,
"
\n
FROM pg_proc p, pg_type t
\n
"
"WHERE p.prorettype = t.oid and (pronargs = 0 or oid
8
types(p.proargtypes) != '')
\n
"
);
"WHERE p.prorettype = t.oid and (pronargs = 0 or oid
vector
types(p.proargtypes) != '')
\n
"
);
else
strcat
(
buf
,
"
\n
FROM pg_proc p, pg_type t, pg_language l, pg_user u
\n
"
"WHERE p.prorettype = t.oid AND p.prolang = l.oid AND p.proowner = u.usesysid
\n
"
" AND (pronargs = 0 or oid
8
types(p.proargtypes) != '')
\n
"
);
" AND (pronargs = 0 or oid
vector
types(p.proargtypes) != '')
\n
"
);
if
(
name
)
{
...
...
@@ -427,7 +427,7 @@ objectDescription(const char *object, PsqlSettings *pset)
strcat
(
descbuf
,
"
\n
UNION ALL
\n\n
"
);
strcat
(
descbuf
,
"SELECT DISTINCT p.proname as
\"
Name
\"
, 'function'::text as
\"
What
\"
, d.description as
\"
Description
\"\n
"
"FROM pg_proc p, pg_description d
\n
"
"WHERE p.oid = d.objoid AND (p.pronargs = 0 or oid
8
types(p.proargtypes) != '')
\n
"
);
"WHERE p.oid = d.objoid AND (p.pronargs = 0 or oid
vector
types(p.proargtypes) != '')
\n
"
);
if
(
object
)
{
strcat
(
descbuf
,
" AND p.proname ~* '"
);
...
...
src/include/access/hash.h
View file @
6456b17b
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: hash.h,v 1.2
8 1999/07/19 07:07:27
momjian Exp $
* $Id: hash.h,v 1.2
9 2000/01/10 16:13:19
momjian Exp $
*
* NOTES
* modeled after Margo Seltzer's hash implementation for unix.
...
...
@@ -268,7 +268,7 @@ extern uint32 hashint8(int64 *key);
extern
uint32
hashfloat4
(
float32
keyp
);
extern
uint32
hashfloat8
(
float64
keyp
);
extern
uint32
hashoid
(
Oid
key
);
extern
uint32
hashoid
8
(
Oid
*
key
);
extern
uint32
hashoid
vector
(
Oid
*
key
);
extern
uint32
hashchar
(
char
key
);
extern
uint32
hashtext
(
struct
varlena
*
key
);
extern
uint32
hashname
(
NameData
*
n
);
...
...
src/include/catalog/catversion.h
View file @
6456b17b
...
...
@@ -36,7 +36,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: catversion.h,v 1.
5 1999/12/13 01:27:07 tgl
Exp $
* $Id: catversion.h,v 1.
6 2000/01/10 16:13:20 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -51,6 +51,6 @@
* catalog changes on the same day...)
*/
#define CATALOG_VERSION_NO
199912121
#define CATALOG_VERSION_NO
20000110
#endif
src/include/catalog/indexing.h
View file @
6456b17b
...
...
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: indexing.h,v 1.3
2 1999/11/24 17:09:28
momjian Exp $
* $Id: indexing.h,v 1.3
3 2000/01/10 16:13:20
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -193,7 +193,7 @@ DECLARE_UNIQUE_INDEX(pg_opclass_name_index on pg_opclass using btree(opcname nam
DECLARE_UNIQUE_INDEX
(
pg_operator_oid_index
on
pg_operator
using
btree
(
oid
oid_ops
));
DECLARE_UNIQUE_INDEX
(
pg_operator_oprname_l_r_k_index
on
pg_operator
using
btree
(
oprname
name_ops
,
oprleft
oid_ops
,
oprright
oid_ops
,
oprkind
char_ops
));
DECLARE_UNIQUE_INDEX
(
pg_proc_oid_index
on
pg_proc
using
btree
(
oid
oid_ops
));
DECLARE_UNIQUE_INDEX
(
pg_proc_proname_narg_type_index
on
pg_proc
using
btree
(
proname
name_ops
,
pronargs
int2_ops
,
proargtypes
oid
8
_ops
));
DECLARE_UNIQUE_INDEX
(
pg_proc_proname_narg_type_index
on
pg_proc
using
btree
(
proname
name_ops
,
pronargs
int2_ops
,
proargtypes
oid
vector
_ops
));
/* This following index is not used for a cache and is not unique */
DECLARE_INDEX
(
pg_relcheck_rcrelid_index
on
pg_relcheck
using
btree
(
rcrelid
oid_ops
));
DECLARE_UNIQUE_INDEX
(
pg_rewrite_oid_index
on
pg_rewrite
using
btree
(
oid
oid_ops
));
...
...
src/include/catalog/pg_amop.h
View file @
6456b17b
...
...
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_amop.h,v 1.2
6 1999/12/28 13:40:50 wieck
Exp $
* $Id: pg_amop.h,v 1.2
7 2000/01/10 16:13:20 momjian
Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
...
...
@@ -188,7 +188,7 @@ DATA(insert OID = 0 ( 403 427 612 4 btreesel btreenpage ));
DATA
(
insert
OID
=
0
(
403
427
610
5
btreesel
btreenpage
));
/*
* nbtree oid
8
_ops
* nbtree oid
vector
_ops
*/
DATA
(
insert
OID
=
0
(
403
435
645
1
btreesel
btreenpage
));
...
...
@@ -362,7 +362,7 @@ DATA(insert OID = 0 ( 405 426 96 1 hashsel hashnpage ));
DATA
(
insert
OID
=
0
(
405
754
410
1
hashsel
hashnpage
));
/* oid_ops */
DATA
(
insert
OID
=
0
(
405
427
607
1
hashsel
hashnpage
));
/* oid
8
_ops */
/* oid
vector
_ops */
DATA
(
insert
OID
=
0
(
405
435
649
1
hashsel
hashnpage
));
/* float4_ops */
DATA
(
insert
OID
=
0
(
405
428
620
1
hashsel
hashnpage
));
...
...
src/include/catalog/pg_index.h
View file @
6456b17b
...
...
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_index.h,v 1.1
3 2000/01/10 04:36:37
momjian Exp $
* $Id: pg_index.h,v 1.1
4 2000/01/10 16:13:20
momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
...
...
@@ -45,8 +45,8 @@ CATALOG(pg_index)
Oid
indrelid
;
Oid
indproc
;
/* registered procedure for functional
* index */
int2
8
indkey
;
oid
8
indclass
;
int2
vector
indkey
;
oid
vector
indclass
;
bool
indisclustered
;
bool
indislossy
;
/* do we fetch false tuples (lossy
* compression)? */
...
...
src/include/catalog/pg_opclass.h
View file @
6456b17b
...
...
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_opclass.h,v 1.2
5 1999/12/28 13:40:50 wieck
Exp $
* $Id: pg_opclass.h,v 1.2
6 2000/01/10 16:13:20 momjian
Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
...
...
@@ -89,7 +89,7 @@ DATA(insert OID = 433 ( bigbox_ops 603 ));
DESCR
(
""
);
DATA
(
insert
OID
=
434
(
poly_ops
604
));
DESCR
(
""
);
DATA
(
insert
OID
=
435
(
oid
8_ops
30
));
DATA
(
insert
OID
=
435
(
oid
vector_ops
30
));
DESCR
(
""
);
DATA
(
insert
OID
=
714
(
circle_ops
718
));
DESCR
(
""
);
...
...
src/include/catalog/pg_operator.h
View file @
6456b17b
...
...
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_operator.h,v 1.6
3 1999/12/28 13:40:50 wieck
Exp $
* $Id: pg_operator.h,v 1.6
4 2000/01/10 16:13:20 momjian
Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
...
...
@@ -282,12 +282,12 @@ DATA(insert OID = 611 ( "<=" PGUID 0 b t f 26 26 16 612 610 0 0 int4le
DATA
(
insert
OID
=
612
(
">="
PGUID
0
b
t
f
26
26
16
611
609
0
0
int4ge
intgtsel
intgtjoinsel
));
#define MAX_OIDCMP 612
/* used by cache code */
DATA
(
insert
OID
=
644
(
"<>"
PGUID
0
b
t
f
30
30
16
644
649
0
0
oid
8
ne
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
645
(
"<"
PGUID
0
b
t
f
30
30
16
646
648
0
0
oid
8
lt
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
646
(
">"
PGUID
0
b
t
f
30
30
16
645
647
0
0
oid
8
gt
intgtsel
intgtjoinsel
));
DATA
(
insert
OID
=
647
(
"<="
PGUID
0
b
t
f
30
30
16
648
646
0
0
oid
8
le
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
648
(
">="
PGUID
0
b
t
f
30
30
16
647
645
0
0
oid
8
ge
intgtsel
intgtjoinsel
));
DATA
(
insert
OID
=
649
(
"="
PGUID
0
b
t
t
30
30
16
649
644
645
645
oid
8
eq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
644
(
"<>"
PGUID
0
b
t
f
30
30
16
644
649
0
0
oid
vector
ne
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
645
(
"<"
PGUID
0
b
t
f
30
30
16
646
648
0
0
oid
vector
lt
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
646
(
">"
PGUID
0
b
t
f
30
30
16
645
647
0
0
oid
vector
gt
intgtsel
intgtjoinsel
));
DATA
(
insert
OID
=
647
(
"<="
PGUID
0
b
t
f
30
30
16
648
646
0
0
oid
vector
le
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
648
(
">="
PGUID
0
b
t
f
30
30
16
647
645
0
0
oid
vector
ge
intgtsel
intgtjoinsel
));
DATA
(
insert
OID
=
649
(
"="
PGUID
0
b
t
t
30
30
16
649
644
645
645
oid
vector
eq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
613
(
"<->"
PGUID
0
b
t
f
600
628
701
0
0
0
0
dist_pl
-
-
));
DATA
(
insert
OID
=
614
(
"<->"
PGUID
0
b
t
f
600
601
701
0
0
0
0
dist_ps
-
-
));
...
...
src/include/catalog/pg_proc.h
View file @
6456b17b
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_proc.h,v 1.11
1 2000/01/06 20:46:54 wieck
Exp $
* $Id: pg_proc.h,v 1.11
2 2000/01/10 16:13:21 momjian
Exp $
*
* NOTES
* The script catalog/genbki.sh reads this file and generates .bki
...
...
@@ -47,7 +47,7 @@ CATALOG(pg_proc) BOOTSTRAP
int2
pronargs
;
bool
proretset
;
Oid
prorettype
;
oid
8
proargtypes
;
oid
vector
proargtypes
;
int4
probyte_pct
;
int4
properbyte_cpu
;
int4
propercall_cpu
;
...
...
@@ -116,9 +116,9 @@ DATA(insert OID = 38 ( int2in PGUID 11 f t t 1 f 21 "0" 100 0 0 100 int2
DESCR
(
"(internal)"
);
DATA
(
insert
OID
=
39
(
int2out
PGUID
11
f
t
t
1
f
23
"0"
100
0
0
100
int2out
-
));
DESCR
(
"(internal)"
);
DATA
(
insert
OID
=
40
(
int2
8in
PGUID
11
f
t
t
1
f
22
"0"
100
0
0
100
int28
in
-
));
DATA
(
insert
OID
=
40
(
int2
vectorin
PGUID
11
f
t
t
1
f
22
"0"
100
0
0
100
int2vector
in
-
));
DESCR
(
"(internal)"
);
DATA
(
insert
OID
=
41
(
int2
8out
PGUID
11
f
t
t
1
f
23
"0"
100
0
0
100
int28
out
-
));
DATA
(
insert
OID
=
41
(
int2
vectorout
PGUID
11
f
t
t
1
f
23
"0"
100
0
0
100
int2vector
out
-
));
DESCR
(
"(internal)"
);
DATA
(
insert
OID
=
42
(
int4in
PGUID
11
f
t
t
1
f
23
"0"
100
0
0
100
int4in
-
));
DESCR
(
"(internal)"
);
...
...
@@ -144,9 +144,9 @@ DATA(insert OID = 52 ( cidin PGUID 11 f t t 1 f 29 "0" 100 0 0 100 cidin
DESCR
(
"(internal)"
);
DATA
(
insert
OID
=
53
(
cidout
PGUID
11
f
t
t
1
f
23
"0"
100
0
0
100
cidout
-
));
DESCR
(
"(internal)"
);
DATA
(
insert
OID
=
54
(
oid
8in
PGUID
11
f
t
t
1
f
30
"0"
100
0
0
100
oid8
in
-
));
DATA
(
insert
OID
=
54
(
oid
vectorin
PGUID
11
f
t
t
1
f
30
"0"
100
0
0
100
oidvector
in
-
));
DESCR
(
"(internal)"
);
DATA
(
insert
OID
=
55
(
oid
8out
PGUID
11
f
t
t
1
f
23
"0"
100
0
0
100
oid8
out
-
));
DATA
(
insert
OID
=
55
(
oid
vectorout
PGUID
11
f
t
t
1
f
23
"0"
100
0
0
100
oidvector
out
-
));
DESCR
(
"(internal)"
);
DATA
(
insert
OID
=
56
(
boollt
PGUID
11
f
t
t
2
f
16
"16 16"
100
0
0
100
boollt
-
));
DESCR
(
"less-than"
);
...
...
@@ -750,7 +750,7 @@ DATA(insert OID = 355 ( btfloat8cmp PGUID 11 f t t 2 f 23 "701 701" 100 0 0
DESCR
(
"btree less-equal-greater"
);
DATA
(
insert
OID
=
356
(
btoidcmp
PGUID
11
f
t
t
2
f
23
"26 26"
100
0
0
100
btoidcmp
-
));
DESCR
(
"btree less-equal-greater"
);
DATA
(
insert
OID
=
404
(
btoid
8cmp
PGUID
11
f
t
t
2
f
23
"30 30"
100
0
0
100
btoid8
cmp
-
));
DATA
(
insert
OID
=
404
(
btoid
vectorcmp
PGUID
11
f
t
t
2
f
23
"30 30"
100
0
0
100
btoidvector
cmp
-
));
DESCR
(
"btree less-equal-greater"
);
DATA
(
insert
OID
=
357
(
btabstimecmp
PGUID
11
f
t
f
2
f
23
"702 702"
100
0
0
100
btabstimecmp
-
));
DESCR
(
"btree less-equal-greater"
);
...
...
@@ -840,7 +840,7 @@ DATA(insert OID = 455 ( hashname PGUID 11 f t t 1 f 23 "19" 100 0 0 100 ha
DESCR
(
"hash"
);
DATA
(
insert
OID
=
456
(
hashtext
PGUID
11
f
t
t
1
f
23
"25"
100
0
0
100
hashtext
-
));
DESCR
(
"hash"
);
DATA
(
insert
OID
=
457
(
hashoid
8
PGUID
11
f
t
t
1
f
23
"30"
100
0
0
100
hashoid8
-
));
DATA
(
insert
OID
=
457
(
hashoid
vector
PGUID
11
f
t
t
1
f
23
"30"
100
0
0
100
hashoidvector
-
));
DESCR
(
"hash"
);
DATA
(
insert
OID
=
458
(
text_larger
PGUID
11
f
t
t
2
f
25
"25 25"
100
0
0
100
text_larger
-
));
DESCR
(
"larger of two"
);
...
...
@@ -926,17 +926,17 @@ DESCR("truncate varchar()");
DATA
(
insert
OID
=
676
(
mktinterval
PGUID
11
f
t
f
2
f
704
"702 702"
100
0
0
100
mktinterval
-
));
DESCR
(
"convert to interval"
);
DATA
(
insert
OID
=
619
(
oid
8ne
PGUID
11
f
t
t
2
f
16
"30 30"
100
0
0
100
oid8
ne
-
));
DATA
(
insert
OID
=
619
(
oid
vectorne
PGUID
11
f
t
t
2
f
16
"30 30"
100
0
0
100
oidvector
ne
-
));
DESCR
(
"less-than"
);
DATA
(
insert
OID
=
677
(
oid
8lt
PGUID
11
f
t
t
2
f
16
"30 30"
100
0
0
100
oid8
lt
-
));
DATA
(
insert
OID
=
677
(
oid
vectorlt
PGUID
11
f
t
t
2
f
16
"30 30"
100
0
0
100
oidvector
lt
-
));
DESCR
(
"less-than"
);
DATA
(
insert
OID
=
678
(
oid
8le
PGUID
11
f
t
t
2
f
16
"30 30"
100
0
0
100
oid8
le
-
));
DATA
(
insert
OID
=
678
(
oid
vectorle
PGUID
11
f
t
t
2
f
16
"30 30"
100
0
0
100
oidvector
le
-
));
DESCR
(
"less-than-or-equal"
);
DATA
(
insert
OID
=
679
(
oid
8eq
PGUID
11
f
t
t
2
f
16
"30 30"
100
0
0
100
oid8
eq
-
));
DATA
(
insert
OID
=
679
(
oid
vectoreq
PGUID
11
f
t
t
2
f
16
"30 30"
100
0
0
100
oidvector
eq
-
));
DESCR
(
"equal"
);
DATA
(
insert
OID
=
680
(
oid
8ge
PGUID
11
f
t
t
2
f
16
"30 30"
100
0
0
100
oid8
ge
-
));
DATA
(
insert
OID
=
680
(
oid
vectorge
PGUID
11
f
t
t
2
f
16
"30 30"
100
0
0
100
oidvector
ge
-
));
DESCR
(
"greater-than-or-equal"
);
DATA
(
insert
OID
=
681
(
oid
8gt
PGUID
11
f
t
t
2
f
16
"30 30"
100
0
0
100
oid8
gt
-
));
DATA
(
insert
OID
=
681
(
oid
vectorgt
PGUID
11
f
t
t
2
f
16
"30 30"
100
0
0
100
oidvector
gt
-
));
DESCR
(
"greater-than"
);
/* OIDS 700 - 799 */
...
...
@@ -1621,8 +1621,8 @@ DATA(insert OID = 1347 ( int4 PGUID 11 f t t 1 f 23 "25" 100 0 0 100 tex
DESCR
(
"convert text to int4"
);
DATA
(
insert
OID
=
1348
(
obj_description
PGUID
14
f
t
f
1
f
25
"26"
100
0
0
100
"select description from pg_description where objoid = $1"
-
));
DESCR
(
"get description for object id"
);
DATA
(
insert
OID
=
1349
(
oid
8types
PGUID
11
f
t
f
1
f
25
"30"
100
0
0
100
oid8
types
-
));
DESCR
(
"print type names of oid
8
field"
);
DATA
(
insert
OID
=
1349
(
oid
vectortypes
PGUID
11
f
t
f
1
f
25
"30"
100
0
0
100
oidvector
types
-
));
DESCR
(
"print type names of oid
vector
field"
);
DATA
(
insert
OID
=
1350
(
datetime
PGUID
14
f
t
f
1
f
1184
"1184"
100
0
0
100
"select $1"
-
));
DESCR
(
"convert (noop)"
);
...
...
src/include/catalog/pg_trigger.h
View file @
6456b17b
...
...
@@ -41,7 +41,7 @@ CATALOG(pg_trigger) BOOTSTRAP
bool
tgdeferrable
;
/* RI trigger is deferrable */
bool
tginitdeferred
;
/* RI trigger is deferred initially */
int2
tgnargs
;
/* # of extra arguments in tgargs */
int2
8
tgattr
;
/* UPDATE of attr1, attr2 ... (NI) */
int2
vector
tgattr
;
/* UPDATE of attr1, attr2 ... (NI) */
bytea
tgargs
;
/* first\000second\000tgnargs\000 */
}
FormData_pg_trigger
;
...
...
src/include/catalog/pg_type.h
View file @
6456b17b
...
...
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_type.h,v 1.7
2 1999/12/28 13:40:50 wieck
Exp $
* $Id: pg_type.h,v 1.7
3 2000/01/10 16:13:21 momjian
Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
...
...
@@ -174,16 +174,16 @@ DATA(insert OID = 21 ( int2 PGUID 2 5 t b t \054 0 0 int2in int2out int2
DESCR
(
"-32 thousand to 32 thousand, 2-byte storage"
);
#define INT2OID 21
DATA
(
insert
OID
=
22
(
int2
8
PGUID
16
50
f
b
t
\
054
0
21
int28in
int28out
int28in
int28
out
i
_null_
));
DATA
(
insert
OID
=
22
(
int2
vector
PGUID
16
50
f
b
t
\
054
0
21
int2vectorin
int2vectorout
int2vectorin
int2vector
out
i
_null_
));
DESCR
(
"8 int2 integers, used internally"
);
/*
* XXX -- the implementation of int2
8
's in postgres is a hack, and will
* XXX -- the implementation of int2
vector
's in postgres is a hack, and will
* go away someday. until that happens, there is a case (in the
* catalog cache management code) where we need to step gingerly
* over piles of int2
8
's on the sidewalk. in order to do so, we
* need the OID of the int2
8
row from pg_type.
* over piles of int2
vector
's on the sidewalk. in order to do so, we
* need the OID of the int2
vector
row from pg_type.
*/
#define INT2
8OID
22
#define INT2
VECTOROID
22
DATA
(
insert
OID
=
23
(
int4
PGUID
4
10
t
b
t
\
054
0
0
int4in
int4out
int4in
int4out
i
_null_
));
DESCR
(
"-2 billion to 2 billion integer, 4-byte storage"
);
...
...
@@ -213,7 +213,7 @@ DATA(insert OID = 29 ( cid PGUID 4 10 t b t \054 0 0 cidin cidout cidin
DESCR
(
"command identifier type, sequence in transaction id"
);
#define CIDOID 29
DATA
(
insert
OID
=
30
(
oid
8
PGUID
32
89
f
b
t
\
054
0
26
oid8in
oid8out
oid8in
oid8
out
i
_null_
));
DATA
(
insert
OID
=
30
(
oid
vector
PGUID
32
89
f
b
t
\
054
0
26
oidvectorin
oidvectorout
oidvectorin
oidvector
out
i
_null_
));
DESCR
(
"array of 8 oids, used in system tables"
);
DATA
(
insert
OID
=
32
(
SET
PGUID
-
1
-
1
f
b
t
\
054
0
0
textin
textout
textin
textout
i
_null_
));
DESCR
(
"set of tuples"
);
...
...
@@ -317,7 +317,7 @@ DATA(insert OID = 1001 ( _bytea PGUID -1 -1 f b t \054 0 17 array_in array_ou
DATA
(
insert
OID
=
1002
(
_char
PGUID
-
1
-
1
f
b
t
\
054
0
18
array_in
array_out
array_in
array_out
i
_null_
));
DATA
(
insert
OID
=
1003
(
_name
PGUID
-
1
-
1
f
b
t
\
054
0
19
array_in
array_out
array_in
array_out
i
_null_
));
DATA
(
insert
OID
=
1005
(
_int2
PGUID
-
1
-
1
f
b
t
\
054
0
21
array_in
array_out
array_in
array_out
i
_null_
));
DATA
(
insert
OID
=
1006
(
_int2
8
PGUID
-
1
-
1
f
b
t
\
054
0
22
array_in
array_out
array_in
array_out
i
_null_
));
DATA
(
insert
OID
=
1006
(
_int2
vector
PGUID
-
1
-
1
f
b
t
\
054
0
22
array_in
array_out
array_in
array_out
i
_null_
));
DATA
(
insert
OID
=
1007
(
_int4
PGUID
-
1
-
1
f
b
t
\
054
0
23
array_in
array_out
array_in
array_out
i
_null_
));
DATA
(
insert
OID
=
1008
(
_regproc
PGUID
-
1
-
1
f
b
t
\
054
0
24
array_in
array_out
array_in
array_out
i
_null_
));
DATA
(
insert
OID
=
1009
(
_text
PGUID
-
1
-
1
f
b
t
\
054
0
25
array_in
array_out
array_in
array_out
i
_null_
));
...
...
@@ -325,7 +325,7 @@ DATA(insert OID = 1028 ( _oid PGUID -1 -1 f b t \054 0 26 array_in array_out
DATA
(
insert
OID
=
1010
(
_tid
PGUID
-
1
-
1
f
b
t
\
054
0
27
array_in
array_out
array_in
array_out
i
_null_
));
DATA
(
insert
OID
=
1011
(
_xid
PGUID
-
1
-
1
f
b
t
\
054
0
28
array_in
array_out
array_in
array_out
i
_null_
));
DATA
(
insert
OID
=
1012
(
_cid
PGUID
-
1
-
1
f
b
t
\
054
0
29
array_in
array_out
array_in
array_out
i
_null_
));
DATA
(
insert
OID
=
1013
(
_oid
8
PGUID
-
1
-
1
f
b
t
\
054
0
30
array_in
array_out
array_in
array_out
i
_null_
));
DATA
(
insert
OID
=
1013
(
_oid
vector
PGUID
-
1
-
1
f
b
t
\
054
0
30
array_in
array_out
array_in
array_out
i
_null_
));
DATA
(
insert
OID
=
1014
(
_bpchar
PGUID
-
1
-
1
f
b
t
\
054
0
1042
array_in
array_out
array_in
array_out
i
_null_
));
DATA
(
insert
OID
=
1015
(
_varchar
PGUID
-
1
-
1
f
b
t
\
054
0
1043
array_in
array_out
array_in
array_out
i
_null_
));
DATA
(
insert
OID
=
1017
(
_point
PGUID
-
1
-
1
f
b
t
\
054
0
600
array_in
array_out
array_in
array_out
d
_null_
));
...
...
src/include/postgres.h
View file @
6456b17b
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1995, Regents of the University of California
*
* $Id: postgres.h,v 1.3
3 2000/01/10 05:20:26
momjian Exp $
* $Id: postgres.h,v 1.3
4 2000/01/10 16:13:18
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -19,7 +19,7 @@
* Oid regproc RegProcedure
* aclitem
* struct varlena
* int2
8 oid8
* int2
vector oidvector
* bytea text
* NameData Name
*
...
...
@@ -101,8 +101,8 @@ struct varlena
typedef
struct
varlena
bytea
;
typedef
struct
varlena
text
;
typedef
int2
int2
8
[
INDEX_MAX_KEYS
];
typedef
Oid
oid
8
[
INDEX_MAX_KEYS
];
typedef
int2
int2
vector
[
INDEX_MAX_KEYS
];
typedef
Oid
oid
vector
[
INDEX_MAX_KEYS
];
/*
...
...
src/include/utils/builtins.h
View file @
6456b17b
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: builtins.h,v 1.9
4 2000/01/06 20:47:01 wieck
Exp $
* $Id: builtins.h,v 1.9
5 2000/01/10 16:13:22 momjian
Exp $
*
* NOTES
* This should normally only be included by fmgr.h.
...
...
@@ -67,8 +67,8 @@ extern text *char_text(int8 arg1);
/* int.c */
extern
int32
int2in
(
char
*
num
);
extern
char
*
int2out
(
int16
sh
);
extern
int16
*
int2
8
in
(
char
*
shs
);
extern
char
*
int2
8
out
(
int16
*
shs
);
extern
int16
*
int2
vector
in
(
char
*
shs
);
extern
char
*
int2
vector
out
(
int16
*
shs
);
extern
int32
*
int44in
(
char
*
input_string
);
extern
char
*
int44out
(
int32
*
an_array
);
extern
int32
int4in
(
char
*
num
);
...
...
@@ -174,7 +174,7 @@ extern int32 btint42cmp(int32 a, int16 b);
extern
int32
btfloat4cmp
(
float32
a
,
float32
b
);
extern
int32
btfloat8cmp
(
float64
a
,
float64
b
);
extern
int32
btoidcmp
(
Oid
a
,
Oid
b
);
extern
int32
btoid
8
cmp
(
Oid
*
a
,
Oid
*
b
);
extern
int32
btoid
vector
cmp
(
Oid
*
a
,
Oid
*
b
);
extern
int32
btabstimecmp
(
AbsoluteTime
a
,
AbsoluteTime
b
);
extern
int32
btcharcmp
(
char
a
,
char
b
);
extern
int32
btnamecmp
(
NameData
*
a
,
NameData
*
b
);
...
...
@@ -340,18 +340,18 @@ extern bool int4notin(int32 not_in_arg, char *relation_and_attr);
extern
bool
oidnotin
(
Oid
the_oid
,
char
*
compare
);
/* oid.c */
extern
Oid
*
oid
8
in
(
char
*
oidString
);
extern
char
*
oid
8
out
(
Oid
*
oidArray
);
extern
Oid
*
oid
vector
in
(
char
*
oidString
);
extern
char
*
oid
vector
out
(
Oid
*
oidArray
);
extern
Oid
oidin
(
char
*
s
);
extern
char
*
oidout
(
Oid
o
);
extern
bool
oideq
(
Oid
arg1
,
Oid
arg2
);
extern
bool
oidne
(
Oid
arg1
,
Oid
arg2
);
extern
bool
oid
8
eq
(
Oid
*
arg1
,
Oid
*
arg2
);
extern
bool
oid
8
ne
(
Oid
*
arg1
,
Oid
*
arg2
);
extern
bool
oid
8
lt
(
Oid
*
arg1
,
Oid
*
arg2
);
extern
bool
oid
8
le
(
Oid
*
arg1
,
Oid
*
arg2
);
extern
bool
oid
8
ge
(
Oid
*
arg1
,
Oid
*
arg2
);
extern
bool
oid
8
gt
(
Oid
*
arg1
,
Oid
*
arg2
);
extern
bool
oid
vector
eq
(
Oid
*
arg1
,
Oid
*
arg2
);
extern
bool
oid
vector
ne
(
Oid
*
arg1
,
Oid
*
arg2
);
extern
bool
oid
vector
lt
(
Oid
*
arg1
,
Oid
*
arg2
);
extern
bool
oid
vector
le
(
Oid
*
arg1
,
Oid
*
arg2
);
extern
bool
oid
vector
ge
(
Oid
*
arg1
,
Oid
*
arg2
);
extern
bool
oid
vector
gt
(
Oid
*
arg1
,
Oid
*
arg2
);
extern
bool
oideqint4
(
Oid
arg1
,
int32
arg2
);
extern
bool
int4eqoid
(
int32
arg1
,
Oid
arg2
);
extern
text
*
oid_text
(
Oid
arg1
);
...
...
@@ -371,7 +371,7 @@ extern bool texticregexne(struct varlena * s, struct varlena * p);
/* regproc.c */
extern
int32
regprocin
(
char
*
pro_name_and_oid
);
extern
char
*
regprocout
(
RegProcedure
proid
);
extern
text
*
oid
8
types
(
Oid
*
oidArray
);
extern
text
*
oid
vector
types
(
Oid
*
oidArray
);
extern
Oid
regproctooid
(
RegProcedure
rp
);
/* define macro to replace mixed-case function call - tgl 97/04/27 */
...
...
src/include/utils/int8.h
View file @
6456b17b
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: int8.h,v 1.1
4 1999/05/25 22:43:35
momjian Exp $
* $Id: int8.h,v 1.1
5 2000/01/10 16:13:22
momjian Exp $
*
* NOTES
* These data types are supported on all 64-bit architectures, and may
...
...
@@ -92,7 +92,7 @@ extern int64 *int48(int32 val);
extern
int32
int84
(
int64
*
val
);
#if NOT_USED
extern
int64
*
int2
8
(
int16
val
);
extern
int64
*
int2
vector
(
int16
val
);
extern
int16
int82
(
int64
*
val
);
#endif
...
...
src/interfaces/odbc/convert.c
View file @
6456b17b
...
...
@@ -209,7 +209,7 @@ char tempBuf[TEXT_FIELD_SIZE+5];
break
;
/* This is for internal use by SQLStatistics() */
case
PG_TYPE_INT2
8
:
{
case
PG_TYPE_INT2
VECTOR
:
{
// this is an array of eight integers
short
*
short_array
=
(
short
*
)
(
(
char
*
)
rgbValue
+
rgbValueOffset
);
...
...
src/interfaces/odbc/pgtypes.h
View file @
6456b17b
...
...
@@ -24,7 +24,7 @@
#define PG_TYPE_NAME 19
#define PG_TYPE_CHAR16 20
#define PG_TYPE_INT2 21
#define PG_TYPE_INT2
8
22
#define PG_TYPE_INT2
VECTOR
22
#define PG_TYPE_INT4 23
#define PG_TYPE_REGPROC 24
#define PG_TYPE_TEXT 25
...
...
@@ -32,7 +32,7 @@
#define PG_TYPE_TID 27
#define PG_TYPE_XID 28
#define PG_TYPE_CID 29
#define PG_TYPE_OID
8
30
#define PG_TYPE_OID
VECTOR
30
#define PG_TYPE_SET 32
#define PG_TYPE_CHAR2 409
#define PG_TYPE_CHAR4 410
...
...
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