File tree Expand file tree Collapse file tree 7 files changed +44
-7
lines changed Expand file tree Collapse file tree 7 files changed +44
-7
lines changed Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/access/hash/hashfunc.c,v 1.13 1999/02/13 23:14:18 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/access/hash/hashfunc.c,v 1.14 1999/03/14 05:08:55 momjian Exp $
11
11
*
12
12
* NOTES
13
13
* These functions are stored in pg_amproc. For each operator class
@@ -32,6 +32,12 @@ hashint4(uint32 key)
32
32
return ~key ;
33
33
}
34
34
35
+ uint32
36
+ hashint8 (uint64 * key )
37
+ {
38
+ return ~((uint32 )key );
39
+ }
40
+
35
41
/* Hash function from Chris Torek. */
36
42
uint32
37
43
hashfloat4 (float32 keyp )
Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtcompare.c,v 1.21 1999/02/13 23:14:31 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtcompare.c,v 1.22 1999/03/14 05:08:56 momjian Exp $
11
11
*
12
12
* NOTES
13
13
* These functions are stored in pg_amproc. For each operator class
@@ -39,6 +39,17 @@ btint4cmp(int32 a, int32 b)
39
39
return a - b ;
40
40
}
41
41
42
+ int32
43
+ btint8cmp (int64 * a , int64 * b )
44
+ {
45
+ if (* a > * b )
46
+ return 1 ;
47
+ else if (* a == * b )
48
+ return 0 ;
49
+ else
50
+ return -1 ;
51
+ }
52
+
42
53
int32
43
54
btint24cmp (int16 a , int32 b )
44
55
{
Original file line number Diff line number Diff line change 7
7
*
8
8
* Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $Id: pg_amop.h,v 1.19 1999/02/13 23:21:05 momjian Exp $
10
+ * $Id: pg_amop.h,v 1.20 1999/03/14 05:08:57 momjian Exp $
11
11
*
12
12
* NOTES
13
13
* the genbki.sh script reads this file and generates .bki
@@ -167,6 +167,16 @@ DATA(insert OID = 0 ( 403 426 96 3 btreesel btreenpage ));
167
167
DATA (insert OID = 0 ( 403 426 525 4 btreesel btreenpage ));
168
168
DATA (insert OID = 0 ( 403 426 521 5 btreesel btreenpage ));
169
169
170
+ /*
171
+ * nbtree int8_ops
172
+ */
173
+
174
+ DATA (insert OID = 0 ( 403 754 412 1 btreesel btreenpage ));
175
+ DATA (insert OID = 0 ( 403 754 414 2 btreesel btreenpage ));
176
+ DATA (insert OID = 0 ( 403 754 410 3 btreesel btreenpage ));
177
+ DATA (insert OID = 0 ( 403 754 415 4 btreesel btreenpage ));
178
+ DATA (insert OID = 0 ( 403 754 413 5 btreesel btreenpage ));
179
+
170
180
/*
171
181
* nbtree oid_ops
172
182
*/
@@ -338,6 +348,8 @@ DATA(insert OID = 0 ( 405 421 94 1 hashsel hashnpage ));
338
348
DATA (insert OID = 0 ( 405 423 670 1 hashsel hashnpage ));
339
349
/* int4_ops */
340
350
DATA (insert OID = 0 ( 405 426 96 1 hashsel hashnpage ));
351
+ /* int8_ops */
352
+ DATA (insert OID = 0 ( 405 426 96 1 hashsel hashnpage ));
341
353
/* oid_ops */
342
354
DATA (insert OID = 0 ( 405 427 607 1 hashsel hashnpage ));
343
355
/* oid8_ops */
Original file line number Diff line number Diff line change 9
9
*
10
10
* Copyright (c) 1994, Regents of the University of California
11
11
*
12
- * $Id: pg_amproc.h,v 1.12 1999/02/13 23:21:06 momjian Exp $
12
+ * $Id: pg_amproc.h,v 1.13 1999/03/14 05:08:58 momjian Exp $
13
13
*
14
14
* NOTES
15
15
* the genbki.sh script reads this file and generates .bki
@@ -92,6 +92,7 @@ DATA(insert OID = 0 (403 432 357 1));
92
92
DATA (insert OID = 0 (403 435 404 1 ));
93
93
DATA (insert OID = 0 (403 436 948 1 ));
94
94
DATA (insert OID = 0 (403 437 828 1 ));
95
+ DATA (insert OID = 0 (403 754 842 1 ));
95
96
DATA (insert OID = 0 (403 1076 1078 1 ));
96
97
DATA (insert OID = 0 (403 1077 1079 1 ));
97
98
DATA (insert OID = 0 (403 1114 1092 1 ));
Original file line number Diff line number Diff line change 7
7
*
8
8
* Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $Id: pg_opclass.h,v 1.16 1999/02/13 23:21:11 momjian Exp $
10
+ * $Id: pg_opclass.h,v 1.17 1999/03/14 05:08:59 momjian Exp $
11
11
*
12
12
* NOTES
13
13
* the genbki.sh script reads this file and generates .bki
@@ -93,6 +93,8 @@ DATA(insert OID = 435 ( oid8_ops 30 ));
93
93
DESCR ("" );
94
94
DATA (insert OID = 714 ( circle_ops 718 ));
95
95
DESCR ("" );
96
+ DATA (insert OID = 754 ( int8_ops 20 ));
97
+ DESCR ("" );
96
98
DATA (insert OID = 1076 ( bpchar_ops 1042 ));
97
99
DESCR ("" );
98
100
DATA (insert OID = 1077 ( varchar_ops 1043 ));
Original file line number Diff line number Diff line change 6
6
*
7
7
* Copyright (c) 1994, Regents of the University of California
8
8
*
9
- * $Id: pg_proc.h,v 1.90 1999/03/10 05:02:33 tgl Exp $
9
+ * $Id: pg_proc.h,v 1.91 1999/03/14 05:09:00 momjian Exp $
10
10
*
11
11
* NOTES
12
12
* The script catalog/genbki.sh reads this file and generates .bki
@@ -735,6 +735,8 @@ DATA(insert OID = 350 ( btint2cmp PGUID 11 f t f 2 f 23 "21 21" 100 0 0 100
735
735
DESCR ("btree less-equal-greater" );
736
736
DATA (insert OID = 351 ( btint4cmp PGUID 11 f t f 2 f 23 "23 23" 100 0 0 100 foo bar ));
737
737
DESCR ("btree less-equal-greater" );
738
+ DATA (insert OID = 842 ( btint8cmp PGUID 11 f t f 2 f 23 "20 20" 100 0 0 100 foo bar ));
739
+ DESCR ("btree less-equal-greater" );
738
740
DATA (insert OID = 352 ( btint42cmp PGUID 11 f t f 2 f 23 "23 21" 100 0 0 100 foo bar ));
739
741
DESCR ("btree less-equal-greater" );
740
742
DATA (insert OID = 353 ( btint24cmp PGUID 11 f t f 2 f 23 "21 23" 100 0 0 100 foo bar ));
@@ -821,6 +823,8 @@ DATA(insert OID = 449 ( hashint2 PGUID 11 f t f 2 f 23 "21 21" 100 0 0 100
821
823
DESCR ("hash" );
822
824
DATA (insert OID = 450 ( hashint4 PGUID 11 f t f 2 f 23 "23 23" 100 0 0 100 foo bar ));
823
825
DESCR ("hash" );
826
+ DATA (insert OID = 949 ( hashint8 PGUID 11 f t f 2 f 23 "20 20" 100 0 0 100 foo bar ));
827
+ DESCR ("hash" );
824
828
DATA (insert OID = 451 ( hashfloat4 PGUID 11 f t f 2 f 23 "700 700" 100 0 0 100 foo bar ));
825
829
DESCR ("hash" );
826
830
DATA (insert OID = 452 ( hashfloat8 PGUID 11 f t f 2 f 23 "701 701" 100 0 0 100 foo bar ));
Original file line number Diff line number Diff line change 6
6
*
7
7
* Copyright (c) 1994, Regents of the University of California
8
8
*
9
- * $Id: builtins.h,v 1.74 1999/02/13 23:22:15 momjian Exp $
9
+ * $Id: builtins.h,v 1.75 1999/03/14 05:09:05 momjian Exp $
10
10
*
11
11
* NOTES
12
12
* This should normally only be included by fmgr.h.
@@ -163,6 +163,7 @@ extern void ltoa(int32 l, char *a);
163
163
*/
164
164
extern int32 btint2cmp (int16 a , int16 b );
165
165
extern int32 btint4cmp (int32 a , int32 b );
166
+ extern int32 btint8cmp (int64 * a , int64 * b );
166
167
extern int32 btint24cmp (int16 a , int32 b );
167
168
extern int32 btint42cmp (int32 a , int16 b );
168
169
extern int32 btfloat4cmp (float32 a , float32 b );
You can’t perform that action at this time.
0 commit comments