Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb503cbe

Browse files
committed
First pass at integrating BIT and BIT VARYING code from Adriaan Joubert.
Update functions to new-style fmgr, make BIT and VARBIT be binary-equivalent, add entries to allow these types to be btree indexed,correct a few bugs. BIT/VARBIT are now toastable, too.NOTE: initdb forced due to catalog updates.
1 parentd594eec commitb503cbe

File tree

11 files changed

+887
-696
lines changed

11 files changed

+887
-696
lines changed

‎src/backend/utils/adt/varbit.c

Lines changed: 607 additions & 451 deletions
Large diffs are not rendered by default.

‎src/include/catalog/catversion.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
3838
* Portions Copyright (c) 1994, Regents of the University of California
3939
*
40-
* $Id: catversion.h,v 1.41 2000/08/08 15:42:33 tgl Exp $
40+
* $Id: catversion.h,v 1.42 2000/08/21 04:48:51 tgl Exp $
4141
*
4242
*-------------------------------------------------------------------------
4343
*/
@@ -53,6 +53,6 @@
5353
*/
5454

5555
/*yyyymmddN */
56-
#defineCATALOG_VERSION_NO200008071
56+
#defineCATALOG_VERSION_NO200008201
5757

5858
#endif

‎src/include/catalog/pg_amop.h

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
99
* Portions Copyright (c) 1994, Regents of the University of California
1010
*
11-
* $Id: pg_amop.h,v 1.35 2000/07/30 22:13:59 tgl Exp $
11+
* $Id: pg_amop.h,v 1.36 2000/08/21 04:48:51 tgl Exp $
1212
*
1313
* NOTES
1414
* the genbki.sh script reads this file and generates .bki
@@ -259,7 +259,6 @@ DATA(insert OID = 0 ( 403 1114 1093 3 ));
259259
DATA(insertOID=0 (403111410984 ));
260260
DATA(insertOID=0 (403111410975 ));
261261

262-
263262
/*
264263
*nbtree time_ops
265264
*/
@@ -350,6 +349,26 @@ DATA(insert OID = 0 ( 403 1690 91 3 ));
350349
DATA(insertOID=0 (403169016954 ));
351350
DATA(insertOID=0 (4031690595 ));
352351

352+
/*
353+
*nbtree bit
354+
*/
355+
356+
DATA(insertOID=0 (40342417861 ));
357+
DATA(insertOID=0 (40342417882 ));
358+
DATA(insertOID=0 (40342417843 ));
359+
DATA(insertOID=0 (40342417894 ));
360+
DATA(insertOID=0 (40342417875 ));
361+
362+
/*
363+
*nbtree varbit
364+
*/
365+
366+
DATA(insertOID=0 (40342518061 ));
367+
DATA(insertOID=0 (40342518082 ));
368+
DATA(insertOID=0 (40342518043 ));
369+
DATA(insertOID=0 (40342518094 ));
370+
DATA(insertOID=0 (40342518075 ));
371+
353372

354373
/*
355374
*hash table _ops

‎src/include/catalog/pg_amproc.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
1111
* Portions Copyright (c) 1994, Regents of the University of California
1212
*
13-
* $Id: pg_amproc.h,v 1.24 2000/07/30 22:13:59 tgl Exp $
13+
* $Id: pg_amproc.h,v 1.25 2000/08/21 04:48:51 tgl Exp $
1414
*
1515
* NOTES
1616
* the genbki.sh script reads this file and generates .bki
@@ -99,7 +99,8 @@ DATA(insert OID = 0 (403 652 926 1));
9999
DATA(insertOID=0 (403176817691));
100100
DATA(insertOID=0 (403169016931));
101101
DATA(insertOID=0 (403139913581));
102-
102+
DATA(insertOID=0 (40342415961));
103+
DATA(insertOID=0 (40342516721));
103104

104105

105106
/* hash */

‎src/include/catalog/pg_opclass.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
99
* Portions Copyright (c) 1994, Regents of the University of California
1010
*
11-
* $Id: pg_opclass.h,v 1.35 2000/07/30 22:13:59 tgl Exp $
11+
* $Id: pg_opclass.h,v 1.36 2000/08/21 04:48:51 tgl Exp $
1212
*
1313
* NOTES
1414
* the genbki.sh script reads this file and generates .bki
@@ -119,5 +119,9 @@ DATA(insert OID = 1690 (bool_ops 16 ));
119119
DESCR("");
120120
DATA(insertOID=1399 (timetz_ops1266 ));
121121
DESCR("");
122+
DATA(insertOID=424 (bit_ops1560 ));
123+
DESCR("");
124+
DATA(insertOID=425 (varbit_ops1562 ));
125+
DESCR("");
122126

123127
#endif/* PG_OPCLASS_H */

‎src/include/catalog/pg_operator.h

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
99
* Portions Copyright (c) 1994, Regents of the University of California
1010
*
11-
* $Id: pg_operator.h,v 1.80 2000/08/12 05:15:22 tgl Exp $
11+
* $Id: pg_operator.h,v 1.81 2000/08/21 04:48:51 tgl Exp $
1212
*
1313
* NOTES
1414
* the genbki.sh script reads this file and generates .bki
@@ -306,8 +306,8 @@ DATA(insert OID = 622 ( "<" PGUID 0 b t f 700 70016 623 6250 0 float4lt
306306
DATA(insertOID=623 (">"PGUID0btf7007001662262400float4gtscalargtselscalargtjoinsel ));
307307
DATA(insertOID=624 ("<="PGUID0btf7007001662562300float4lescalarltselscalarltjoinsel ));
308308
DATA(insertOID=625 (">="PGUID0btf7007001662462200float4gescalargtselscalargtjoinsel ));
309-
DATA(insertOID=626 ("!!="PGUID0btf2319160000int4notin-- ));
310-
DATA(insertOID=627 ("!!="PGUID0btf2619160000oidnotin-- ));
309+
DATA(insertOID=626 ("!!="PGUID0btf2325160000int4notin-- ));
310+
DATA(insertOID=627 ("!!="PGUID0btf2625160000oidnotin-- ));
311311
DATA(insertOID=630 ("<>"PGUID0btf1818166309200charneneqselneqjoinsel ));
312312

313313
DATA(insertOID=631 ("<"PGUID0btf18181663363400charltscalarltselscalarltjoinsel ));
@@ -711,13 +711,12 @@ DATA(insert OID = 1786 ( "<" PGUID 0 b t f 1560 156016 1787 17890 0 bitlt
711711
DATA(insertOID=1787 (">"PGUID0btf15601560161786178800bitgtscalargtselscalargtjoinsel ));
712712
DATA(insertOID=1788 ("<="PGUID0btf15601560161789178700bitlescalarltselscalarltjoinsel ));
713713
DATA(insertOID=1789 (">="PGUID0btf15601560161788178600bitgescalargtselscalargtjoinsel ));
714-
DATA(insertOID=1790 ("<=>"PGUID0btf15601560230000bitcmp-- ));
715-
DATA(insertOID=1791 ("&"PGUID0btf1560156015600000bitand-- ));
716-
DATA(insertOID=1792 ("|"PGUID0btf1560156015600000bitor-- ));
717-
DATA(insertOID=1793 ("^"PGUID0btf1560156015600000bitxor-- ));
718-
DATA(insertOID=1794 ("~"PGUID0btf1560156015600000bitnot-- ));
719-
DATA(insertOID=1795 ("<<"PGUID0btf1560156015600000bitshiftleft-- ));
720-
DATA(insertOID=1796 (">>"PGUID0btf1560156015600000bitshiftright-- ));
714+
DATA(insertOID=1791 ("&"PGUID0btf1560156015601791000bitand-- ));
715+
DATA(insertOID=1792 ("|"PGUID0btf1560156015601792000bitor-- ));
716+
DATA(insertOID=1793 ("^"PGUID0btf1560156015601793000bitxor-- ));
717+
DATA(insertOID=1794 ("~"PGUID0ltf0156015600000bitnot-- ));
718+
DATA(insertOID=1795 ("<<"PGUID0btf15602315600000bitshiftleft-- ));
719+
DATA(insertOID=1796 (">>"PGUID0btf15602315600000bitshiftright-- ));
721720
DATA(insertOID=1797 ("||"PGUID0btf1560156015600000bitcat-- ));
722721

723722
DATA(insertOID=1804 ("="PGUID0btf15621562161804180518061806varbiteqeqseleqjoinsel ));
@@ -726,14 +725,6 @@ DATA(insert OID = 1806 ( "<" PGUID 0 b t f 1562 156216 1807 18090 0 varbit
726725
DATA(insertOID=1807 (">"PGUID0btf15621562161806180800varbitgtscalargtselscalargtjoinsel ));
727726
DATA(insertOID=1808 ("<="PGUID0btf15621562161809180700varbitlescalarltselscalarltjoinsel ));
728727
DATA(insertOID=1809 (">="PGUID0btf15621562161808180600varbitgescalargtselscalargtjoinsel ));
729-
DATA(insertOID=1810 ("<=>"PGUID0btf15621562230000varbitcmp-- ));
730-
DATA(insertOID=1811 ("&"PGUID0btf1562156215620000varbitand-- ));
731-
DATA(insertOID=1812 ("|"PGUID0btf1562156215620000varbitor-- ));
732-
DATA(insertOID=1813 ("^"PGUID0btf1562156215620000varbitxor-- ));
733-
DATA(insertOID=1814 ("~"PGUID0btf1562156215620000varbitnot-- ));
734-
DATA(insertOID=1815 ("<<"PGUID0btf1562156215620000varbitshiftleft-- ));
735-
DATA(insertOID=1816 (">>"PGUID0btf1562156215620000varbitshiftright-- ));
736-
DATA(insertOID=1817 ("||"PGUID0btf1562156215620000varbitcat-- ));
737728

738729
DATA(insertOID=1862 ("="PGUID0btf2120161868186395412int28eqeqseleqjoinsel ));
739730
DATA(insertOID=1863 ("<>"PGUID0btf2120161869186200int28neneqselneqjoinsel ));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp