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
0d203b74
Commit
0d203b74
authored
Apr 26, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-apply Darren's char2-16 removal code.
parent
9260d4b4
Changes
63
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
63 changed files
with
329 additions
and
1328 deletions
+329
-1328
src/backend/access/common/tupdesc.c
src/backend/access/common/tupdesc.c
+2
-2
src/backend/access/hash/hashfunc.c
src/backend/access/hash/hashfunc.c
+4
-71
src/backend/access/nbtree/nbtcompare.c
src/backend/access/nbtree/nbtcompare.c
+1
-25
src/backend/access/transam/xid.c
src/backend/access/transam/xid.c
+3
-3
src/backend/bootstrap/bootparse.y
src/backend/bootstrap/bootparse.y
+25
-31
src/backend/bootstrap/bootstrap.c
src/backend/bootstrap/bootstrap.c
+46
-64
src/backend/commands/creatinh.c
src/backend/commands/creatinh.c
+2
-2
src/backend/commands/dbcommands.c
src/backend/commands/dbcommands.c
+2
-2
src/backend/executor/execQual.c
src/backend/executor/execQual.c
+3
-3
src/backend/parser/parse_expr.c
src/backend/parser/parse_expr.c
+2
-2
src/backend/rewrite/rewriteRemove.c
src/backend/rewrite/rewriteRemove.c
+6
-7
src/backend/rewrite/rewriteSupport.c
src/backend/rewrite/rewriteSupport.c
+2
-2
src/backend/tcop/fastpath.c
src/backend/tcop/fastpath.c
+2
-2
src/backend/utils/adt/char.c
src/backend/utils/adt/char.c
+1
-321
src/backend/utils/adt/like.c
src/backend/utils/adt/like.c
+1
-53
src/backend/utils/adt/regexp.c
src/backend/utils/adt/regexp.c
+1
-106
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
+2
-2
src/include/access/hash.h
src/include/access/hash.h
+1
-5
src/include/catalog/pg_amop.h
src/include/catalog/pg_amop.h
+1
-89
src/include/catalog/pg_opclass.h
src/include/catalog/pg_opclass.h
+1
-9
src/include/catalog/pg_operator.h
src/include/catalog/pg_operator.h
+1
-54
src/include/catalog/pg_proc.h
src/include/catalog/pg_proc.h
+1
-132
src/include/catalog/pg_type.h
src/include/catalog/pg_type.h
+1
-14
src/include/postgres.h
src/include/postgres.h
+2
-18
src/include/utils/builtins.h
src/include/utils/builtins.h
+1
-64
src/include/utils/oidcompos.h
src/include/utils/oidcompos.h
+2
-2
src/include/version.h
src/include/version.h
+2
-2
src/man/bki.5
src/man/bki.5
+2
-2
src/man/create_function.l
src/man/create_function.l
+1
-2
src/man/create_index.l
src/man/create_index.l
+3
-27
src/man/create_rule.l
src/man/create_rule.l
+2
-2
src/man/create_table.l
src/man/create_table.l
+3
-3
src/man/libpq.3
src/man/libpq.3
+2
-2
src/man/sql.l
src/man/sql.l
+2
-2
src/test/bench/create.source
src/test/bench/create.source
+3
-3
src/test/regress/expected/alter_table.out
src/test/regress/expected/alter_table.out
+6
-6
src/test/regress/expected/arrays.out
src/test/regress/expected/arrays.out
+1
-1
src/test/regress/expected/btree_index.out
src/test/regress/expected/btree_index.out
+6
-6
src/test/regress/expected/create_index.out
src/test/regress/expected/create_index.out
+3
-3
src/test/regress/expected/create_misc.out
src/test/regress/expected/create_misc.out
+22
-22
src/test/regress/expected/create_table.out
src/test/regress/expected/create_table.out
+18
-18
src/test/regress/expected/hash_index.out
src/test/regress/expected/hash_index.out
+13
-13
src/test/regress/expected/oidname.out
src/test/regress/expected/oidname.out
+21
-21
src/test/regress/expected/sanity_check.out
src/test/regress/expected/sanity_check.out
+2
-2
src/test/regress/input/copy.source
src/test/regress/input/copy.source
+2
-2
src/test/regress/input/create_function_2.source
src/test/regress/input/create_function_2.source
+2
-2
src/test/regress/input/misc.source
src/test/regress/input/misc.source
+2
-2
src/test/regress/output/copy.source
src/test/regress/output/copy.source
+2
-2
src/test/regress/output/create_function_2.source
src/test/regress/output/create_function_2.source
+2
-2
src/test/regress/output/misc.source
src/test/regress/output/misc.source
+4
-4
src/test/regress/regress.c
src/test/regress/regress.c
+4
-4
src/test/regress/sql/alter_table.sql
src/test/regress/sql/alter_table.sql
+6
-6
src/test/regress/sql/arrays.sql
src/test/regress/sql/arrays.sql
+1
-1
src/test/regress/sql/btree_index.sql
src/test/regress/sql/btree_index.sql
+6
-6
src/test/regress/sql/create_index.sql
src/test/regress/sql/create_index.sql
+5
-5
src/test/regress/sql/create_misc.sql
src/test/regress/sql/create_misc.sql
+22
-22
src/test/regress/sql/create_table.sql
src/test/regress/sql/create_table.sql
+18
-18
src/test/regress/sql/destroy.sql
src/test/regress/sql/destroy.sql
+6
-6
src/test/regress/sql/hash_index.sql
src/test/regress/sql/hash_index.sql
+13
-13
src/test/regress/sql/oidname.sql
src/test/regress/sql/oidname.sql
+3
-3
src/test/regress/sql/tests
src/test/regress/sql/tests
+1
-4
src/tools/pgindent/pgindent
src/tools/pgindent/pgindent
+0
-2
No files found.
src/backend/access/common/tupdesc.c
View file @
0d203b74
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.3
8 1998/04/07 18:09:44
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.3
9 1998/04/26 04:05:02
momjian Exp $
*
* NOTES
* some of the executor utility code such as "ExecTypeFromTL" should be
...
...
@@ -317,7 +317,7 @@ TupleDescInitEntry(TupleDesc desc,
*
* Note: in the special case of
*
* create EMP (name =
char16
, manager = EMP)
* create EMP (name =
text
, manager = EMP)
*
* RelationNameCreateHeapRelation() calls BuildDesc() which
* calls this routine and since EMP does not exist yet, the
...
...
src/backend/access/hash/hashfunc.c
View file @
0d203b74
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashfunc.c,v 1.
8 1998/04/07 18:09:46
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashfunc.c,v 1.
9 1998/04/26 04:05:08
momjian Exp $
*
* NOTES
* These functions are stored in pg_amproc. For each operator class
...
...
@@ -133,6 +133,8 @@ hashoid(Oid key)
return
((
uint32
)
~
key
);
}
#define PRIME1 37
#define PRIME2 1048583
uint32
hashchar
(
char
key
)
...
...
@@ -140,12 +142,8 @@ hashchar(char key)
int
len
;
uint32
h
;
len
=
sizeof
(
char
);
#define PRIME1 37
#define PRIME2 1048583
h
=
0
;
len
=
sizeof
(
char
);
/* Convert char to integer */
h
=
h
*
PRIME1
^
(
key
-
' '
);
h
%=
PRIME2
;
...
...
@@ -153,55 +151,6 @@ hashchar(char key)
return
(
h
);
}
uint32
hashchar2
(
uint16
intkey
)
{
uint32
h
;
int
len
;
char
*
key
=
(
char
*
)
&
intkey
;
h
=
0
;
len
=
sizeof
(
uint16
);
/* Convert string to integer */
while
(
len
--
)
h
=
h
*
PRIME1
^
(
*
key
++
-
' '
);
h
%=
PRIME2
;
return
(
h
);
}
uint32
hashchar4
(
uint32
intkey
)
{
uint32
h
;
int
len
;
char
*
key
=
(
char
*
)
&
intkey
;
h
=
0
;
len
=
sizeof
(
uint32
);
/* Convert string to integer */
while
(
len
--
)
h
=
h
*
PRIME1
^
(
*
key
++
-
' '
);
h
%=
PRIME2
;
return
(
h
);
}
uint32
hashchar8
(
char
*
key
)
{
uint32
h
;
int
len
;
h
=
0
;
len
=
sizeof
(
char8
);
/* Convert string to integer */
while
(
len
--
)
h
=
h
*
PRIME1
^
(
*
key
++
-
' '
);
h
%=
PRIME2
;
return
(
h
);
}
uint32
hashname
(
NameData
*
n
)
...
...
@@ -223,22 +172,6 @@ hashname(NameData *n)
}
uint32
hashchar16
(
char
*
key
)
{
uint32
h
;
int
len
;
h
=
0
;
len
=
sizeof
(
char16
);
/* Convert string to integer */
while
(
len
--
)
h
=
h
*
PRIME1
^
(
*
key
++
-
' '
);
h
%=
PRIME2
;
return
(
h
);
}
/*
* (Comment from the original db3 hashing code: )
...
...
src/backend/access/nbtree/nbtcompare.c
View file @
0d203b74
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtcompare.c,v 1.1
5 1998/04/07 18:09:51
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtcompare.c,v 1.1
6 1998/04/26 04:05:19
momjian Exp $
*
* NOTES
* These functions are stored in pg_amproc. For each operator class
...
...
@@ -101,30 +101,6 @@ btcharcmp(char a, char b)
return
((
int32
)
((
uint8
)
a
-
(
uint8
)
b
));
}
int32
btchar2cmp
(
uint16
a
,
uint16
b
)
{
return
(
strncmp
((
char
*
)
&
a
,
(
char
*
)
&
b
,
2
));
}
int32
btchar4cmp
(
uint32
a
,
uint32
b
)
{
return
(
strncmp
((
char
*
)
&
a
,
(
char
*
)
&
b
,
4
));
}
int32
btchar8cmp
(
char
*
a
,
char
*
b
)
{
return
(
strncmp
(
a
,
b
,
8
));
}
int32
btchar16cmp
(
char
*
a
,
char
*
b
)
{
return
(
strncmp
(
a
,
b
,
16
));
}
int32
btnamecmp
(
NameData
*
a
,
NameData
*
b
)
{
...
...
src/backend/access/transam/xid.c
View file @
0d203b74
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/transam/Attic/xid.c,v 1.1
5 1998/04/24 14:41:39
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/transam/Attic/xid.c,v 1.1
6 1998/04/26 04:05:34
momjian Exp $
*
* OLD COMMENTS
* XXX WARNING
...
...
@@ -30,14 +30,14 @@ extern TransactionId DisabledTransactionId;
extern
TransactionId
AmiTransactionId
;
extern
TransactionId
FirstTransactionId
;
/* XXX
char16
name for catalogs */
/* XXX name for catalogs */
TransactionId
xidin
(
char
*
representation
)
{
return
(
atol
(
representation
));
}
/* XXX
char16
name for catalogs */
/* XXX name for catalogs */
char
*
xidout
(
TransactionId
transactionId
)
{
...
...
src/backend/bootstrap/bootparse.y
View file @
0d203b74
...
...
@@ -8,53 +8,47 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootparse.y,v 1.1
5 1998/04/07 18:10:1
1 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootparse.y,v 1.1
6 1998/04/26 04:05:5
1 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <stdio.h>
#include <time.h>
#include "postgres.h"
#include "catalog/pg_attribute.h"
#include "miscadmin.h"
#include "access/attnum.h"
#include "nodes/pg_list.h"
#include "access/funcindex.h"
#include "access/htup.h"
#include "access/itup.h"
#include "access/skey.h"
#include "access/strat.h"
#include "access/tupdesc.h"
#include "storage/fd.h"
#include "access/xact.h"
#include "bootstrap/bootstrap.h"
#include "catalog/heap.h"
#include "catalog/pg_am.h"
#include "catalog/pg_attribute.h"
#include "catalog/pg_class.h"
#include "commands/defrem.h"
#include "nodes/nodes.h"
#include "rewrite/prs2lock.h"
#include "access/skey.h"
#include "access/strat.h"
#include "utils/rel.h"
#include "nodes/parsenodes.h"
#include "nodes/pg_list.h"
#include "nodes/primnodes.h"
#include <time.h>
#include "utils/nabstime.h"
#include "rewrite/prs2lock.h"
#include "storage/block.h"
#include "storage/off.h"
#include "storage/itemptr.h"
#include "access/htup.h"
#include "nodes/parsenodes.h"
#include "access/xact.h"
#include <stdio.h>
#include "catalog/heap.h"
#include "storage/fd.h"
#include "storage/ipc.h"
#include "storage/spin.h"
#include "storage/itemptr.h"
#include "storage/off.h"
#include "storage/smgr.h"
#include "storage/spin.h"
#include "tcop/dest.h"
#include "commands/defrem.h"
#include "access/itup.h"
#include "access/funcindex.h"
#include "bootstrap/bootstrap.h"
#include "miscadmin.h"
#include "utils/nabstime.h"
#include "utils/rel.h"
#define DO_START { \
StartTransactionCommand();\
...
...
src/backend/bootstrap/bootstrap.c
View file @
0d203b74
...
...
@@ -7,7 +7,7 @@
* Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.
39 1998/04/07 18:10:21
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.
40 1998/04/26 04:06:04
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -16,88 +16,70 @@
#include <stdio.h>
#include <signal.h>
#include <setjmp.h>
#include <string.h>
#define BOOTSTRAP_INCLUDE
/* mask out stuff in tcop/tcopprot.h */
#include "postgres.h"
#include "catalog/pg_attribute.h"
#include "miscadmin.h"
#include "fmgr.h"
#include "access/attnum.h"
#include "nodes/pg_list.h"
#include "access/funcindex.h"
#include "access/genam.h"
#include "access/heapam.h"
#include "access/htup.h"
#include "access/itup.h"
#include "access/relscan.h"
#include "access/sdir.h"
#include "access/skey.h"
#include "access/strat.h"
#include "access/tupdesc.h"
#include "storage/fd.h"
#include "access/xact.h"
#include "bootstrap/bootstrap.h"
#include "catalog/catname.h"
#include "catalog/index.h"
#include "catalog/pg_am.h"
#include "catalog/pg_attribute.h"
#include "catalog/pg_class.h"
#include "catalog/pg_type.h"
#include "executor/execdesc.h"
#include "executor/hashjoin.h"
#include "executor/tuptable.h"
#include "libpq/pqsignal.h"
#include "nodes/execnodes.h"
#include "nodes/memnodes.h"
#include "nodes/nodes.h"
#include "nodes/params.h"
#include "nodes/parsenodes.h"
#include "nodes/plannodes.h"
#include "nodes/pg_list.h"
#include "nodes/primnodes.h"
#include "rewrite/prs2lock.h"
#include "access/skey.h"
#include "access/strat.h"
#include "utils/rel.h"
#include "libpq/pqsignal.h"
#include "storage/block.h"
#include "storage/off.h"
#include "storage/itemptr.h"
#include "utils/nabstime.h"
#include "access/htup.h"
#include "storage/buf.h"
#include "access/relscan.h"
#include "access/heapam.h"
#include "fmgr.h"
#include "access/funcindex.h"
#include "nodes/memnodes.h"
#include "miscadmin.h"
#include "catalog/pg_type.h"
#include "access/itup.h"
#include "bootstrap/bootstrap.h"
#include "tcop/tcopprot.h"
#include "storage/fd.h"
#include "storage/ipc.h"
#include "storage/itemptr.h"
#include "storage/lock.h"
#include "storage/off.h"
#include "storage/shmem.h"
#include "storage/spin.h"
#include "tcop/dest.h"
#include "tcop/tcopprot.h"
#include "utils/builtins.h"
#include "utils/geo_decls.h"
#include "utils/hsearch.h"
#include "storage/shmem.h"
#include "storage/lock.h"
#include "access/xact.h"
#include "utils/lsyscache.h"
#include "utils/mcxt.h"
#include "utils/nabstime.h"
#include "utils/portal.h"
#include "utils/rel.h"
#ifndef HAVE_MEMMOVE
#include "regex/utils.h"
#endif
#include <string.h>
#include "nodes/primnodes.h"
#include "nodes/parsenodes.h"
#include "nodes/params.h"
#include "access/sdir.h"
#include "executor/hashjoin.h"
#include "executor/tuptable.h"
#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
#include "tcop/dest.h"
#include "executor/execdesc.h"
#include "utils/portal.h"
#include "utils/mcxt.h"
#include "catalog/catname.h"
#include "utils/geo_decls.h"
#include "utils/builtins.h"
#include "catalog/index.h"
#include "access/genam.h"
#include "utils/lsyscache.h"
#include "utils/palloc.h"
#define ALLOC(t, c) (t *)calloc((unsigned)(c), sizeof(t))
#define FIRST_TYPE_OID 16
/* OID of the first type */
...
...
@@ -161,7 +143,7 @@ static struct typinfo Procid[] = {
{
"bytea"
,
17
,
0
,
-
1
,
F_BYTEAIN
,
F_BYTEAOUT
},
{
"char"
,
18
,
0
,
1
,
F_CHARIN
,
F_CHAROUT
},
{
"name"
,
19
,
0
,
NAMEDATALEN
,
F_NAMEIN
,
F_NAMEOUT
},
{
"
char16"
,
20
,
0
,
16
,
F_CHAR16IN
,
F_CHAR16OUT
},
{
"
dummy"
,
20
,
0
,
16
,
0
,
0
},
/* { "dt", 20, 0, 4, F_DTIN, F_DTOUT}, */
{
"int2"
,
21
,
0
,
2
,
F_INT2IN
,
F_INT2OUT
},
{
"int28"
,
22
,
0
,
16
,
F_INT28IN
,
F_INT28OUT
},
...
...
src/backend/commands/creatinh.c
View file @
0d203b74
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.2
8 1998/04/07 18:10:36
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.2
9 1998/04/26 04:06:20
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -179,7 +179,7 @@ RemoveRelation(char *name)
* Here's an example:
*
* create table person (name text, age int4, location point);
* create table emp (salary int4, manager
char16
) inherits(person);
* create table emp (salary int4, manager
text
) inherits(person);
* create table student (gpa float8) inherits (person);
* create table stud_emp (percent int4) inherits (emp, student);
*
...
...
src/backend/commands/dbcommands.c
View file @
0d203b74
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.1
1 1998/04/07 18:10:41
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.1
2 1998/04/26 04:06:27
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -88,7 +88,7 @@ createdb(char *dbname, char *dbpath)
#if FALSE
sprintf
(
buf
,
"insert into pg_database (datname, datdba, datpath) \
values (
\'
%s
\'
::
char16
,
\'
%d
\'
::oid,
\'
%s
\'
::text);"
,
values (
\'
%s
\'
::
name
,
\'
%d
\'
::oid,
\'
%s
\'
::text);"
,
dbname
,
user_id
,
dbname
);
#endif
...
...
src/backend/executor/execQual.c
View file @
0d203b74
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.
29 1998/04/07 18:10:46
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.
30 1998/04/26 04:06:34
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -547,7 +547,7 @@ GetAttributeByNum(TupleTableSlot *slot,
return
(
char
*
)
retval
;
}
/* XXX
char16
name for catalogs */
/* XXX name for catalogs */
#ifdef NOT_USED
char
*
att_by_num
(
TupleTableSlot
*
slot
,
...
...
@@ -608,7 +608,7 @@ GetAttributeByName(TupleTableSlot *slot, char *attname, bool *isNull)
return
(
char
*
)
retval
;
}
/* XXX
char16
name for catalogs */
/* XXX name for catalogs */
#ifdef NOT_USED
char
*
att_by_name
(
TupleTableSlot
*
slot
,
char
*
attname
,
bool
*
isNull
)
...
...
src/backend/parser/parse_expr.c
View file @
0d203b74
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.2
6 1998/04/07 18:10:51
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.2
7 1998/04/26 04:06:45
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -530,7 +530,7 @@ parser_typecast2(Node *expr, Oid exprType, Type tp, int16 atttypmod)
sprintf
(
const_string
,
"%d"
,
(
int
)
((
Const
*
)
expr
)
->
constvalue
);
break
;
case
NAMEOID
:
/*
char16
*/
case
NAMEOID
:
/*
name
*/
const_string
=
(
char
*
)
palloc
(
256
);
string_palloced
=
true
;
sprintf
(
const_string
,
"%s"
,
...
...
src/backend/rewrite/rewriteRemove.c
View file @
0d203b74
...
...
@@ -7,21 +7,20 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteRemove.c,v 1.1
3 1998/04/07 18:11:08
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteRemove.c,v 1.1
4 1998/04/26 04:07:07
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "fmgr.h"
/* for F_NAMEEQ */
#include "access/heapam.h"
/* heap AM calls defined here */
#include "access/skey.h"
#include "catalog/pg_rewrite.h"
#include "catalog/catname.h"
/* for RewriteRelationName */
#include "catalog/pg_rewrite.h"
#include "utils/syscache.h"
#include "utils/elog.h"
/* for elog stuff */
#include "utils/palloc.h"
#include "access/heapam.h"
/* heap AM calls defined here */
#include "fmgr.h"
/* for CHAR_16_EQ */
#include "rewrite/rewriteRemove.h"
/* where the decls go */
#include "rewrite/rewriteSupport.h"
...
...
@@ -86,7 +85,7 @@ RemoveRewriteRule(char *ruleName)
* Scan the RuleRelation ('pg_rewrite') until we find a tuple
*/
ScanKeyEntryInitialize
(
&
scanKeyData
,
0
,
Anum_pg_rewrite_rulename
,
F_
CHAR16
EQ
,
NameGetDatum
(
ruleName
));
F_
NAME
EQ
,
NameGetDatum
(
ruleName
));
scanDesc
=
heap_beginscan
(
RewriteRelation
,
0
,
false
,
1
,
&
scanKeyData
);
...
...
src/backend/rewrite/rewriteSupport.c
View file @
0d203b74
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteSupport.c,v 1.1
8 1998/04/07 18:11:11
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteSupport.c,v 1.1
9 1998/04/26 04:07:15
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -106,7 +106,7 @@ IsDefinedRewriteRule(char *ruleName)
* Scan the RuleRelation ('pg_rewrite') until we find a tuple
*/
ScanKeyEntryInitialize
(
&
scanKey
,
0
,
Anum_pg_rewrite_rulename
,
NameEqualRegProcedure
,
PointerGetDatum
(
ruleName
));
F_NAMEEQ
,
PointerGetDatum
(
ruleName
));
scanDesc
=
heap_beginscan
(
RewriteRelation
,
0
,
false
,
1
,
&
scanKey
);
...
...
src/backend/tcop/fastpath.c
View file @
0d203b74
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.1
5 1998/04/07 18:11:18
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.1
6 1998/04/26 04:07:22
momjian Exp $
*
* NOTES
* This cruft is the server side of PQfn.
...
...
@@ -44,7 +44,7 @@
* The previous implementation would assume (1) that any value of
* length <= 4 bytes was passed-by-value, and that any other value
* was a struct varlena (by-reference). There was NO way to pass a
* fixed-length by-reference argument (like
char16
) or a struct
* fixed-length by-reference argument (like
name
) or a struct
* varlena of size <= 4 bytes.
*
* The new implementation checks the catalogs to determine whether
...
...
src/backend/utils/adt/char.c
View file @
0d203b74
...
...
@@ -3,16 +3,12 @@
* char.c--
* Functions for the built-in type "char".
* Functions for the built-in type "cid".
* Functions for the built-in type "char2".
* Functions for the built-in type "char4".
* Functions for the built-in type "char8".
* Functions for the built-in type "char16".
*
* Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/char.c,v 1.1
7 1998/04/07 18:11:25
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/char.c,v 1.1
8 1998/04/26 04:07:28
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -87,42 +83,6 @@ cidout(int32 c)
return
(
result
);
}
/*
* char16in - converts "..." to internal reprsentation
*
* Note:
* Currently if strlen(s) < 14, the extra chars are nulls
*/
char
*
char16in
(
char
*
s
)
{
char
*
result
;
if
(
s
==
NULL
)
return
(
NULL
);
result
=
(
char
*
)
palloc
(
16
);
strncpy
(
result
,
s
,
16
);
return
(
result
);
}
/*
* char16out - converts internal reprsentation to "..."
*/
char
*
char16out
(
char
*
s
)
{
char
*
result
=
(
char
*
)
palloc
(
17
);
if
(
s
==
NULL
)
{
result
[
0
]
=
'-'
;
result
[
1
]
=
'\0'
;
}
else
StrNCpy
(
result
,
s
,
17
);
return
(
result
);
}
/*****************************************************************************
* PUBLIC ROUTINES *
...
...
@@ -193,283 +153,3 @@ cideq(int8 arg1, int8 arg2)
{
return
(
arg1
==
arg2
);
}
/*
* char16eq - returns 1 iff arguments are equal
* char16ne - returns 1 iff arguments are not equal
*
* BUGS:
* Assumes that "xy\0\0a" should be equal to "xy\0b".
* If not, can do the comparison backwards for efficiency.
*
* char16lt - returns 1 iff a < b
* char16le - returns 1 iff a <= b
* char16gt - returns 1 iff a < b
* char16ge - returns 1 iff a <= b
*
*/
bool
char16eq
(
char
*
arg1
,
char
*
arg2
)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
(
strncmp
(
arg1
,
arg2
,
16
)
==
0
);
}
bool
char16ne
(
char
*
arg1
,
char
*
arg2
)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
(
strncmp
(
arg1
,
arg2
,
16
)
!=
0
);
}
bool
char16lt
(
char
*
arg1
,
char
*
arg2
)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
(
strncmp
(
arg1
,
arg2
,
16
)
<
0
);
}
bool
char16le
(
char
*
arg1
,
char
*
arg2
)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
(
strncmp
(
arg1
,
arg2
,
16
)
<=
0
);
}
bool
char16gt
(
char
*
arg1
,
char
*
arg2
)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
(
strncmp
(
arg1
,
arg2
,
16
)
>
0
);
}
bool
char16ge
(
char
*
arg1
,
char
*
arg2
)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
(
strncmp
(
arg1
,
arg2
,
16
)
>=
0
);
}
/* ============================== char2 ============================== */
uint16
char2in
(
char
*
s
)
{
uint16
res
;
if
(
s
==
NULL
)
return
(
0
);
strncpy
((
char
*
)
&
res
,
s
,
2
);
return
(
res
);
}
char
*
char2out
(
uint16
s
)
{
char
*
result
=
(
char
*
)
palloc
(
3
);
StrNCpy
(
result
,
(
char
*
)
&
s
,
3
);
return
(
result
);
}
bool
char2eq
(
uint16
a
,
uint16
b
)
{
return
(
strncmp
((
char
*
)
&
a
,
(
char
*
)
&
b
,
2
)
==
0
);
}
bool
char2ne
(
uint16
a
,
uint16
b
)
{
return
(
strncmp
((
char
*
)
&
a
,
(
char
*
)
&
b
,
2
)
!=
0
);
}
bool
char2lt
(
uint16
a
,
uint16
b
)
{
return
(
strncmp
((
char
*
)
&
a
,
(
char
*
)
&
b
,
2
)
<
0
);
}
bool
char2le
(
uint16
a
,
uint16
b
)
{
return
(
strncmp
((
char
*
)
&
a
,
(
char
*
)
&
b
,
2
)
<=
0
);
}
bool
char2gt
(
uint16
a
,
uint16
b
)
{
return
(
strncmp
((
char
*
)
&
a
,
(
char
*
)
&
b
,
2
)
>
0
);
}
bool
char2ge
(
uint16
a
,
uint16
b
)
{
return
(
strncmp
((
char
*
)
&
a
,
(
char
*
)
&
b
,
2
)
>=
0
);
}
int32
char2cmp
(
uint16
a
,
uint16
b
)
{
return
(
strncmp
((
char
*
)
&
a
,
(
char
*
)
&
b
,
2
));
}
/* ============================== char4 ============================== */
uint32
char4in
(
char
*
s
)
{
uint32
res
;
if
(
s
==
NULL
)
return
(
0
);
strncpy
((
char
*
)
&
res
,
s
,
4
);
return
(
res
);
}
char
*
char4out
(
s
)
uint32
s
;
{
char
*
result
=
(
char
*
)
palloc
(
5
);
StrNCpy
(
result
,
(
char
*
)
&
s
,
5
);
return
(
result
);
}
bool
char4eq
(
uint32
a
,
uint32
b
)
{
return
(
strncmp
((
char
*
)
&
a
,
(
char
*
)
&
b
,
4
)
==
0
);
}
bool
char4ne
(
uint32
a
,
uint32
b
)
{
return
(
strncmp
((
char
*
)
&
a
,
(
char
*
)
&
b
,
4
)
!=
0
);
}
bool
char4lt
(
uint32
a
,
uint32
b
)
{
return
(
strncmp
((
char
*
)
&
a
,
(
char
*
)
&
b
,
4
)
<
0
);
}
bool
char4le
(
uint32
a
,
uint32
b
)
{
return
(
strncmp
((
char
*
)
&
a
,
(
char
*
)
&
b
,
4
)
<=
0
);
}
bool
char4gt
(
uint32
a
,
uint32
b
)
{
return
(
strncmp
((
char
*
)
&
a
,
(
char
*
)
&
b
,
4
)
>
0
);
}
bool
char4ge
(
uint32
a
,
uint32
b
)
{
return
(
strncmp
((
char
*
)
&
a
,
(
char
*
)
&
b
,
4
)
>=
0
);
}
int32
char4cmp
(
uint32
a
,
uint32
b
)
{
return
(
strncmp
((
char
*
)
&
a
,
(
char
*
)
&
b
,
4
));
}
/* ============================== char8 ============================== */
char
*
char8in
(
char
*
s
)
{
char
*
result
;
if
(
s
==
NULL
)
return
((
char
*
)
NULL
);
result
=
(
char
*
)
palloc
(
8
);
strncpy
(
result
,
s
,
8
);
return
(
result
);
}
char
*
char8out
(
char
*
s
)
{
char
*
result
=
(
char
*
)
palloc
(
9
);
if
(
s
==
NULL
)
{
result
[
0
]
=
'-'
;
result
[
1
]
=
'\0'
;
}
else
StrNCpy
(
result
,
s
,
9
);
return
(
result
);
}
bool
char8eq
(
char
*
arg1
,
char
*
arg2
)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
(
strncmp
(
arg1
,
arg2
,
8
)
==
0
);
}
bool
char8ne
(
char
*
arg1
,
char
*
arg2
)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
(
strncmp
(
arg1
,
arg2
,
8
)
!=
0
);
}
bool
char8lt
(
char
*
arg1
,
char
*
arg2
)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
(
strncmp
(
arg1
,
arg2
,
8
)
<
0
);
}
bool
char8le
(
char
*
arg1
,
char
*
arg2
)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
(
strncmp
(
arg1
,
arg2
,
8
)
<=
0
);
}
bool
char8gt
(
char
*
arg1
,
char
*
arg2
)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
(
strncmp
(
arg1
,
arg2
,
8
)
>
0
);
}
bool
char8ge
(
char
*
arg1
,
char
*
arg2
)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
(
strncmp
(
arg1
,
arg2
,
8
)
>=
0
);
}
int32
char8cmp
(
char
*
arg1
,
char
*
arg2
)
{
return
(
strncmp
(
arg1
,
arg2
,
8
));
}
src/backend/utils/adt/like.c
View file @
0d203b74
...
...
@@ -82,58 +82,6 @@ fixedlen_like(char *s, struct varlena * p, int charlen)
return
((
bool
)
result
);
}
bool
char2like
(
uint16
arg1
,
struct
varlena
*
p
)
{
char
*
s
=
(
char
*
)
&
arg1
;
return
(
fixedlen_like
(
s
,
p
,
2
));
}
bool
char2nlike
(
uint16
arg1
,
struct
varlena
*
p
)
{
return
(
!
char2like
(
arg1
,
p
));
}
bool
char4like
(
uint32
arg1
,
struct
varlena
*
p
)
{
char
*
s
=
(
char
*
)
&
arg1
;
return
(
fixedlen_like
(
s
,
p
,
4
));
}
bool
char4nlike
(
uint32
arg1
,
struct
varlena
*
p
)
{
return
(
!
char4like
(
arg1
,
p
));
}
bool
char8like
(
char
*
s
,
struct
varlena
*
p
)
{
return
(
fixedlen_like
(
s
,
p
,
8
));
}
bool
char8nlike
(
char
*
s
,
struct
varlena
*
p
)
{
return
(
!
char8like
(
s
,
p
));
}
bool
char16like
(
char
*
s
,
struct
varlena
*
p
)
{
return
(
fixedlen_like
(
s
,
p
,
16
));
}
bool
char16nlike
(
char
*
s
,
struct
varlena
*
p
)
{
return
(
!
char16like
(
s
,
p
));
}
bool
namelike
(
NameData
*
n
,
struct
varlena
*
p
)
{
...
...
@@ -163,7 +111,7 @@ textnlike(struct varlena * s, struct varlena * p)
}
/* $Revision: 1.1
5
$
/* $Revision: 1.1
6
$
** "like.c" A first attempt at a LIKE operator for Postgres95.
**
** Originally written by Rich $alz, mirror!rs, Wed Nov 26 19:03:17 EST 1986.
...
...
src/backend/utils/adt/regexp.c
View file @
0d203b74
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/regexp.c,v 1.1
6 1998/04/07 18:11:32
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/regexp.c,v 1.1
7 1998/04/26 04:07:48
momjian Exp $
*
* Alistair Crooks added the code for the regex caching
* agc - cached the regular expressions used - there's a good chance
...
...
@@ -203,58 +203,6 @@ fixedlen_regexeq(char *s, struct varlena * p, int charlen, int cflags)
/*
* routines that use the regexp stuff
*/
bool
char2regexeq
(
uint16
arg1
,
struct
varlena
*
p
)
{
char
*
s
=
(
char
*
)
&
arg1
;
return
(
fixedlen_regexeq
(
s
,
p
,
2
,
REG_EXTENDED
));
}
bool
char2regexne
(
uint16
arg1
,
struct
varlena
*
p
)
{
return
(
!
char2regexeq
(
arg1
,
p
));
}
bool
char4regexeq
(
uint32
arg1
,
struct
varlena
*
p
)
{
char
*
s
=
(
char
*
)
&
arg1
;
return
(
fixedlen_regexeq
(
s
,
p
,
4
,
REG_EXTENDED
));
}
bool
char4regexne
(
uint32
arg1
,
struct
varlena
*
p
)
{
return
(
!
char4regexeq
(
arg1
,
p
));
}
bool
char8regexeq
(
char
*
s
,
struct
varlena
*
p
)
{
return
(
fixedlen_regexeq
(
s
,
p
,
8
,
REG_EXTENDED
));
}
bool
char8regexne
(
char
*
s
,
struct
varlena
*
p
)
{
return
(
!
char8regexeq
(
s
,
p
));
}
bool
char16regexeq
(
char
*
s
,
struct
varlena
*
p
)
{
return
(
fixedlen_regexeq
(
s
,
p
,
16
,
REG_EXTENDED
));
}
bool
char16regexne
(
char
*
s
,
struct
varlena
*
p
)
{
return
(
!
char16regexeq
(
s
,
p
));
}
bool
nameregexeq
(
NameData
*
n
,
struct
varlena
*
p
)
{
...
...
@@ -288,59 +236,6 @@ textregexne(struct varlena * s, struct varlena * p)
* routines that use the regexp stuff, but ignore the case.
* for this, we use the REG_ICASE flag to pg95_regcomp
*/
bool
char2icregexeq
(
uint16
arg1
,
struct
varlena
*
p
)
{
char
*
s
=
(
char
*
)
&
arg1
;
return
(
fixedlen_regexeq
(
s
,
p
,
2
,
REG_ICASE
|
REG_EXTENDED
));
}
bool
char2icregexne
(
uint16
arg1
,
struct
varlena
*
p
)
{
return
(
!
char2icregexeq
(
arg1
,
p
));
}
bool
char4icregexeq
(
uint32
arg1
,
struct
varlena
*
p
)
{
char
*
s
=
(
char
*
)
&
arg1
;
return
(
fixedlen_regexeq
(
s
,
p
,
4
,
REG_ICASE
|
REG_EXTENDED
));
}
bool
char4icregexne
(
uint32
arg1
,
struct
varlena
*
p
)
{
return
(
!
char4icregexeq
(
arg1
,
p
));
}
bool
char8icregexeq
(
char
*
s
,
struct
varlena
*
p
)
{
return
(
fixedlen_regexeq
(
s
,
p
,
8
,
REG_ICASE
|
REG_EXTENDED
));
}
bool
char8icregexne
(
char
*
s
,
struct
varlena
*
p
)
{
return
(
!
char8icregexeq
(
s
,
p
));
}
bool
char16icregexeq
(
char
*
s
,
struct
varlena
*
p
)
{
return
(
fixedlen_regexeq
(
s
,
p
,
16
,
REG_ICASE
|
REG_EXTENDED
));
}
bool
char16icregexne
(
char
*
s
,
struct
varlena
*
p
)
{
return
(
!
char16icregexeq
(
s
,
p
));
}
bool
texticregexeq
(
struct
varlena
*
s
,
struct
varlena
*
p
)
{
...
...
src/backend/utils/adt/regproc.c
View file @
0d203b74
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/regproc.c,v 1.1
7 1998/04/07 18:11:34
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/regproc.c,v 1.1
8 1998/04/26 04:07:55
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -52,7 +52,7 @@ regprocin(char *proname)
ScanKeyEntryInitialize
(
&
key
,
(
bits16
)
0
,
(
AttrNumber
)
1
,
(
RegProcedure
)
F_
CHAR16
EQ
,
(
RegProcedure
)
F_
NAME
EQ
,
(
Datum
)
proname
);
procscan
=
heap_beginscan
(
proc
,
0
,
false
,
1
,
&
key
);
...
...
src/backend/utils/cache/catcache.c
View file @
0d203b74
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.2
6 1998/04/07 18:11:38
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.2
7 1998/04/26 04:08:01
momjian Exp $
*
* Notes:
* XXX This needs to use exception.h to handle recovery when
...
...
@@ -79,7 +79,7 @@ static int DisableCache;
* ----------------
*/
static
long
eqproc
[]
=
{
F_BOOLEQ
,
0l
,
F_CHAREQ
,
F_
CHAR16
EQ
,
0l
,
F_BOOLEQ
,
0l
,
F_CHAREQ
,
F_
NAME
EQ
,
0l
,
F_INT2EQ
,
F_KEYFIRSTEQ
,
F_INT4EQ
,
0l
,
F_TEXTEQ
,
F_OIDEQ
,
0l
,
0l
,
0l
,
F_OID8EQ
};
...
...
src/include/access/hash.h
View file @
0d203b74
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: hash.h,v 1.1
5 1998/04/07 18:12:0
1 momjian Exp $
* $Id: hash.h,v 1.1
6 1998/04/26 04:08:4
1 momjian Exp $
*
* NOTES
* modeled after Margo Seltzer's hash implementation for unix.
...
...
@@ -272,10 +272,6 @@ extern uint32 hashfloat4(float32 keyp);
extern
uint32
hashfloat8
(
float64
keyp
);
extern
uint32
hashoid
(
Oid
key
);
extern
uint32
hashchar
(
char
key
);
extern
uint32
hashchar2
(
uint16
intkey
);
extern
uint32
hashchar4
(
uint32
intkey
);
extern
uint32
hashchar8
(
char
*
key
);
extern
uint32
hashchar16
(
char
*
key
);
extern
uint32
hashtext
(
struct
varlena
*
key
);
extern
uint32
hashname
(
NameData
*
n
);
...
...
src/include/catalog/pg_amop.h
View file @
0d203b74
...
...
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_amop.h,v 1.1
1 1998/04/07 18:12:11
momjian Exp $
* $Id: pg_amop.h,v 1.1
2 1998/04/26 04:08:52
momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
...
...
@@ -197,36 +197,6 @@ DATA(insert OID = 0 ( 403 429 92 3 btreesel btreenpage ));
DATA
(
insert
OID
=
0
(
403
429
634
4
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
403
429
633
5
btreesel
btreenpage
));
/*
* nbtree char2_ops
*/
DATA
(
insert
OID
=
0
(
403
406
418
1
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
403
406
457
2
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
403
406
412
3
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
403
406
463
4
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
403
406
460
5
btreesel
btreenpage
));
/*
* nbtree char4_ops
*/
DATA
(
insert
OID
=
0
(
403
407
419
1
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
403
407
458
2
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
403
407
413
3
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
403
407
464
4
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
403
407
461
5
btreesel
btreenpage
));
/*
* nbtree char8_ops
*/
DATA
(
insert
OID
=
0
(
403
408
420
1
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
403
408
459
2
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
403
408
414
3
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
403
408
465
4
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
403
408
462
5
btreesel
btreenpage
));
/*
* nbtree name_ops
*/
...
...
@@ -237,16 +207,6 @@ DATA(insert OID = 0 ( 403 1181 93 3 btreesel btreenpage ));
DATA
(
insert
OID
=
0
(
403
1181
663
4
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
403
1181
662
5
btreesel
btreenpage
));
/*
* nbtree char16_ops
*/
DATA
(
insert
OID
=
0
(
403
430
645
1
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
403
430
646
2
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
403
430
1267
3
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
403
430
648
4
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
403
430
647
5
btreesel
btreenpage
));
/*
* nbtree text_ops
*/
...
...
@@ -441,46 +401,6 @@ DATA(insert OID = 0 ( 404 429 92 3 btreesel btreenpage ));
DATA
(
insert
OID
=
0
(
404
429
634
4
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
404
429
633
5
btreesel
btreenpage
));
/*
* nobtree char2_ops
*/
DATA
(
insert
OID
=
0
(
404
406
418
1
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
404
406
457
2
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
404
406
412
3
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
404
406
463
4
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
404
406
460
5
btreesel
btreenpage
));
/*
* nobtree char4_ops
*/
DATA
(
insert
OID
=
0
(
404
407
419
1
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
404
407
458
2
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
404
407
413
3
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
404
407
464
4
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
404
407
461
5
btreesel
btreenpage
));
/*
* nobtree char8_ops
*/
DATA
(
insert
OID
=
0
(
404
408
420
1
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
404
408
459
2
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
404
408
414
3
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
404
408
465
4
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
404
408
462
5
btreesel
btreenpage
));
/*
* nobtree char16_ops
*/
DATA
(
insert
OID
=
0
(
404
430
645
1
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
404
430
646
2
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
404
430
1267
3
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
404
430
648
4
btreesel
btreenpage
));
DATA
(
insert
OID
=
0
(
404
430
647
5
btreesel
btreenpage
));
/*
* nobtree name_ops
*/
...
...
@@ -551,14 +471,6 @@ DATA(insert OID = 0 ( 405 427 607 1 hashsel hashnpage ));
DATA
(
insert
OID
=
0
(
405
428
620
1
hashsel
hashnpage
));
/* char_ops */
DATA
(
insert
OID
=
0
(
405
429
92
1
hashsel
hashnpage
));
/* char2_ops */
DATA
(
insert
OID
=
0
(
405
406
412
1
hashsel
hashnpage
));
/* char4_ops */
DATA
(
insert
OID
=
0
(
405
407
413
1
hashsel
hashnpage
));
/* char8_ops */
DATA
(
insert
OID
=
0
(
405
408
414
1
hashsel
hashnpage
));
/* char16_ops */
DATA
(
insert
OID
=
0
(
405
430
1267
1
hashsel
hashnpage
));
/* name_ops */
DATA
(
insert
OID
=
0
(
405
1181
93
1
hashsel
hashnpage
));
/* text_ops */
...
...
src/include/catalog/pg_opclass.h
View file @
0d203b74
...
...
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_opclass.h,v 1.
8 1998/04/07 18:12:16
momjian Exp $
* $Id: pg_opclass.h,v 1.
9 1998/04/26 04:09:00
momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
...
...
@@ -62,12 +62,6 @@ typedef FormData_pg_opclass *Form_pg_opclass;
* (see the README in this directory), so just put zeros
* in, which are invalid OID's anyway. --djm
*/
DATA
(
insert
OID
=
406
(
char2_ops
409
));
DESCR
(
""
);
DATA
(
insert
OID
=
407
(
char4_ops
410
));
DESCR
(
""
);
DATA
(
insert
OID
=
408
(
char8_ops
411
));
DESCR
(
""
);
DATA
(
insert
OID
=
1181
(
name_ops
19
));
DESCR
(
""
);
DATA
(
insert
OID
=
421
(
int2_ops
21
));
...
...
@@ -89,8 +83,6 @@ DATA(insert OID = 428 ( float4_ops 700 ));
DESCR
(
""
);
DATA
(
insert
OID
=
429
(
char_ops
18
));
DESCR
(
""
);
DATA
(
insert
OID
=
430
(
char16_ops
20
));
DESCR
(
""
);
DATA
(
insert
OID
=
431
(
text_ops
25
));
DESCR
(
""
);
DATA
(
insert
OID
=
432
(
abstime_ops
702
));
...
...
src/include/catalog/pg_operator.h
View file @
0d203b74
...
...
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_operator.h,v 1.
29 1998/04/07 18:12:22
momjian Exp $
* $Id: pg_operator.h,v 1.
30 1998/04/26 04:09:06
momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
...
...
@@ -102,7 +102,6 @@ DATA(insert OID = 96 ( "=" PGUID 0 b t t 23 23 16 96 518 97 97 int4eq eq
DATA
(
insert
OID
=
97
(
"<"
PGUID
0
b
t
f
23
23
16
521
525
0
0
int4lt
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
98
(
"="
PGUID
0
b
t
t
25
25
16
98
531
664
664
texteq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
1267
(
"="
PGUID
0
b
t
t
20
20
16
1267
644
645
645
char16eq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
329
(
"="
PGUID
0
b
t
t
1000
1000
16
329
0
0
0
array_eq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
349
(
"="
PGUID
0
b
t
t
1001
1001
16
349
0
0
0
array_eq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
374
(
"="
PGUID
0
b
t
t
1002
1002
16
374
0
0
0
array_eq
eqsel
eqjoinsel
));
...
...
@@ -136,27 +135,6 @@ DATA(insert OID = 399 ( "=" PGUID 0 b t t 1026 1026 16 399 0 0 0 array_e
DATA
(
insert
OID
=
400
(
"="
PGUID
0
b
t
t
1027
1027
16
400
0
0
0
array_eq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
401
(
"="
PGUID
0
b
t
t
1034
1034
16
401
0
0
0
array_eq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
412
(
"="
PGUID
0
b
t
t
409
409
16
412
415
418
418
char2eq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
413
(
"="
PGUID
0
b
t
t
410
410
16
413
416
419
419
char4eq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
414
(
"="
PGUID
0
b
t
t
411
411
16
414
417
420
420
char8eq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
415
(
"<>"
PGUID
0
b
t
f
409
409
16
415
412
0
0
char2ne
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
416
(
"<>"
PGUID
0
b
t
f
410
410
16
416
413
0
0
char4ne
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
417
(
"<>"
PGUID
0
b
t
f
411
411
16
417
414
0
0
char8ne
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
418
(
"<"
PGUID
0
b
t
f
409
409
16
460
463
0
0
char2lt
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
419
(
"<"
PGUID
0
b
t
f
410
410
16
461
464
0
0
char4lt
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
420
(
"<"
PGUID
0
b
t
f
411
411
16
462
465
0
0
char8lt
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
457
(
"<="
PGUID
0
b
t
f
409
409
16
463
460
0
0
char2le
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
458
(
"<="
PGUID
0
b
t
f
410
410
16
464
461
0
0
char4le
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
459
(
"<="
PGUID
0
b
t
f
411
411
16
465
462
0
0
char8le
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
460
(
">"
PGUID
0
b
t
f
409
409
16
418
457
0
0
char2gt
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
461
(
">"
PGUID
0
b
t
f
410
410
16
419
458
0
0
char4gt
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
462
(
">"
PGUID
0
b
t
f
411
411
16
420
459
0
0
char8gt
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
463
(
">="
PGUID
0
b
t
f
409
409
16
457
418
0
0
char2ge
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
464
(
">="
PGUID
0
b
t
f
410
410
16
458
418
0
0
char4ge
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
465
(
">="
PGUID
0
b
t
f
411
411
16
459
420
0
0
char8ge
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
485
(
"<<"
PGUID
0
b
t
f
604
604
16
0
0
0
0
poly_left
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
486
(
"&<"
PGUID
0
b
t
f
604
604
16
0
0
0
0
poly_overleft
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
487
(
"&>"
PGUID
0
b
t
f
604
604
16
0
0
0
0
poly_overright
intltsel
intltjoinsel
));
...
...
@@ -319,15 +297,6 @@ DATA(insert OID = 640 ( "!~" PGUID 0 b t f 19 25 16 0 639 0 0 nameregexne
DATA
(
insert
OID
=
641
(
"~"
PGUID
0
b
t
f
25
25
16
0
642
0
0
textregexeq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
642
(
"!~"
PGUID
0
b
t
f
25
25
16
0
641
0
0
textregexne
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
643
(
"<>"
PGUID
0
b
t
f
19
19
16
643
93
0
0
namene
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
644
(
"<>"
PGUID
0
b
t
f
20
20
16
644
1267
0
0
char16ne
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
645
(
"<"
PGUID
0
b
t
f
20
20
16
647
648
0
0
char16lt
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
646
(
"<="
PGUID
0
b
t
f
20
20
16
648
647
0
0
char16le
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
647
(
">"
PGUID
0
b
t
f
20
20
16
645
646
0
0
char16gt
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
648
(
">="
PGUID
0
b
t
f
20
20
16
646
645
0
0
char16ge
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
649
(
"~"
PGUID
0
b
t
f
20
25
16
0
650
0
0
char16regexeq
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
650
(
"!~"
PGUID
0
b
t
f
20
25
16
650
0
0
0
char16regexne
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
651
(
"~~"
PGUID
0
b
t
f
20
25
16
0
651
0
0
char16like
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
652
(
"!~~"
PGUID
0
b
t
f
20
25
16
651
0
0
0
char16nlike
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
654
(
"||"
PGUID
0
b
t
f
25
25
25
0
0
0
0
textcat
-
-
));
DATA
(
insert
OID
=
660
(
"<"
PGUID
0
b
t
f
19
19
16
662
663
0
0
namelt
intltsel
intltjoinsel
));
...
...
@@ -353,9 +322,6 @@ DATA(insert OID = 679 ( ">=" PGUID 0 b t f 911 911 16 677 676 0 0 oidnameg
DATA
(
insert
OID
=
680
(
">"
PGUID
0
b
t
f
911
911
16
676
677
0
0
oidnamegt
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
681
(
"<>"
PGUID
0
b
t
f
911
911
16
681
678
0
0
oidnamene
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
697
(
"~"
PGUID
0
b
t
f
411
25
16
0
698
0
0
char8regexeq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
698
(
"!~"
PGUID
0
b
t
f
411
25
16
0
697
0
0
char8regexne
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
706
(
"<->"
PGUID
0
b
t
f
603
603
701
706
0
0
0
box_distance
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
707
(
"<->"
PGUID
0
b
t
f
602
602
701
707
0
0
0
path_distance
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
708
(
"<->"
PGUID
0
b
t
f
628
628
701
708
0
0
0
line_distance
intltsel
intltjoinsel
));
...
...
@@ -413,11 +379,6 @@ DATA(insert OID = 833 ( ">=" PGUID 0 b t f 810 810 16 831 830 0 0 oidint2g
DATA
(
insert
OID
=
834
(
">"
PGUID
0
b
t
f
810
810
16
830
831
0
0
oidint2gt
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
835
(
"<>"
PGUID
0
b
t
f
810
810
16
835
832
0
0
oidint2ne
intltsel
intltjoinsel
));
DATA
(
insert
OID
=
839
(
"~"
PGUID
0
b
t
f
409
25
16
0
841
0
0
char2regexeq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
841
(
"!~"
PGUID
0
b
t
f
409
25
16
0
839
0
0
char2regexne
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
840
(
"~"
PGUID
0
b
t
f
410
25
16
0
842
0
0
char4regexeq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
842
(
"!~"
PGUID
0
b
t
f
410
25
16
0
840
0
0
char4regexne
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
843
(
"*"
PGUID
0
b
t
f
790
700
790
845
0
0
0
cash_mul_flt4
-
-
));
DATA
(
insert
OID
=
844
(
"/"
PGUID
0
b
t
f
790
700
790
0
0
0
0
cash_div_flt4
-
-
));
DATA
(
insert
OID
=
845
(
"*"
PGUID
0
b
t
f
700
790
790
843
0
0
0
flt4_mul_cash
-
-
));
...
...
@@ -526,12 +487,6 @@ DATA(insert OID = 1136 ( "=" PGUID 0 b t t 23 26 16 1137 0 0 0 int4eqoid eqsel
DATA
(
insert
OID
=
1137
(
"="
PGUID
0
b
t
t
26
23
16
1136
0
0
0
oideqint4
eqsel
eqjoinsel
));
/* LIKE hacks by Keith Parks. */
DATA
(
insert
OID
=
1201
(
"~~"
PGUID
0
b
t
f
409
25
16
0
1202
0
0
char2like
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
1202
(
"!~~"
PGUID
0
b
t
f
409
25
16
0
1201
0
0
char2nlike
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
1203
(
"~~"
PGUID
0
b
t
f
410
25
16
0
1204
0
0
char4like
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
1204
(
"!~~"
PGUID
0
b
t
f
410
25
16
0
1203
0
0
char4nlike
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
1205
(
"~~"
PGUID
0
b
t
f
411
25
16
0
1206
0
0
char8like
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
1206
(
"!~~"
PGUID
0
b
t
f
411
25
16
0
1205
0
0
char8nlike
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
1207
(
"~~"
PGUID
0
b
t
f
19
25
16
0
1208
0
0
namelike
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
1208
(
"!~~"
PGUID
0
b
t
f
19
25
16
0
1207
0
0
namenlike
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
1209
(
"~~"
PGUID
0
b
t
f
25
25
16
0
1210
0
0
textlike
eqsel
eqjoinsel
));
...
...
@@ -542,18 +497,10 @@ DATA(insert OID = 1213 ( "~~" PGUID 0 b t f 1043 25 16 0 1214 0 0 textlike
DATA
(
insert
OID
=
1214
(
"!~~"
PGUID
0
b
t
f
1043
25
16
0
1213
0
0
textnlike
neqsel
neqjoinsel
));
/* case-insensitive LIKE hacks */
DATA
(
insert
OID
=
1220
(
"~*"
PGUID
0
b
t
f
409
25
16
0
1221
0
0
char2icregexeq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
1221
(
"!~*"
PGUID
0
b
t
f
409
25
16
0
1220
0
0
char2icregexne
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
1222
(
"~*"
PGUID
0
b
t
f
410
25
16
0
1223
0
0
char4icregexeq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
1223
(
"!~*"
PGUID
0
b
t
f
410
25
16
0
1222
0
0
char4icregexne
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
1224
(
"~*"
PGUID
0
b
t
f
411
25
16
0
1225
0
0
char8icregexeq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
1225
(
"!~*"
PGUID
0
b
t
f
411
25
16
0
1224
0
0
char8icregexne
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
1226
(
"~*"
PGUID
0
b
t
f
19
25
16
0
1227
0
0
nameicregexeq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
1227
(
"!~*"
PGUID
0
b
t
f
19
25
16
0
1226
0
0
nameicregexne
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
1228
(
"~*"
PGUID
0
b
t
f
25
25
16
0
1229
0
0
texticregexeq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
1229
(
"!~*"
PGUID
0
b
t
f
25
25
16
0
1228
0
0
texticregexne
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
1230
(
"~*"
PGUID
0
b
t
f
20
25
16
0
1231
0
0
char16icregexeq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
1231
(
"!~*"
PGUID
0
b
t
f
20
25
16
0
1230
0
0
char16icregexne
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
1232
(
"~*"
PGUID
0
b
t
f
1043
25
16
0
1233
0
0
texticregexeq
eqsel
eqjoinsel
));
DATA
(
insert
OID
=
1233
(
"!~*"
PGUID
0
b
t
f
1043
25
16
0
1232
0
0
texticregexne
neqsel
neqjoinsel
));
DATA
(
insert
OID
=
1234
(
"~*"
PGUID
0
b
t
f
1042
25
16
0
1235
0
0
texticregexeq
eqsel
eqjoinsel
));
...
...
src/include/catalog/pg_proc.h
View file @
0d203b74
This diff is collapsed.
Click to expand it.
src/include/catalog/pg_type.h
View file @
0d203b74
...
...
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_type.h,v 1.3
7 1998/04/07 18:12:28
momjian Exp $
* $Id: pg_type.h,v 1.3
8 1998/04/26 04:09:16
momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
...
...
@@ -166,8 +166,6 @@ DATA(insert OID = 19 ( name PGUID NAMEDATALEN NAMEDATALEN f b t \054 0 18 na
DESCR
(
"31-character type for storing system identifiers"
);
#define NAMEOID 19
DATA
(
insert
OID
=
20
(
char16
PGUID
16
16
f
b
t
\
054
0
18
char16in
char16out
char16in
char16out
i
_null_
));
DESCR
(
"16 characters, fixed length"
);
DATA
(
insert
OID
=
21
(
int2
PGUID
2
5
t
b
t
\
054
0
0
int2in
int2out
int2in
int2out
s
_null_
));
DESCR
(
"two-byte integer, -32k to 32k"
);
#define INT2OID 21
...
...
@@ -232,12 +230,6 @@ DESCR("storage manager");
/* OIDS 300 - 399 */
/* OIDS 400 - 499 */
DATA
(
insert
OID
=
409
(
char2
PGUID
2
2
t
b
t
\
054
0
18
char2in
char2out
char2in
char2out
s
_null_
));
DESCR
(
"2 characters"
);
DATA
(
insert
OID
=
410
(
char4
PGUID
4
4
t
b
t
\
054
0
18
char4in
char4out
char4in
char4out
i
_null_
));
DESCR
(
"4 characters"
);
DATA
(
insert
OID
=
411
(
char8
PGUID
8
8
f
b
t
\
054
0
18
char8in
char8out
char8in
char8out
i
_null_
));
DESCR
(
"8 characters"
);
/* OIDS 500 - 599 */
...
...
@@ -301,7 +293,6 @@ DATA(insert OID = 1000 ( _bool PGUID -1 -1 f b t \054 0 16 array_in array_ou
DATA
(
insert
OID
=
1001
(
_bytea
PGUID
-
1
-
1
f
b
t
\
054
0
17
array_in
array_out
array_in
array_out
i
_null_
));
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
=
1004
(
_char16
PGUID
-
1
-
1
f
b
t
\
054
0
20
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
(
_int28
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_
));
...
...
@@ -331,10 +322,6 @@ DATA(insert OID = 1033 ( aclitem PGUID 8 -1 f b t \054 0 0 aclitemin aclitem
DESCR
(
"access control list"
);
DATA
(
insert
OID
=
1034
(
_aclitem
PGUID
-
1
-
1
f
b
t
\
054
0
1033
array_in
array_out
array_in
array_out
i
_null_
));
DATA
(
insert
OID
=
1039
(
_char2
PGUID
-
1
-
1
f
b
t
\
054
0
409
array_in
array_out
array_in
array_out
i
_null_
));
DATA
(
insert
OID
=
1040
(
_char4
PGUID
-
1
-
1
f
b
t
\
054
0
410
array_in
array_out
array_in
array_out
i
_null_
));
DATA
(
insert
OID
=
1041
(
_char8
PGUID
-
1
-
1
f
b
t
\
054
0
411
array_in
array_out
array_in
array_out
i
_null_
));
DATA
(
insert
OID
=
1042
(
bpchar
PGUID
-
1
-
1
f
b
t
\
054
0
18
bpcharin
bpcharout
bpcharin
bpcharout
i
_null_
));
DESCR
(
"blank-padded characters, length specifed when created"
);
#define BPCHAROID 1042
...
...
src/include/postgres.h
View file @
0d203b74
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1995, Regents of the University of California
*
* $Id: postgres.h,v 1.1
5 1998/04/07 18:11:53
momjian Exp $
* $Id: postgres.h,v 1.1
6 1998/04/26 04:08:18
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -19,7 +19,7 @@
* Oid regproc RegProcedure
* aclitem
* struct varlena
*
char8 char16
int28 oid8
* int28 oid8
* bytea text
* NameData Name
* oidint4 oidint2 oidname
...
...
@@ -88,22 +88,6 @@ struct varlena
typedef
struct
varlena
bytea
;
typedef
struct
varlena
text
;
typedef
struct
char8
{
char
data
[
8
];
}
char8
;
/* ----------------
* char16
* ----------------
*/
typedef
struct
char16
{
char
data
[
16
];
}
char16
;
typedef
char16
*
Char16
;
typedef
int2
int28
[
8
];
typedef
Oid
oid8
[
8
];
...
...
src/include/utils/builtins.h
View file @
0d203b74
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: builtins.h,v 1.
39 1998/04/07 18:12:3
5 momjian Exp $
* $Id: builtins.h,v 1.
40 1998/04/26 04:09:2
5 momjian Exp $
*
* NOTES
* This should normally only be included by fmgr.h.
...
...
@@ -43,8 +43,6 @@ extern int32 charin(char *ch);
extern
char
*
charout
(
int32
ch
);
extern
int32
cidin
(
char
*
s
);
extern
char
*
cidout
(
int32
c
);
extern
char
*
char16in
(
char
*
s
);
extern
char
*
char16out
(
char
*
s
);
extern
bool
chareq
(
int8
arg1
,
int8
arg2
);
extern
bool
charne
(
int8
arg1
,
int8
arg2
);
extern
bool
charlt
(
int8
arg1
,
int8
arg2
);
...
...
@@ -56,39 +54,6 @@ extern int8 charmi(int8 arg1, int8 arg2);
extern
int8
charmul
(
int8
arg1
,
int8
arg2
);
extern
int8
chardiv
(
int8
arg1
,
int8
arg2
);
extern
bool
cideq
(
int8
arg1
,
int8
arg2
);
extern
bool
char16eq
(
char
*
arg1
,
char
*
arg2
);
extern
bool
char16ne
(
char
*
arg1
,
char
*
arg2
);
extern
bool
char16lt
(
char
*
arg1
,
char
*
arg2
);
extern
bool
char16le
(
char
*
arg1
,
char
*
arg2
);
extern
bool
char16gt
(
char
*
arg1
,
char
*
arg2
);
extern
bool
char16ge
(
char
*
arg1
,
char
*
arg2
);
extern
uint16
char2in
(
char
*
s
);
extern
char
*
char2out
(
uint16
s
);
extern
bool
char2eq
(
uint16
a
,
uint16
b
);
extern
bool
char2ne
(
uint16
a
,
uint16
b
);
extern
bool
char2lt
(
uint16
a
,
uint16
b
);
extern
bool
char2le
(
uint16
a
,
uint16
b
);
extern
bool
char2gt
(
uint16
a
,
uint16
b
);
extern
bool
char2ge
(
uint16
a
,
uint16
b
);
extern
int32
char2cmp
(
uint16
a
,
uint16
b
);
extern
uint32
char4in
(
char
*
s
);
extern
char
*
char4out
(
uint32
s
);
extern
bool
char4eq
(
uint32
a
,
uint32
b
);
extern
bool
char4ne
(
uint32
a
,
uint32
b
);
extern
bool
char4lt
(
uint32
a
,
uint32
b
);
extern
bool
char4le
(
uint32
a
,
uint32
b
);
extern
bool
char4gt
(
uint32
a
,
uint32
b
);
extern
bool
char4ge
(
uint32
a
,
uint32
b
);
extern
int32
char4cmp
(
uint32
a
,
uint32
b
);
extern
char
*
char8in
(
char
*
s
);
extern
char
*
char8out
(
char
*
s
);
extern
bool
char8eq
(
char
*
arg1
,
char
*
arg2
);
extern
bool
char8ne
(
char
*
arg1
,
char
*
arg2
);
extern
bool
char8lt
(
char
*
arg1
,
char
*
arg2
);
extern
bool
char8le
(
char
*
arg1
,
char
*
arg2
);
extern
bool
char8gt
(
char
*
arg1
,
char
*
arg2
);
extern
bool
char8ge
(
char
*
arg1
,
char
*
arg2
);
extern
int32
char8cmp
(
char
*
arg1
,
char
*
arg2
);
/* int.c */
extern
int32
int2in
(
char
*
num
);
...
...
@@ -197,10 +162,6 @@ extern int32 btfloat8cmp(float64 a, float64 b);
extern
int32
btoidcmp
(
Oid
a
,
Oid
b
);
extern
int32
btabstimecmp
(
AbsoluteTime
a
,
AbsoluteTime
b
);
extern
int32
btcharcmp
(
char
a
,
char
b
);
extern
int32
btchar2cmp
(
uint16
a
,
uint16
b
);
extern
int32
btchar4cmp
(
uint32
a
,
uint32
b
);
extern
int32
btchar8cmp
(
char
*
a
,
char
*
b
);
extern
int32
btchar16cmp
(
char
*
a
,
char
*
b
);
extern
int32
btnamecmp
(
NameData
*
a
,
NameData
*
b
);
extern
int32
bttextcmp
(
struct
varlena
*
a
,
struct
varlena
*
b
);
...
...
@@ -374,26 +335,10 @@ extern text *oid_text(Oid arg1);
extern
Oid
text_oid
(
text
*
arg1
);
/* regexp.c */
extern
bool
char2regexeq
(
uint16
arg1
,
struct
varlena
*
p
);
extern
bool
char2regexne
(
uint16
arg1
,
struct
varlena
*
p
);
extern
bool
char4regexeq
(
uint32
arg1
,
struct
varlena
*
p
);
extern
bool
char4regexne
(
uint32
arg1
,
struct
varlena
*
p
);
extern
bool
char8regexeq
(
char
*
s
,
struct
varlena
*
p
);
extern
bool
char8regexne
(
char
*
s
,
struct
varlena
*
p
);
extern
bool
char16regexeq
(
char
*
s
,
struct
varlena
*
p
);
extern
bool
char16regexne
(
char
*
s
,
struct
varlena
*
p
);
extern
bool
nameregexeq
(
NameData
*
n
,
struct
varlena
*
p
);
extern
bool
nameregexne
(
NameData
*
s
,
struct
varlena
*
p
);
extern
bool
textregexeq
(
struct
varlena
*
s
,
struct
varlena
*
p
);
extern
bool
textregexne
(
struct
varlena
*
s
,
struct
varlena
*
p
);
extern
bool
char2icregexeq
(
uint16
arg1
,
struct
varlena
*
p
);
extern
bool
char2icregexne
(
uint16
arg1
,
struct
varlena
*
p
);
extern
bool
char4icregexeq
(
uint32
arg1
,
struct
varlena
*
p
);
extern
bool
char4icregexne
(
uint32
arg1
,
struct
varlena
*
p
);
extern
bool
char8icregexeq
(
char
*
s
,
struct
varlena
*
p
);
extern
bool
char8icregexne
(
char
*
s
,
struct
varlena
*
p
);
extern
bool
char16icregexeq
(
char
*
s
,
struct
varlena
*
p
);
extern
bool
char16icregexne
(
char
*
s
,
struct
varlena
*
p
);
extern
bool
nameicregexeq
(
NameData
*
s
,
struct
varlena
*
p
);
extern
bool
nameicregexne
(
NameData
*
s
,
struct
varlena
*
p
);
extern
bool
texticregexeq
(
struct
varlena
*
s
,
struct
varlena
*
p
);
...
...
@@ -524,14 +469,6 @@ extern TimeADT *datetime_time(DateTime *datetime);
extern
int32
int42reltime
(
int32
timevalue
);
/* like.c */
extern
bool
char2like
(
uint16
arg1
,
struct
varlena
*
p
);
extern
bool
char2nlike
(
uint16
arg1
,
struct
varlena
*
p
);
extern
bool
char4like
(
uint32
arg1
,
struct
varlena
*
p
);
extern
bool
char4nlike
(
uint32
arg1
,
struct
varlena
*
p
);
extern
bool
char8like
(
char
*
s
,
struct
varlena
*
p
);
extern
bool
char8nlike
(
char
*
s
,
struct
varlena
*
p
);
extern
bool
char16like
(
char
*
s
,
struct
varlena
*
p
);
extern
bool
char16nlike
(
char
*
s
,
struct
varlena
*
p
);
extern
bool
namelike
(
NameData
*
n
,
struct
varlena
*
p
);
extern
bool
namenlike
(
NameData
*
s
,
struct
varlena
*
p
);
extern
bool
textlike
(
struct
varlena
*
s
,
struct
varlena
*
p
);
...
...
src/include/utils/oidcompos.h
View file @
0d203b74
/*-------------------------------------------------------------------------
*
* oidcompos.h--
* prototype file for the oid {
char16
,int4} composite type functions.
* prototype file for the oid {
name
,int4} composite type functions.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: oidcompos.h,v 1.
5 1998/04/07 18:12:36
momjian Exp $
* $Id: oidcompos.h,v 1.
6 1998/04/26 04:09:28
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
src/include/version.h
View file @
0d203b74
...
...
@@ -4,7 +4,7 @@
* this file contains the interface to version.c.
* Also some parameters.
*
* $Id: version.h,v 1.
7 1997/10/30 22:09:04
momjian Exp $
* $Id: version.h,v 1.
8 1998/04/26 04:08:29
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -18,7 +18,7 @@ void
SetPgVersion
(
const
char
*
path
,
char
**
reason_p
);
#define PG_RELEASE 6
#define PG_VERSION
3
#define PG_VERSION
4
#define PG_VERFILE "PG_VERSION"
#endif
src/man/bki.5
View file @
0d203b74
.\" This is -*-nroff-*-
.\" $Header: /cvsroot/pgsql/src/man/Attic/bki.5,v 1.
3 1998/04/07 18:12:50
momjian Exp $
.\" $Header: /cvsroot/pgsql/src/man/Attic/bki.5,v 1.
4 1998/04/26 04:09:35
momjian Exp $
.TH BKI 5 11/04/96 Postgres Postgres
.SH NAME
*.bki
...
...
@@ -207,7 +207,7 @@ collection as object
.IR 421,
print out the class, and then close it.
.nf
create pg_opclass (opcname=
char16
)
create pg_opclass (opcname=
name
)
open pg_opclass
insert oid=421 (int_ops)
print
...
...
src/man/create_function.l
View file @
0d203b74
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/src/man/Attic/create_function.l,v 1.
7 1998/04/07 18:12:51
momjian Exp $
.\" $Header: /cvsroot/pgsql/src/man/Attic/create_function.l,v 1.
8 1998/04/26 04:09:37
momjian Exp $
.TH "CREATE FUNCTION" SQL 11/05/95 PostgreSQL PostgreSQL
.SH "NAME"
create function - define a new function
...
...
@@ -138,7 +138,6 @@ bool bool include/c.h
box (BOX *) utils/geo-decls.h
bytea (bytea *) include/postgres.h
char char N/A
char16 Char16 or (char16 *) include/postgres.h
cid CID include/postgres.h
int2 int2 include/postgres.h
int28 (int28 *) include/postgres.h
...
...
src/man/create_index.l
View file @
0d203b74
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/src/man/Attic/create_index.l,v 1.1
0 1998/04/07 18:12:52
momjian Exp $
.\" $Header: /cvsroot/pgsql/src/man/Attic/create_index.l,v 1.1
1 1998/04/26 04:09:39
momjian Exp $
.TH "CREATE INDEX" SQL 11/05/95 PostgreSQL PostgreSQL
.SH NAME
create index - construct a secondary index
...
...
@@ -99,26 +99,6 @@ btree |bpchar_ops |<=
btree |bpchar_ops |=
btree |bpchar_ops |>
btree |bpchar_ops |>=
btree |char16_ops |<
btree |char16_ops |<=
btree |char16_ops |=
btree |char16_ops |>
btree |char16_ops |>=
btree |char2_ops |<
btree |char2_ops |<=
btree |char2_ops |=
btree |char2_ops |>
btree |char2_ops |>=
btree |char4_ops |<
btree |char4_ops |<=
btree |char4_ops |=
btree |char4_ops |>
btree |char4_ops |>=
btree |char8_ops |<
btree |char8_ops |<=
btree |char8_ops |=
btree |char8_ops |>
btree |char8_ops |>=
btree |char_ops |<
btree |char_ops |<=
btree |char_ops |=
...
...
@@ -200,10 +180,6 @@ btree |varchar_ops|=
btree |varchar_ops|>
btree |varchar_ops|>=
hash |bpchar_ops |=
hash |char16_ops |=
hash |char2_ops |=
hash |char4_ops |=
hash |char8_ops |=
hash |char_ops |=
hash |date_ops |=
hash |float4_ops |=
...
...
@@ -254,7 +230,7 @@ The operator classes
.IR oidint2_ops ,
.IR oidint4_ops ,
and
.IR oid
char16
_ops
.IR oid
name
_ops
represent the use of
.IR "functional indices"
to simulate multi-key indices.
...
...
@@ -300,7 +276,7 @@ create index empindex on emp using btree (age int4_ops)
--Create a btree index on employee name.
--
create index empname
on emp using btree (name
char16
_ops)
on emp using btree (name
name
_ops)
.fi
.nf
--
...
...
src/man/create_rule.l
View file @
0d203b74
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/src/man/Attic/create_rule.l,v 1.
6 1998/04/07 18:12:53
momjian Exp $
.\" $Header: /cvsroot/pgsql/src/man/Attic/create_rule.l,v 1.
7 1998/04/26 04:09:42
momjian Exp $
.TH "CREATE RULE" SQL 11/05/95 PostgreSQL PostgreSQL
.SH NAME
create rule - define a new rule
...
...
@@ -183,7 +183,7 @@ create rule example_3 is
--
--Create a view of the employees working in the toy department.
--
create TOYEMP(name =
char16
, salary = int4)
create TOYEMP(name =
name
, salary = int4)
create rule example_4 is
on select to TOYEMP
...
...
src/man/create_table.l
View file @
0d203b74
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/src/man/Attic/create_table.l,v 1.1
6 1998/04/07 18:12:54
momjian Exp $
.\" $Header: /cvsroot/pgsql/src/man/Attic/create_table.l,v 1.1
7 1998/04/26 04:09:43
momjian Exp $
.TH "CREATE TABLE" SQL 09/25/97 PostgreSQL
.SH NAME
create table - create a new class
...
...
@@ -78,14 +78,14 @@ name as a system catalog class.
--
-- Create class emp with attributes name, sal and bdate
--
create table emp (name
char16
, salary float4, bdate abstime)
create table emp (name
name
, salary float4, bdate abstime)
.fi
.nf
--
--Create class permemp with pension information that
--inherits all fields of emp
--
create table permemp (plan
char16
) inherits (emp)
create table permemp (plan
name
) inherits (emp)
.fi
.nf
--
...
...
src/man/libpq.3
View file @
0d203b74
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/src/man/Attic/libpq.3,v 1.1
5 1998/04/07 18:12:56
momjian Exp $
.\" $Header: /cvsroot/pgsql/src/man/Attic/libpq.3,v 1.1
6 1998/04/26 04:09:48
momjian Exp $
.TH LIBPQ INTRO 03/12/94 PostgreSQL PostgreSQL
.SH DESCRIPTION
Libpq is the programmer's interface to Postgres. Libpq is a set of
...
...
@@ -556,7 +556,7 @@ int PQendcopy(PGconn *conn);
.fi
As an example:
.nf
PQexec(conn, "create table foo (a int4, b
char16
, d float8)");
PQexec(conn, "create table foo (a int4, b
name
, d float8)");
PQexec(conn, "copy foo from stdin");
PQputline(conn, "3<TAB>hello world<TAB>4.5\en");
PQputline(conn,"4<TAB>goodbye world<TAB>7.11\en");
...
...
src/man/sql.l
View file @
0d203b74
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/src/man/Attic/sql.l,v 1.1
0 1998/04/07 18:12:57
momjian Exp $
.\" $Header: /cvsroot/pgsql/src/man/Attic/sql.l,v 1.1
1 1998/04/26 04:09:51
momjian Exp $
.TH INTRODUCTION SQL 11/5/95 PostgreSQL PostgreSQL
.SH "Section 4 - SQL Commands (COMMANDS)"
.SH "General Information"
...
...
@@ -219,7 +219,7 @@ parameter is:
.fi
For example, consider the definition of a function, DEPT, as
.nf
create function DEPT (
char16
)
create function DEPT (
name
)
returns dept
as 'select * from
dept where name=$1'
...
...
src/test/bench/create.source
View file @
0d203b74
create table onek(unique1 int4,unique2 int4,two int4,four int4,ten int4,twenty int4, hundred int4,thousand int4,twothousand int4,fivethous int4,tenthous int4,odd int4, even int4,stringu1
char16,stringu2 char16,string4 char16
);
create table tenk1 (unique1 int4,unique2 int4, two int4,four int4,ten int4,twenty int4,hundred int4,thousand int4,twothousand int4,fivethous int4,tenthous int4,odd int4,even int4,stringu1
char16,stringu2 char16,string4 char16
);
create table tenk2 (unique1 int4, unique2 int4, two int4, four int4,ten int4, twenty int4, hundred int4, thousand int4, twothousand int4,fivethous int4, tenthous int4, odd int4, even int4,stringu1
char16,stringu2 char16, string4 char16
);
create table onek(unique1 int4,unique2 int4,two int4,four int4,ten int4,twenty int4, hundred int4,thousand int4,twothousand int4,fivethous int4,tenthous int4,odd int4, even int4,stringu1
name,stringu2 name,string4 name
);
create table tenk1 (unique1 int4,unique2 int4, two int4,four int4,ten int4,twenty int4,hundred int4,thousand int4,twothousand int4,fivethous int4,tenthous int4,odd int4,even int4,stringu1
name,stringu2 name,string4 name
);
create table tenk2 (unique1 int4, unique2 int4, two int4, four int4,ten int4, twenty int4, hundred int4, thousand int4, twothousand int4,fivethous int4, tenthous int4, odd int4, even int4,stringu1
name,stringu2 name, string4 name
);
copy onek from '_CWD_/../regress/data/onek.data';
copy tenk1 from '_CWD_/../regress/data/tenk.data';
copy tenk2 from '_CWD_/../regress/data/tenk.data';
...
...
src/test/regress/expected/alter_table.out
View file @
0d203b74
QUERY: CREATE TABLE temp (initial int4);
QUERY: ALTER TABLE temp ADD COLUMN a int4;
QUERY: ALTER TABLE temp ADD COLUMN b
char16
;
QUERY: ALTER TABLE temp ADD COLUMN b
name
;
QUERY: ALTER TABLE temp ADD COLUMN c text;
QUERY: ALTER TABLE temp ADD COLUMN d float8;
QUERY: ALTER TABLE temp ADD COLUMN e float4;
...
...
@@ -27,12 +27,12 @@ QUERY: ALTER TABLE temp ADD COLUMN y float4[];
QUERY: ALTER TABLE temp ADD COLUMN z int2[];
QUERY: INSERT INTO temp (a, b, c, d, e, f, g, h, i, j, k, l, m, n, p, q, r, s, t, u,
v, w, x, y, z)
VALUES (4, '
char16
', 'text', 4.1, 4.1, 2, '(4.1,4.1,3.1,3.1)',
VALUES (4, '
name
', 'text', 4.1, 4.1, 2, '(4.1,4.1,3.1,3.1)',
'Mon May 1 00:30:30 1995', 'c', '{Mon May 1 00:30:30 1995, Monday Aug 24 14:43:07 1992, epoch}',
314159, '(1,1)', 512,
'1 2 3 4 5 6 7 8', 'magnetic disk', '(1.1,1.1)', '(4.1,4.1,3.1,3.1)',
'(0,2,4.1,4.1,3.1,3.1)', '(4.1,4.1,3.1,3.1)', '["current" "infinity"]',
'1/3', '1,
char16
', '{1.0,2.0,3.0,4.0}', '{1.0,2.0,3.0,4.0}', '{1,2,3,4}');
'1/3', '1,
name
', '{1.0,2.0,3.0,4.0}', '{1.0,2.0,3.0,4.0}', '{1,2,3,4}');
ERROR: Relation temp does not have attribute k
QUERY: SELECT * FROM temp;
initial|a|b|c|d|e|f|g|h|i|j|l|m|n|p|q|r|s|t|u|v|w|x|y|z
...
...
@@ -44,7 +44,7 @@ QUERY: CREATE TABLE temp (
initial int4
);
QUERY: ALTER TABLE temp ADD COLUMN a int4;
QUERY: ALTER TABLE temp ADD COLUMN b
char16
;
QUERY: ALTER TABLE temp ADD COLUMN b
name
;
QUERY: ALTER TABLE temp ADD COLUMN c text;
QUERY: ALTER TABLE temp ADD COLUMN d float8;
QUERY: ALTER TABLE temp ADD COLUMN e float4;
...
...
@@ -71,12 +71,12 @@ QUERY: ALTER TABLE temp ADD COLUMN y float4[];
QUERY: ALTER TABLE temp ADD COLUMN z int2[];
QUERY: INSERT INTO temp (a, b, c, d, e, f, g, h, i, j, k, l, m, n, p, q, r, s, t, u,
v, w, x, y, z)
VALUES (4, '
char16
', 'text', 4.1, 4.1, 2, '(4.1,4.1,3.1,3.1)',
VALUES (4, '
name
', 'text', 4.1, 4.1, 2, '(4.1,4.1,3.1,3.1)',
'Mon May 1 00:30:30 1995', 'c', '{Mon May 1 00:30:30 1995, Monday Aug 24 14:43:07 1992, epoch}',
314159, '(1,1)', 512,
'1 2 3 4 5 6 7 8', 'magnetic disk', '(1.1,1.1)', '(4.1,4.1,3.1,3.1)',
'(0,2,4.1,4.1,3.1,3.1)', '(4.1,4.1,3.1,3.1)', '["current" "infinity"]',
'1/3', '1,
char16
', '{1.0,2.0,3.0,4.0}', '{1.0,2.0,3.0,4.0}', '{1,2,3,4}');
'1/3', '1,
name
', '{1.0,2.0,3.0,4.0}', '{1.0,2.0,3.0,4.0}', '{1,2,3,4}');
ERROR: Relation temp does not have attribute k
QUERY: SELECT * FROM temp;
initial|a|b|c|d|e|f|g|h|i|j|l|m|n|p|q|r|s|t|u|v|w|x|y|z
...
...
src/test/regress/expected/arrays.out
View file @
0d203b74
...
...
@@ -42,7 +42,7 @@ x
QUERY: SELECT *
FROM arrtest
WHERE arrtest.a[1] < 5 and
arrtest.c = '{"foobar"}'::_
char16
;
arrtest.c = '{"foobar"}'::_
name
;
a|b|c|d|e
-+-+-+-+-
(0 rows)
...
...
src/test/regress/expected/btree_index.out
View file @
0d203b74
...
...
@@ -23,24 +23,24 @@ seqno| random
(1 row)
QUERY: SELECT b.*
FROM bt_
c16
_heap b
WHERE b.seqno < '1'::
char16
;
FROM bt_
name
_heap b
WHERE b.seqno < '1'::
name
;
seqno| random
-----+----------
0|1935401906
(1 row)
QUERY: SELECT b.*
FROM bt_
c16
_heap b
WHERE b.seqno >= '9999'::
char16
;
FROM bt_
name
_heap b
WHERE b.seqno >= '9999'::
name
;
seqno| random
-----+----------
9999|1227676208
(1 row)
QUERY: SELECT b.*
FROM bt_
c16
_heap b
WHERE b.seqno = '4500'::
char16
;
FROM bt_
name
_heap b
WHERE b.seqno = '4500'::
name
;
seqno| random
-----+----------
4500|2080851358
...
...
src/test/regress/expected/create_index.out
View file @
0d203b74
QUERY: CREATE INDEX onek_unique1 ON onek USING btree(unique1 int4_ops);
QUERY: CREATE INDEX onek_unique2 ON onek USING btree(unique2 int4_ops);
QUERY: CREATE INDEX onek_hundred ON onek USING btree(hundred int4_ops);
QUERY: CREATE INDEX onek_stringu1 ON onek USING btree(stringu1
char16
_ops);
QUERY: CREATE INDEX onek_stringu1 ON onek USING btree(stringu1
name
_ops);
QUERY: CREATE INDEX tenk1_unique1 ON tenk1 USING btree(unique1 int4_ops);
QUERY: CREATE INDEX tenk1_unique2 ON tenk1 USING btree(unique2 int4_ops);
QUERY: CREATE INDEX tenk1_hundred ON tenk1 USING btree(hundred int4_ops);
...
...
@@ -12,11 +12,11 @@ QUERY: CREATE INDEX rix ON road USING btree (name text_ops);
QUERY: CREATE INDEX iix ON ihighway USING btree (name text_ops);
QUERY: CREATE INDEX six ON shighway USING btree (name text_ops);
QUERY: CREATE INDEX bt_i4_index ON bt_i4_heap USING btree (seqno int4_ops);
QUERY: CREATE INDEX bt_
c16_index ON bt_c16_heap USING btree (seqno char16
_ops);
QUERY: CREATE INDEX bt_
name_index ON bt_name_heap USING btree (seqno name
_ops);
QUERY: CREATE INDEX bt_txt_index ON bt_txt_heap USING btree (seqno text_ops);
QUERY: CREATE INDEX bt_f8_index ON bt_f8_heap USING btree (seqno float8_ops);
QUERY: CREATE INDEX rect2ind ON fast_emp4000 USING rtree (home_base bigbox_ops);
QUERY: CREATE INDEX hash_i4_index ON hash_i4_heap USING hash (random int4_ops);
QUERY: CREATE INDEX hash_
c16_index ON hash_c16_heap USING hash (random char16
_ops);
QUERY: CREATE INDEX hash_
name_index ON hash_name_heap USING hash (random name
_ops);
QUERY: CREATE INDEX hash_txt_index ON hash_txt_heap USING hash (random text_ops);
QUERY: CREATE INDEX hash_f8_index ON hash_f8_heap USING hash (random float8_ops);
src/test/regress/expected/create_misc.out
View file @
0d203b74
...
...
@@ -39,77 +39,77 @@ QUERY: INSERT INTO b_star (class, a, b) VALUES ('b', 3, 'mumble'::text);
QUERY: INSERT INTO b_star (class, a) VALUES ('b', 4);
QUERY: INSERT INTO b_star (class, b) VALUES ('b', 'bumble'::text);
QUERY: INSERT INTO b_star (class) VALUES ('b');
QUERY: INSERT INTO c_star (class, a, c) VALUES ('c', 5, 'hi mom'::
char16
);
QUERY: INSERT INTO c_star (class, a, c) VALUES ('c', 5, 'hi mom'::
name
);
QUERY: INSERT INTO c_star (class, a) VALUES ('c', 6);
QUERY: INSERT INTO c_star (class, c) VALUES ('c', 'hi paul'::
char16
);
QUERY: INSERT INTO c_star (class, c) VALUES ('c', 'hi paul'::
name
);
QUERY: INSERT INTO c_star (class) VALUES ('c');
QUERY: INSERT INTO d_star (class, a, b, c, d)
VALUES ('d', 7, 'grumble'::text, 'hi sunita'::
char16
, '0.0'::float8);
VALUES ('d', 7, 'grumble'::text, 'hi sunita'::
name
, '0.0'::float8);
QUERY: INSERT INTO d_star (class, a, b, c)
VALUES ('d', 8, 'stumble'::text, 'hi koko'::
char16
);
VALUES ('d', 8, 'stumble'::text, 'hi koko'::
name
);
QUERY: INSERT INTO d_star (class, a, b, d)
VALUES ('d', 9, 'rumble'::text, '1.1'::float8);
QUERY: INSERT INTO d_star (class, a, c, d)
VALUES ('d', 10, 'hi kristin'::
char16
, '10.01'::float8);
VALUES ('d', 10, 'hi kristin'::
name
, '10.01'::float8);
QUERY: INSERT INTO d_star (class, b, c, d)
VALUES ('d', 'crumble'::text, 'hi boris'::
char16
, '100.001'::float8);
VALUES ('d', 'crumble'::text, 'hi boris'::
name
, '100.001'::float8);
QUERY: INSERT INTO d_star (class, a, b)
VALUES ('d', 11, 'fumble'::text);
QUERY: INSERT INTO d_star (class, a, c)
VALUES ('d', 12, 'hi avi'::
char16
);
VALUES ('d', 12, 'hi avi'::
name
);
QUERY: INSERT INTO d_star (class, a, d)
VALUES ('d', 13, '1000.0001'::float8);
QUERY: INSERT INTO d_star (class, b, c)
VALUES ('d', 'tumble'::text, 'hi andrew'::
char16
);
VALUES ('d', 'tumble'::text, 'hi andrew'::
name
);
QUERY: INSERT INTO d_star (class, b, d)
VALUES ('d', 'humble'::text, '10000.00001'::float8);
QUERY: INSERT INTO d_star (class, c, d)
VALUES ('d', 'hi ginger'::
char16
, '100000.000001'::float8);
VALUES ('d', 'hi ginger'::
name
, '100000.000001'::float8);
QUERY: INSERT INTO d_star (class, a) VALUES ('d', 14);
QUERY: INSERT INTO d_star (class, b) VALUES ('d', 'jumble'::text);
QUERY: INSERT INTO d_star (class, c) VALUES ('d', 'hi jolly'::
char16
);
QUERY: INSERT INTO d_star (class, c) VALUES ('d', 'hi jolly'::
name
);
QUERY: INSERT INTO d_star (class, d) VALUES ('d', '1000000.0000001'::float8);
QUERY: INSERT INTO d_star (class) VALUES ('d');
QUERY: INSERT INTO e_star (class, a, c, e)
VALUES ('e', 15, 'hi carol'::
char16
, '-1'::int2);
VALUES ('e', 15, 'hi carol'::
name
, '-1'::int2);
QUERY: INSERT INTO e_star (class, a, c)
VALUES ('e', 16, 'hi bob'::
char16
);
VALUES ('e', 16, 'hi bob'::
name
);
QUERY: INSERT INTO e_star (class, a, e)
VALUES ('e', 17, '-2'::int2);
QUERY: INSERT INTO e_star (class, c, e)
VALUES ('e', 'hi michelle'::
char16
, '-3'::int2);
VALUES ('e', 'hi michelle'::
name
, '-3'::int2);
QUERY: INSERT INTO e_star (class, a)
VALUES ('e', 18);
QUERY: INSERT INTO e_star (class, c)
VALUES ('e', 'hi elisa'::
char16
);
VALUES ('e', 'hi elisa'::
name
);
QUERY: INSERT INTO e_star (class, e)
VALUES ('e', '-4'::int2);
QUERY: INSERT INTO f_star (class, a, c, e, f)
VALUES ('f', 19, 'hi claire'::
char16
, '-5'::int2, '(1,3),(2,4)'::polygon);
VALUES ('f', 19, 'hi claire'::
name
, '-5'::int2, '(1,3),(2,4)'::polygon);
QUERY: INSERT INTO f_star (class, a, c, e)
VALUES ('f', 20, 'hi mike'::
char16
, '-6'::int2);
VALUES ('f', 20, 'hi mike'::
name
, '-6'::int2);
QUERY: INSERT INTO f_star (class, a, c, f)
VALUES ('f', 21, 'hi marcel'::
char16
, '(11,44),(22,55),(33,66)'::polygon);
VALUES ('f', 21, 'hi marcel'::
name
, '(11,44),(22,55),(33,66)'::polygon);
QUERY: INSERT INTO f_star (class, a, e, f)
VALUES ('f', 22, '-7'::int2, '(111,555),(222,666),(333,777),(444,888)'::polygon);
QUERY: INSERT INTO f_star (class, c, e, f)
VALUES ('f', 'hi keith'::
char16
, '-8'::int2,
VALUES ('f', 'hi keith'::
name
, '-8'::int2,
'(1111,3333),(2222,4444)'::polygon);
QUERY: INSERT INTO f_star (class, a, c)
VALUES ('f', 24, 'hi marc'::
char16
);
VALUES ('f', 24, 'hi marc'::
name
);
QUERY: INSERT INTO f_star (class, a, e)
VALUES ('f', 25, '-9'::int2);
QUERY: INSERT INTO f_star (class, a, f)
VALUES ('f', 26, '(11111,33333),(22222,44444)'::polygon);
QUERY: INSERT INTO f_star (class, c, e)
VALUES ('f', 'hi allison'::
char16
, '-10'::int2);
VALUES ('f', 'hi allison'::
name
, '-10'::int2);
QUERY: INSERT INTO f_star (class, c, f)
VALUES ('f', 'hi jeff'::
char16
,
VALUES ('f', 'hi jeff'::
name
,
'(111111,333333),(222222,444444)'::polygon);
QUERY: INSERT INTO f_star (class, e, f)
VALUES ('f', '-11'::int2, '(1111111,3333333),(2222222,4444444)'::polygon);
QUERY: INSERT INTO f_star (class, a) VALUES ('f', 27);
QUERY: INSERT INTO f_star (class, c) VALUES ('f', 'hi carl'::
char16
);
QUERY: INSERT INTO f_star (class, c) VALUES ('f', 'hi carl'::
name
);
QUERY: INSERT INTO f_star (class, e) VALUES ('f', '-12'::int2);
QUERY: INSERT INTO f_star (class, f)
VALUES ('f', '(11111111,33333333),(22222222,44444444)'::polygon);
...
...
src/test/regress/expected/create_table.out
View file @
0d203b74
...
...
@@ -20,9 +20,9 @@ QUERY: CREATE TABLE onek (
tenthous int4,
odd int4,
even int4,
stringu1
char16
,
stringu2
char16
,
string4
char16
stringu1
name
,
stringu2
name
,
string4
name
);
QUERY: CREATE TABLE tenk1 (
unique1 int4,
...
...
@@ -38,9 +38,9 @@ QUERY: CREATE TABLE tenk1 (
tenthous int4,
odd int4,
even int4,
stringu1
char16
,
stringu2
char16
,
string4
char16
stringu1
name
,
stringu2
name
,
string4
name
);
QUERY: CREATE TABLE tenk2 (
unique1 int4,
...
...
@@ -56,9 +56,9 @@ QUERY: CREATE TABLE tenk2 (
tenthous int4,
odd int4,
even int4,
stringu1
char16
,
stringu2
char16
,
string4
char16
stringu1
name
,
stringu2
name
,
string4
name
);
QUERY: CREATE TABLE person (
name text,
...
...
@@ -67,7 +67,7 @@ QUERY: CREATE TABLE person (
);
QUERY: CREATE TABLE emp (
salary int4,
manager
char16
manager
name
) INHERITS (person);
QUERY: CREATE TABLE student (
gpa float8
...
...
@@ -76,12 +76,12 @@ QUERY: CREATE TABLE stud_emp (
percent int4
) INHERITS (emp, student);
QUERY: CREATE TABLE city (
name
char16
,
name
name
,
location box,
budget city_budget
);
QUERY: CREATE TABLE dept (
dname
char16
,
dname
name
,
mgrname text
);
QUERY: CREATE TABLE slow_emp4000 (
...
...
@@ -111,7 +111,7 @@ QUERY: CREATE TABLE b_star (
b text
) INHERITS (a_star);
QUERY: CREATE TABLE c_star (
c
char16
c
name
) INHERITS (a_star);
QUERY: CREATE TABLE d_star (
d float8
...
...
@@ -129,7 +129,7 @@ QUERY: CREATE TABLE aggtest (
QUERY: CREATE TABLE arrtest (
a int2[],
b int4[][][],
c
char16
[],
c
name
[],
d text[][],
e float8[]
);
...
...
@@ -137,9 +137,9 @@ QUERY: CREATE TABLE hash_i4_heap (
seqno int4,
random int4
);
QUERY: CREATE TABLE hash_
c16
_heap (
QUERY: CREATE TABLE hash_
name
_heap (
seqno int4,
random
char16
random
name
);
QUERY: CREATE TABLE hash_txt_heap (
seqno int4,
...
...
@@ -153,8 +153,8 @@ QUERY: CREATE TABLE bt_i4_heap (
seqno int4,
random int4
);
QUERY: CREATE TABLE bt_
c16
_heap (
seqno
char16
,
QUERY: CREATE TABLE bt_
name
_heap (
seqno
name
,
random int4
);
QUERY: CREATE TABLE bt_txt_heap (
...
...
src/test/regress/expected/hash_index.out
View file @
0d203b74
...
...
@@ -11,15 +11,15 @@ seqno|random
-----+------
(0 rows)
QUERY: SELECT hash_
c16
_heap.*
WHERE hash_
c16_heap.random = '1505703298'::char16
;
QUERY: SELECT hash_
name
_heap.*
WHERE hash_
name_heap.random = '1505703298'::name
;
seqno| random
-----+----------
9838|1505703298
(1 row)
QUERY: SELECT hash_
c16
_heap.*
WHERE hash_
c16_heap.random = '7777777'::char16
;
QUERY: SELECT hash_
name
_heap.*
WHERE hash_
name_heap.random = '7777777'::name
;
seqno|random
-----+------
(0 rows)
...
...
@@ -72,23 +72,23 @@ i20000
20000
(1 row)
QUERY: UPDATE hash_
c16
_heap
SET random = '0123456789abcdef'::
char16
WHERE hash_
c16
_heap.seqno = 6543;
QUERY: UPDATE hash_
name
_heap
SET random = '0123456789abcdef'::
name
WHERE hash_
name
_heap.seqno = 6543;
QUERY: SELECT h.seqno AS i6543, h.random AS c0_to_f
FROM hash_
c16
_heap h
WHERE h.random = '0123456789abcdef'::
char16
;
FROM hash_
name
_heap h
WHERE h.random = '0123456789abcdef'::
name
;
i6543|c0_to_f
-----+----------------
6543|0123456789abcdef
(1 row)
QUERY: UPDATE hash_
c16
_heap
QUERY: UPDATE hash_
name
_heap
SET seqno = 20000
WHERE hash_
c16_heap.random = '76652222'::char16
;
WHERE hash_
name_heap.random = '76652222'::name
;
QUERY: SELECT h.seqno AS emptyset
FROM hash_
c16
_heap h
WHERE h.random = '76652222'::
char16
;
FROM hash_
name
_heap h
WHERE h.random = '76652222'::
name
;
emptyset
--------
(0 rows)
...
...
src/test/regress/expected/oidname.out
View file @
0d203b74
...
...
@@ -4,18 +4,18 @@ QUERY: INSERT INTO OIDNAME_TBL(f1) VALUES ('1235,efgh');
QUERY: INSERT INTO OIDNAME_TBL(f1) VALUES ('987,XXXX');
QUERY: INSERT INTO OIDNAME_TBL(f1) VALUES ('123456');
ERROR: Bad input data for type oidname
QUERY: INSERT INTO OIDNAME_TBL(f1) VALUES ('123456,abcdefghijklmnopqrsutvwyz');
QUERY: INSERT INTO OIDNAME_TBL(f1) VALUES ('123456,abcdefghijklmnopqrsutvwyz
0123456789
');
QUERY: INSERT INTO OIDNAME_TBL(f1) VALUES ('');
ERROR: Bad input data for type oidname
QUERY: INSERT INTO OIDNAME_TBL(f1) VALUES ('asdfasd');
ERROR: Bad input data for type oidname
QUERY: SELECT '' AS four, OIDNAME_TBL.*;
four|f1
----+--------------------------------
|1234,abcd
|1235,efgh
|987,XXXX
|123456,abcdefghijklmnopqrsutvwyz
four|f1
----+--------------------------------
------
|1234,abcd
|1235,efgh
|987,XXXX
|123456,abcdefghijklmnopqrsutvwyz
012345
(4 rows)
QUERY: SELECT '' AS one, o.* FROM OIDNAME_TBL o WHERE o.f1 = '1234,abcd';
...
...
@@ -25,11 +25,11 @@ one|f1
(1 row)
QUERY: SELECT '' AS three, o.* FROM OIDNAME_TBL o WHERE o.f1 <> '1234,abcd';
three|f1
-----+--------------------------------
|1235,efgh
|987,XXXX
|123456,abcdefghijklmnopqrsutvwyz
three|f1
-----+--------------------------------
------
|1235,efgh
|987,XXXX
|123456,abcdefghijklmnopqrsutvwyz
012345
(3 rows)
QUERY: SELECT '' AS two, o.* FROM OIDNAME_TBL o WHERE o.f1 <= '1234,abcd';
...
...
@@ -46,18 +46,18 @@ one|f1
(1 row)
QUERY: SELECT '' AS three, o.* FROM OIDNAME_TBL o WHERE o.f1 >= '1234,abcd';
three|f1
-----+--------------------------------
|1234,abcd
|1235,efgh
|123456,abcdefghijklmnopqrsutvwyz
three|f1
-----+--------------------------------
------
|1234,abcd
|1235,efgh
|123456,abcdefghijklmnopqrsutvwyz
012345
(3 rows)
QUERY: SELECT '' AS two, o.* FROM OIDNAME_TBL o WHERE o.f1 > '1234,abcd';
two|f1
---+--------------------------------
|1235,efgh
|123456,abcdefghijklmnopqrsutvwyz
two|f1
---+--------------------------------
------
|1235,efgh
|123456,abcdefghijklmnopqrsutvwyz
012345
(2 rows)
QUERY: DROP TABLE OIDNAME_TBL;
src/test/regress/expected/sanity_check.out
View file @
0d203b74
...
...
@@ -5,14 +5,14 @@ QUERY: SELECT relname, relhasindex
ORDER BY relname;
relname |relhasindex
--------------+-----------
bt_c16_heap |t
bt_f8_heap |t
bt_i4_heap |t
bt_name_heap |t
bt_txt_heap |t
fast_emp4000 |t
hash_c16_heap |t
hash_f8_heap |t
hash_i4_heap |t
hash_name_heap|t
hash_txt_heap |t
ihighway |t
onek |t
...
...
src/test/regress/input/copy.source
View file @
0d203b74
...
...
@@ -34,7 +34,7 @@ COPY real_city FROM '_OBJWD_/data/real_city.data';
COPY hash_i4_heap FROM '_OBJWD_/data/hash.data';
COPY hash_
c16
_heap FROM '_OBJWD_/data/hash.data';
COPY hash_
name
_heap FROM '_OBJWD_/data/hash.data';
COPY hash_txt_heap FROM '_OBJWD_/data/hash.data';
...
...
@@ -49,7 +49,7 @@ COPY hash_f8_heap FROM '_OBJWD_/data/hash.data';
COPY bt_i4_heap FROM '_OBJWD_/data/desc.data';
COPY bt_
c16
_heap FROM '_OBJWD_/data/hash.data';
COPY bt_
name
_heap FROM '_OBJWD_/data/hash.data';
COPY bt_txt_heap FROM '_OBJWD_/data/desc.data';
...
...
src/test/regress/input/create_function_2.source
View file @
0d203b74
...
...
@@ -47,8 +47,8 @@ CREATE FUNCTION interpt_pp(path, path)
AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c';
CREATE FUNCTION reverse_
c16(char16
)
RETURNS
char16
CREATE FUNCTION reverse_
name(name
)
RETURNS
name
AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c';
...
...
src/test/regress/input/misc.source
View file @
0d203b74
...
...
@@ -27,12 +27,12 @@ UPDATE onek
-- more closely. - jolly (2/22/96)
--
UPDATE temp
SET stringu1 = reverse_
c16
(onek.stringu1)
SET stringu1 = reverse_
name
(onek.stringu1)
WHERE onek.stringu1 = 'JBAAAA' and
onek.stringu1 = temp.stringu1;
UPDATE temp
SET stringu1 = reverse_
c16
(onek2.stringu1)
SET stringu1 = reverse_
name
(onek2.stringu1)
WHERE onek2.stringu1 = 'JCAAAA' and
onek2.stringu1 = temp.stringu1;
...
...
src/test/regress/output/copy.source
View file @
0d203b74
...
...
@@ -12,10 +12,10 @@ QUERY: COPY stud_emp FROM '_OBJWD_/data/stud_emp.data';
QUERY: COPY road FROM '_OBJWD_/data/streets.data';
QUERY: COPY real_city FROM '_OBJWD_/data/real_city.data';
QUERY: COPY hash_i4_heap FROM '_OBJWD_/data/hash.data';
QUERY: COPY hash_
c16
_heap FROM '_OBJWD_/data/hash.data';
QUERY: COPY hash_
name
_heap FROM '_OBJWD_/data/hash.data';
QUERY: COPY hash_txt_heap FROM '_OBJWD_/data/hash.data';
QUERY: COPY hash_f8_heap FROM '_OBJWD_/data/hash.data';
QUERY: COPY bt_i4_heap FROM '_OBJWD_/data/desc.data';
QUERY: COPY bt_
c16
_heap FROM '_OBJWD_/data/hash.data';
QUERY: COPY bt_
name
_heap FROM '_OBJWD_/data/hash.data';
QUERY: COPY bt_txt_heap FROM '_OBJWD_/data/desc.data';
QUERY: COPY bt_f8_heap FROM '_OBJWD_/data/hash.data';
src/test/regress/output/create_function_2.source
View file @
0d203b74
...
...
@@ -33,8 +33,8 @@ QUERY: CREATE FUNCTION interpt_pp(path, path)
RETURNS point
AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c';
QUERY: CREATE FUNCTION reverse_
c16(char16
)
RETURNS
char16
QUERY: CREATE FUNCTION reverse_
name(name
)
RETURNS
name
AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c';
QUERY: LOAD '_OBJWD_/regress_DLSUFFIX_';
src/test/regress/output/misc.source
View file @
0d203b74
...
...
@@ -3,13 +3,13 @@ QUERY: UPDATE onek
QUERY: UPDATE onek
SET unique1 = onek.unique1 - 1;
QUERY: UPDATE temp
SET stringu1 = reverse_
c16
(onek.stringu1)
SET stringu1 = reverse_
name
(onek.stringu1)
WHERE onek.stringu1 = 'JBAAAA' and
onek.stringu1 = temp.stringu1;
NOTICE: Non-functional update, only first update is performed
NOTICE: Non-functional update, only first update is performed
QUERY: UPDATE temp
SET stringu1 = reverse_
c16
(onek2.stringu1)
SET stringu1 = reverse_
name
(onek2.stringu1)
WHERE onek2.stringu1 = 'JCAAAA' and
onek2.stringu1 = temp.stringu1;
NOTICE: Non-functional update, only first update is performed
...
...
@@ -449,9 +449,9 @@ arrtest
b_star
box_tbl
bprime
bt_c16_heap
bt_f8_heap
bt_i4_heap
bt_name_heap
bt_txt_heap
c_star
char_tbl
...
...
@@ -474,9 +474,9 @@ f_star
fast_emp4000
float4_tbl
float8_tbl
hash_c16_heap
hash_f8_heap
hash_i4_heap
hash_name_heap
hash_txt_heap
hobbies_r
iexit
...
...
src/test/regress/regress.c
View file @
0d203b74
/*
* $Header: /cvsroot/pgsql/src/test/regress/regress.c,v 1.2
5 1998/04/07 18:13:08
momjian Exp $
* $Header: /cvsroot/pgsql/src/test/regress/regress.c,v 1.2
6 1998/04/26 04:10:07
momjian Exp $
*/
#include <float.h>
/* faked on sunos */
...
...
@@ -25,7 +25,7 @@ extern Point *interpt_pp(PATH *p1, PATH *p2);
extern
void
regress_lseg_construct
(
LSEG
*
lseg
,
Point
*
pt1
,
Point
*
pt2
);
extern
char
overpaid
(
TUPLE
tuple
);
extern
int
boxarea
(
BOX
*
box
);
extern
char
*
reverse_
c16
(
char
*
string
);
extern
char
*
reverse_
name
(
char
*
string
);
/*
** Distance from a point to a path
...
...
@@ -276,7 +276,7 @@ BOX *box;
}
char
*
reverse_
c16
(
string
)
reverse_
name
(
string
)
char
*
string
;
{
int
i
;
...
...
@@ -285,7 +285,7 @@ char *string;
if
(
!
(
new_string
=
palloc
(
16
)))
{
fprintf
(
stderr
,
"reverse_
c16
: palloc failed
\n
"
);
fprintf
(
stderr
,
"reverse_
name
: palloc failed
\n
"
);
return
(
NULL
);
}
MemSet
(
new_string
,
0
,
16
);
...
...
src/test/regress/sql/alter_table.sql
View file @
0d203b74
...
...
@@ -5,7 +5,7 @@ CREATE TABLE temp (initial int4);
ALTER
TABLE
temp
ADD
COLUMN
a
int4
;
ALTER
TABLE
temp
ADD
COLUMN
b
char16
;
ALTER
TABLE
temp
ADD
COLUMN
b
name
;
ALTER
TABLE
temp
ADD
COLUMN
c
text
;
...
...
@@ -56,12 +56,12 @@ ALTER TABLE temp ADD COLUMN z int2[];
INSERT
INTO
temp
(
a
,
b
,
c
,
d
,
e
,
f
,
g
,
h
,
i
,
j
,
k
,
l
,
m
,
n
,
p
,
q
,
r
,
s
,
t
,
u
,
v
,
w
,
x
,
y
,
z
)
VALUES
(
4
,
'
char16
'
,
'text'
,
4
.
1
,
4
.
1
,
2
,
'(4.1,4.1,3.1,3.1)'
,
VALUES
(
4
,
'
name
'
,
'text'
,
4
.
1
,
4
.
1
,
2
,
'(4.1,4.1,3.1,3.1)'
,
'Mon May 1 00:30:30 1995'
,
'c'
,
'{Mon May 1 00:30:30 1995, Monday Aug 24 14:43:07 1992, epoch}'
,
314159
,
'(1,1)'
,
512
,
'1 2 3 4 5 6 7 8'
,
'magnetic disk'
,
'(1.1,1.1)'
,
'(4.1,4.1,3.1,3.1)'
,
'(0,2,4.1,4.1,3.1,3.1)'
,
'(4.1,4.1,3.1,3.1)'
,
'["current" "infinity"]'
,
'1/3'
,
'1,
char16
'
,
'{1.0,2.0,3.0,4.0}'
,
'{1.0,2.0,3.0,4.0}'
,
'{1,2,3,4}'
);
'1/3'
,
'1,
name
'
,
'{1.0,2.0,3.0,4.0}'
,
'{1.0,2.0,3.0,4.0}'
,
'{1,2,3,4}'
);
SELECT
*
FROM
temp
;
...
...
@@ -74,7 +74,7 @@ CREATE TABLE temp (
ALTER
TABLE
temp
ADD
COLUMN
a
int4
;
ALTER
TABLE
temp
ADD
COLUMN
b
char16
;
ALTER
TABLE
temp
ADD
COLUMN
b
name
;
ALTER
TABLE
temp
ADD
COLUMN
c
text
;
...
...
@@ -125,12 +125,12 @@ ALTER TABLE temp ADD COLUMN z int2[];
INSERT
INTO
temp
(
a
,
b
,
c
,
d
,
e
,
f
,
g
,
h
,
i
,
j
,
k
,
l
,
m
,
n
,
p
,
q
,
r
,
s
,
t
,
u
,
v
,
w
,
x
,
y
,
z
)
VALUES
(
4
,
'
char16
'
,
'text'
,
4
.
1
,
4
.
1
,
2
,
'(4.1,4.1,3.1,3.1)'
,
VALUES
(
4
,
'
name
'
,
'text'
,
4
.
1
,
4
.
1
,
2
,
'(4.1,4.1,3.1,3.1)'
,
'Mon May 1 00:30:30 1995'
,
'c'
,
'{Mon May 1 00:30:30 1995, Monday Aug 24 14:43:07 1992, epoch}'
,
314159
,
'(1,1)'
,
512
,
'1 2 3 4 5 6 7 8'
,
'magnetic disk'
,
'(1.1,1.1)'
,
'(4.1,4.1,3.1,3.1)'
,
'(0,2,4.1,4.1,3.1,3.1)'
,
'(4.1,4.1,3.1,3.1)'
,
'["current" "infinity"]'
,
'1/3'
,
'1,
char16
'
,
'{1.0,2.0,3.0,4.0}'
,
'{1.0,2.0,3.0,4.0}'
,
'{1,2,3,4}'
);
'1/3'
,
'1,
name
'
,
'{1.0,2.0,3.0,4.0}'
,
'{1.0,2.0,3.0,4.0}'
,
'{1,2,3,4}'
);
SELECT
*
FROM
temp
;
...
...
src/test/regress/sql/arrays.sql
View file @
0d203b74
...
...
@@ -26,7 +26,7 @@ SELECT array_dims(arrtest.b) AS x;
SELECT
*
FROM
arrtest
WHERE
arrtest
.
a
[
1
]
<
5
and
arrtest
.
c
=
'{"foobar"}'
::
_
char16
;
arrtest
.
c
=
'{"foobar"}'
::
_
name
;
-- updating array subranges seems to be broken
--
...
...
src/test/regress/sql/btree_index.sql
View file @
0d203b74
...
...
@@ -16,16 +16,16 @@ SELECT b.*
WHERE
b
.
seqno
=
4500
;
SELECT
b
.
*
FROM
bt_
c16
_heap
b
WHERE
b
.
seqno
<
'1'
::
char16
;
FROM
bt_
name
_heap
b
WHERE
b
.
seqno
<
'1'
::
name
;
SELECT
b
.
*
FROM
bt_
c16
_heap
b
WHERE
b
.
seqno
>=
'9999'
::
char16
;
FROM
bt_
name
_heap
b
WHERE
b
.
seqno
>=
'9999'
::
name
;
SELECT
b
.
*
FROM
bt_
c16
_heap
b
WHERE
b
.
seqno
=
'4500'
::
char16
;
FROM
bt_
name
_heap
b
WHERE
b
.
seqno
=
'4500'
::
name
;
SELECT
b
.
*
FROM
bt_txt_heap
b
...
...
src/test/regress/sql/create_index.sql
View file @
0d203b74
...
...
@@ -11,7 +11,7 @@ CREATE INDEX onek_unique2 ON onek USING btree(unique2 int4_ops);
CREATE
INDEX
onek_hundred
ON
onek
USING
btree
(
hundred
int4_ops
);
CREATE
INDEX
onek_stringu1
ON
onek
USING
btree
(
stringu1
char16
_ops
);
CREATE
INDEX
onek_stringu1
ON
onek
USING
btree
(
stringu1
name
_ops
);
CREATE
INDEX
tenk1_unique1
ON
tenk1
USING
btree
(
unique1
int4_ops
);
...
...
@@ -35,13 +35,13 @@ CREATE INDEX six ON shighway USING btree (name text_ops);
-- BTREE ascending/descending cases
--
-- we load int4/text from pure descending data (each key is a new
-- low key) and
c16
/f8 from pure ascending data (each key is a new
-- low key) and
name
/f8 from pure ascending data (each key is a new
-- high key). we had a bug where new low keys would sometimes be
-- "lost".
--
CREATE
INDEX
bt_i4_index
ON
bt_i4_heap
USING
btree
(
seqno
int4_ops
);
CREATE
INDEX
bt_
c16_index
ON
bt_c16_heap
USING
btree
(
seqno
char16
_ops
);
CREATE
INDEX
bt_
name_index
ON
bt_name_heap
USING
btree
(
seqno
name
_ops
);
CREATE
INDEX
bt_txt_index
ON
bt_txt_heap
USING
btree
(
seqno
text_ops
);
...
...
@@ -61,7 +61,7 @@ CREATE INDEX bt_f8_index ON bt_f8_heap USING btree (seqno float8_ops);
-- EXTEND INDEX onek2_u2_prtl;
-- CREATE INDEX onek2_stu1_prtl ON onek2 USING btree(stringu1
char16
_ops)
-- CREATE INDEX onek2_stu1_prtl ON onek2 USING btree(stringu1
name
_ops)
-- where onek2.stringu1 >= 'J' and onek2.stringu1 < 'K';
--
...
...
@@ -80,7 +80,7 @@ CREATE INDEX rect2ind ON fast_emp4000 USING rtree (home_base bigbox_ops);
--
CREATE
INDEX
hash_i4_index
ON
hash_i4_heap
USING
hash
(
random
int4_ops
);
CREATE
INDEX
hash_
c16_index
ON
hash_c16_heap
USING
hash
(
random
char16
_ops
);
CREATE
INDEX
hash_
name_index
ON
hash_name_heap
USING
hash
(
random
name
_ops
);
CREATE
INDEX
hash_txt_index
ON
hash_txt_heap
USING
hash
(
random
text_ops
);
...
...
src/test/regress/sql/create_misc.sql
View file @
0d203b74
...
...
@@ -71,96 +71,96 @@ INSERT INTO b_star (class, b) VALUES ('b', 'bumble'::text);
INSERT
INTO
b_star
(
class
)
VALUES
(
'b'
);
INSERT
INTO
c_star
(
class
,
a
,
c
)
VALUES
(
'c'
,
5
,
'hi mom'
::
char16
);
INSERT
INTO
c_star
(
class
,
a
,
c
)
VALUES
(
'c'
,
5
,
'hi mom'
::
name
);
INSERT
INTO
c_star
(
class
,
a
)
VALUES
(
'c'
,
6
);
INSERT
INTO
c_star
(
class
,
c
)
VALUES
(
'c'
,
'hi paul'
::
char16
);
INSERT
INTO
c_star
(
class
,
c
)
VALUES
(
'c'
,
'hi paul'
::
name
);
INSERT
INTO
c_star
(
class
)
VALUES
(
'c'
);
INSERT
INTO
d_star
(
class
,
a
,
b
,
c
,
d
)
VALUES
(
'd'
,
7
,
'grumble'
::
text
,
'hi sunita'
::
char16
,
'0.0'
::
float8
);
VALUES
(
'd'
,
7
,
'grumble'
::
text
,
'hi sunita'
::
name
,
'0.0'
::
float8
);
INSERT
INTO
d_star
(
class
,
a
,
b
,
c
)
VALUES
(
'd'
,
8
,
'stumble'
::
text
,
'hi koko'
::
char16
);
VALUES
(
'd'
,
8
,
'stumble'
::
text
,
'hi koko'
::
name
);
INSERT
INTO
d_star
(
class
,
a
,
b
,
d
)
VALUES
(
'd'
,
9
,
'rumble'
::
text
,
'1.1'
::
float8
);
INSERT
INTO
d_star
(
class
,
a
,
c
,
d
)
VALUES
(
'd'
,
10
,
'hi kristin'
::
char16
,
'10.01'
::
float8
);
VALUES
(
'd'
,
10
,
'hi kristin'
::
name
,
'10.01'
::
float8
);
INSERT
INTO
d_star
(
class
,
b
,
c
,
d
)
VALUES
(
'd'
,
'crumble'
::
text
,
'hi boris'
::
char16
,
'100.001'
::
float8
);
VALUES
(
'd'
,
'crumble'
::
text
,
'hi boris'
::
name
,
'100.001'
::
float8
);
INSERT
INTO
d_star
(
class
,
a
,
b
)
VALUES
(
'd'
,
11
,
'fumble'
::
text
);
INSERT
INTO
d_star
(
class
,
a
,
c
)
VALUES
(
'd'
,
12
,
'hi avi'
::
char16
);
VALUES
(
'd'
,
12
,
'hi avi'
::
name
);
INSERT
INTO
d_star
(
class
,
a
,
d
)
VALUES
(
'd'
,
13
,
'1000.0001'
::
float8
);
INSERT
INTO
d_star
(
class
,
b
,
c
)
VALUES
(
'd'
,
'tumble'
::
text
,
'hi andrew'
::
char16
);
VALUES
(
'd'
,
'tumble'
::
text
,
'hi andrew'
::
name
);
INSERT
INTO
d_star
(
class
,
b
,
d
)
VALUES
(
'd'
,
'humble'
::
text
,
'10000.00001'
::
float8
);
INSERT
INTO
d_star
(
class
,
c
,
d
)
VALUES
(
'd'
,
'hi ginger'
::
char16
,
'100000.000001'
::
float8
);
VALUES
(
'd'
,
'hi ginger'
::
name
,
'100000.000001'
::
float8
);
INSERT
INTO
d_star
(
class
,
a
)
VALUES
(
'd'
,
14
);
INSERT
INTO
d_star
(
class
,
b
)
VALUES
(
'd'
,
'jumble'
::
text
);
INSERT
INTO
d_star
(
class
,
c
)
VALUES
(
'd'
,
'hi jolly'
::
char16
);
INSERT
INTO
d_star
(
class
,
c
)
VALUES
(
'd'
,
'hi jolly'
::
name
);
INSERT
INTO
d_star
(
class
,
d
)
VALUES
(
'd'
,
'1000000.0000001'
::
float8
);
INSERT
INTO
d_star
(
class
)
VALUES
(
'd'
);
INSERT
INTO
e_star
(
class
,
a
,
c
,
e
)
VALUES
(
'e'
,
15
,
'hi carol'
::
char16
,
'-1'
::
int2
);
VALUES
(
'e'
,
15
,
'hi carol'
::
name
,
'-1'
::
int2
);
INSERT
INTO
e_star
(
class
,
a
,
c
)
VALUES
(
'e'
,
16
,
'hi bob'
::
char16
);
VALUES
(
'e'
,
16
,
'hi bob'
::
name
);
INSERT
INTO
e_star
(
class
,
a
,
e
)
VALUES
(
'e'
,
17
,
'-2'
::
int2
);
INSERT
INTO
e_star
(
class
,
c
,
e
)
VALUES
(
'e'
,
'hi michelle'
::
char16
,
'-3'
::
int2
);
VALUES
(
'e'
,
'hi michelle'
::
name
,
'-3'
::
int2
);
INSERT
INTO
e_star
(
class
,
a
)
VALUES
(
'e'
,
18
);
INSERT
INTO
e_star
(
class
,
c
)
VALUES
(
'e'
,
'hi elisa'
::
char16
);
VALUES
(
'e'
,
'hi elisa'
::
name
);
INSERT
INTO
e_star
(
class
,
e
)
VALUES
(
'e'
,
'-4'
::
int2
);
INSERT
INTO
f_star
(
class
,
a
,
c
,
e
,
f
)
VALUES
(
'f'
,
19
,
'hi claire'
::
char16
,
'-5'
::
int2
,
'(1,3),(2,4)'
::
polygon
);
VALUES
(
'f'
,
19
,
'hi claire'
::
name
,
'-5'
::
int2
,
'(1,3),(2,4)'
::
polygon
);
INSERT
INTO
f_star
(
class
,
a
,
c
,
e
)
VALUES
(
'f'
,
20
,
'hi mike'
::
char16
,
'-6'
::
int2
);
VALUES
(
'f'
,
20
,
'hi mike'
::
name
,
'-6'
::
int2
);
INSERT
INTO
f_star
(
class
,
a
,
c
,
f
)
VALUES
(
'f'
,
21
,
'hi marcel'
::
char16
,
'(11,44),(22,55),(33,66)'
::
polygon
);
VALUES
(
'f'
,
21
,
'hi marcel'
::
name
,
'(11,44),(22,55),(33,66)'
::
polygon
);
INSERT
INTO
f_star
(
class
,
a
,
e
,
f
)
VALUES
(
'f'
,
22
,
'-7'
::
int2
,
'(111,555),(222,666),(333,777),(444,888)'
::
polygon
);
INSERT
INTO
f_star
(
class
,
c
,
e
,
f
)
VALUES
(
'f'
,
'hi keith'
::
char16
,
'-8'
::
int2
,
VALUES
(
'f'
,
'hi keith'
::
name
,
'-8'
::
int2
,
'(1111,3333),(2222,4444)'
::
polygon
);
INSERT
INTO
f_star
(
class
,
a
,
c
)
VALUES
(
'f'
,
24
,
'hi marc'
::
char16
);
VALUES
(
'f'
,
24
,
'hi marc'
::
name
);
INSERT
INTO
f_star
(
class
,
a
,
e
)
VALUES
(
'f'
,
25
,
'-9'
::
int2
);
...
...
@@ -169,10 +169,10 @@ INSERT INTO f_star (class, a, f)
VALUES
(
'f'
,
26
,
'(11111,33333),(22222,44444)'
::
polygon
);
INSERT
INTO
f_star
(
class
,
c
,
e
)
VALUES
(
'f'
,
'hi allison'
::
char16
,
'-10'
::
int2
);
VALUES
(
'f'
,
'hi allison'
::
name
,
'-10'
::
int2
);
INSERT
INTO
f_star
(
class
,
c
,
f
)
VALUES
(
'f'
,
'hi jeff'
::
char16
,
VALUES
(
'f'
,
'hi jeff'
::
name
,
'(111111,333333),(222222,444444)'
::
polygon
);
INSERT
INTO
f_star
(
class
,
e
,
f
)
...
...
@@ -180,7 +180,7 @@ INSERT INTO f_star (class, e, f)
INSERT
INTO
f_star
(
class
,
a
)
VALUES
(
'f'
,
27
);
INSERT
INTO
f_star
(
class
,
c
)
VALUES
(
'f'
,
'hi carl'
::
char16
);
INSERT
INTO
f_star
(
class
,
c
)
VALUES
(
'f'
,
'hi carl'
::
name
);
INSERT
INTO
f_star
(
class
,
e
)
VALUES
(
'f'
,
'-12'
::
int2
);
...
...
src/test/regress/sql/create_table.sql
View file @
0d203b74
...
...
@@ -30,9 +30,9 @@ CREATE TABLE onek (
tenthous
int4
,
odd
int4
,
even
int4
,
stringu1
char16
,
stringu2
char16
,
string4
char16
stringu1
name
,
stringu2
name
,
string4
name
);
CREATE
TABLE
tenk1
(
...
...
@@ -49,9 +49,9 @@ CREATE TABLE tenk1 (
tenthous
int4
,
odd
int4
,
even
int4
,
stringu1
char16
,
stringu2
char16
,
string4
char16
stringu1
name
,
stringu2
name
,
string4
name
);
CREATE
TABLE
tenk2
(
...
...
@@ -68,9 +68,9 @@ CREATE TABLE tenk2 (
tenthous
int4
,
odd
int4
,
even
int4
,
stringu1
char16
,
stringu2
char16
,
string4
char16
stringu1
name
,
stringu2
name
,
string4
name
);
...
...
@@ -83,7 +83,7 @@ CREATE TABLE person (
CREATE
TABLE
emp
(
salary
int4
,
manager
char16
manager
name
)
INHERITS
(
person
);
...
...
@@ -98,13 +98,13 @@ CREATE TABLE stud_emp (
CREATE
TABLE
city
(
name
char16
,
name
name
,
location
box
,
budget
city_budget
);
CREATE
TABLE
dept
(
dname
char16
,
dname
name
,
mgrname
text
);
...
...
@@ -153,7 +153,7 @@ CREATE TABLE b_star (
)
INHERITS
(
a_star
);
CREATE
TABLE
c_star
(
c
char16
c
name
)
INHERITS
(
a_star
);
CREATE
TABLE
d_star
(
...
...
@@ -176,7 +176,7 @@ CREATE TABLE aggtest (
CREATE
TABLE
arrtest
(
a
int2
[],
b
int4
[][][],
c
char16
[],
c
name
[],
d
text
[][],
e
float8
[]
);
...
...
@@ -186,9 +186,9 @@ CREATE TABLE hash_i4_heap (
random
int4
);
CREATE
TABLE
hash_
c16
_heap
(
CREATE
TABLE
hash_
name
_heap
(
seqno
int4
,
random
char16
random
name
);
CREATE
TABLE
hash_txt_heap
(
...
...
@@ -214,8 +214,8 @@ CREATE TABLE bt_i4_heap (
random
int4
);
CREATE
TABLE
bt_
c16
_heap
(
seqno
char16
,
CREATE
TABLE
bt_
name
_heap
(
seqno
name
,
random
int4
);
...
...
src/test/regress/sql/destroy.sql
View file @
0d203b74
--
-- destroy.source
--
-- $Header: /cvsroot/pgsql/src/test/regress/sql/Attic/destroy.sql,v 1.
5 1998/04/07 18:14:27
momjian Exp $
-- $Header: /cvsroot/pgsql/src/test/regress/sql/Attic/destroy.sql,v 1.
6 1998/04/26 04:12:05
momjian Exp $
--
--
...
...
@@ -38,7 +38,7 @@ DROP FUNCTION boxarea(box);
DROP
FUNCTION
interpt_pp
(
path
,
path
);
DROP
FUNCTION
reverse_
c16
(
char16
);
DROP
FUNCTION
reverse_
name
(
name
);
--
...
...
@@ -125,7 +125,7 @@ DROP INDEX six;
DROP
INDEX
hash_i4_index
;
DROP
INDEX
hash_
c16
_index
;
DROP
INDEX
hash_
name
_index
;
DROP
INDEX
hash_txt_index
;
...
...
@@ -135,7 +135,7 @@ DROP INDEX hash_f8_index;
DROP
INDEX
bt_i4_index
;
DROP
INDEX
bt_
c16
_index
;
DROP
INDEX
bt_
name
_index
;
DROP
INDEX
bt_txt_index
;
...
...
@@ -213,7 +213,7 @@ DROP TABLE city;
DROP
TABLE
hash_i4_heap
;
DROP
TABLE
hash_
c16
_heap
;
DROP
TABLE
hash_
name
_heap
;
DROP
TABLE
hash_txt_heap
;
...
...
@@ -223,7 +223,7 @@ DROP TABLE hash_f8_heap;
DROP
TABLE
bt_i4_heap
;
DROP
TABLE
bt_
c16
_heap
;
DROP
TABLE
bt_
name
_heap
;
DROP
TABLE
bt_txt_heap
;
...
...
src/test/regress/sql/hash_index.sql
View file @
0d203b74
...
...
@@ -16,15 +16,15 @@ SELECT hash_i4_heap.*
-- hash index
-- grep 1505703298 hash.data
--
SELECT
hash_
c16
_heap
.
*
WHERE
hash_
c16_heap
.
random
=
'1505703298'
::
char16
;
SELECT
hash_
name
_heap
.
*
WHERE
hash_
name_heap
.
random
=
'1505703298'
::
name
;
--
-- hash index
-- grep 7777777 hash.data
--
SELECT
hash_
c16
_heap
.
*
WHERE
hash_
c16_heap
.
random
=
'7777777'
::
char16
;
SELECT
hash_
name
_heap
.
*
WHERE
hash_
name_heap
.
random
=
'7777777'
::
name
;
--
-- hash index
...
...
@@ -87,24 +87,24 @@ SELECT h.seqno AS i20000
FROM
hash_i4_heap
h
WHERE
h
.
random
=
1492795354
;
UPDATE
hash_
c16
_heap
SET
random
=
'0123456789abcdef'
::
char16
WHERE
hash_
c16
_heap
.
seqno
=
6543
;
UPDATE
hash_
name
_heap
SET
random
=
'0123456789abcdef'
::
name
WHERE
hash_
name
_heap
.
seqno
=
6543
;
SELECT
h
.
seqno
AS
i6543
,
h
.
random
AS
c0_to_f
FROM
hash_
c16
_heap
h
WHERE
h
.
random
=
'0123456789abcdef'
::
char16
;
FROM
hash_
name
_heap
h
WHERE
h
.
random
=
'0123456789abcdef'
::
name
;
UPDATE
hash_
c16
_heap
UPDATE
hash_
name
_heap
SET
seqno
=
20000
WHERE
hash_
c16_heap
.
random
=
'76652222'
::
char16
;
WHERE
hash_
name_heap
.
random
=
'76652222'
::
name
;
--
-- this is the row we just replaced; index scan should return zero rows
--
SELECT
h
.
seqno
AS
emptyset
FROM
hash_
c16
_heap
h
WHERE
h
.
random
=
'76652222'
::
char16
;
FROM
hash_
name
_heap
h
WHERE
h
.
random
=
'76652222'
::
name
;
UPDATE
hash_txt_heap
SET
random
=
'0123456789abcdefghijklmnop'
::
text
...
...
src/test/regress/sql/oidname.sql
View file @
0d203b74
...
...
@@ -10,11 +10,11 @@ INSERT INTO OIDNAME_TBL(f1) VALUES ('1235,efgh');
INSERT
INTO
OIDNAME_TBL
(
f1
)
VALUES
(
'987,XXXX'
);
-- no
char16
component
-- no
name
component
INSERT
INTO
OIDNAME_TBL
(
f1
)
VALUES
(
'123456'
);
--
char16
component too long
INSERT
INTO
OIDNAME_TBL
(
f1
)
VALUES
(
'123456,abcdefghijklmnopqrsutvwyz'
);
--
name
component too long
INSERT
INTO
OIDNAME_TBL
(
f1
)
VALUES
(
'123456,abcdefghijklmnopqrsutvwyz
0123456789
'
);
-- bad inputs
INSERT
INTO
OIDNAME_TBL
(
f1
)
VALUES
(
''
);
...
...
src/test/regress/sql/tests
View file @
0d203b74
boolean
char
char2
char4
char8
char16
name
varchar
text
strings
...
...
src/tools/pgindent/pgindent
View file @
0d203b74
...
...
@@ -672,8 +672,6 @@ do
-Tcat_t
\
-Tcc_t
\
-Tchar
\
-Tchar16
\
-Tchar8
\
-TcharPP
\
-Tclock_t
\
-Tclockid_t
\
...
...
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