File tree 7 files changed +41
-8
lines changed
7 files changed +41
-8
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/utils/adt/tid.c,v 1.49 2005/05/27 00:57:49 neilc Exp $
11
+ * $PostgreSQL: pgsql/src/backend/utils/adt/tid.c,v 1.50 2006/02/26 18:36:21 neilc Exp $
12
12
*
13
13
* NOTES
14
14
* input routine largely stolen from boxin().
@@ -174,7 +174,6 @@ tideq(PG_FUNCTION_ARGS)
174
174
arg1 -> ip_posid == arg2 -> ip_posid );
175
175
}
176
176
177
- #ifdef NOT_USED
178
177
Datum
179
178
tidne (PG_FUNCTION_ARGS )
180
179
{
@@ -185,7 +184,6 @@ tidne(PG_FUNCTION_ARGS)
185
184
BlockIdGetBlockNumber (& (arg2 -> ip_blkid )) ||
186
185
arg1 -> ip_posid != arg2 -> ip_posid );
187
186
}
188
- #endif
189
187
190
188
/*
191
189
* Functions to get latest tid of a specified tuple.
Original file line number Diff line number Diff line change 37
37
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
38
38
* Portions Copyright (c) 1994, Regents of the University of California
39
39
*
40
- * $PostgreSQL: pgsql/src/include/catalog/catversion.h,v 1.315 2006/02/12 03:22:19 momjian Exp $
40
+ * $PostgreSQL: pgsql/src/include/catalog/catversion.h,v 1.316 2006/02/26 18:36:21 neilc Exp $
41
41
*
42
42
*-------------------------------------------------------------------------
43
43
*/
53
53
*/
54
54
55
55
/* yyyymmddN */
56
- #define CATALOG_VERSION_NO 200602112
56
+ #define CATALOG_VERSION_NO 200602251
57
57
58
58
#endif
Original file line number Diff line number Diff line change 8
8
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
9
9
* Portions Copyright (c) 1994, Regents of the University of California
10
10
*
11
- * $PostgreSQL: pgsql/src/include/catalog/pg_operator.h,v 1.139 2006/02/11 03:32:39 momjian Exp $
11
+ * $PostgreSQL: pgsql/src/include/catalog/pg_operator.h,v 1.140 2006/02/26 18:36:21 neilc Exp $
12
12
*
13
13
* NOTES
14
14
* the genbki.sh script reads this file and generates .bki
@@ -130,6 +130,7 @@ DATA(insert OID = 385 ( "=" PGNSP PGUID b t 29 29 16 385 0 0 0 0 0 cide
130
130
DATA (insert OID = 386 ( "=" PGNSP PGUID b t 22 22 16 386 0 0 0 0 0 int2vectoreq eqsel eqjoinsel ));
131
131
DATA (insert OID = 387 ( "=" PGNSP PGUID b f 27 27 16 387 0 0 0 0 0 tideq eqsel eqjoinsel ));
132
132
#define TIDEqualOperator 387
133
+ DATA (insert OID = 402 ( "<>" PGNSP PGUID b f 27 27 16 402 0 0 0 0 0 tidne neqsel neqjoinsel ));
133
134
134
135
DATA (insert OID = 410 ( "=" PGNSP PGUID b t 20 20 16 410 411 412 412 412 413 int8eq eqsel eqjoinsel ));
135
136
DATA (insert OID = 411 ( "<>" PGNSP PGUID b f 20 20 16 411 410 0 0 0 0 int8ne neqsel neqjoinsel ));
Original file line number Diff line number Diff line change 7
7
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $PostgreSQL: pgsql/src/include/catalog/pg_proc.h,v 1.397 2006/02/12 03:22:19 momjian Exp $
10
+ * $PostgreSQL: pgsql/src/include/catalog/pg_proc.h,v 1.398 2006/02/26 18:36:21 neilc Exp $
11
11
*
12
12
* NOTES
13
13
* The script catalog/genbki.sh reads this file and generates .bki
@@ -1598,6 +1598,8 @@ DATA(insert OID = 1293 ( currtid PGNSP PGUID 12 f f t f v 2 27 "26 27" _null
1598
1598
DESCR ("latest tid of a tuple" );
1599
1599
DATA (insert OID = 1294 ( currtid2 PGNSP PGUID 12 f f t f v 2 27 "25 27" _null_ _null_ _null_ currtid_byrelname - _null_ ));
1600
1600
DESCR ("latest tid of a tuple" );
1601
+ DATA (insert OID = 2398 ( tidne PGNSP PGUID 12 f f t f i 2 16 "27 27" _null_ _null_ _null_ tidne - _null_ ));
1602
+ DESCR ("not equal" );
1601
1603
1602
1604
DATA (insert OID = 2168 ( pg_database_size PGNSP PGUID 12 f f t f v 1 20 "19" _null_ _null_ _null_ pg_database_size_name - _null_ ));
1603
1605
DESCR ("Calculate total disk space usage for the specified database" );
Original file line number Diff line number Diff line change 7
7
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $PostgreSQL: pgsql/src/include/utils/builtins.h,v 1.273 2006/02/11 03:32:41 momjian Exp $
10
+ * $PostgreSQL: pgsql/src/include/utils/builtins.h,v 1.274 2006/02/26 18:36:22 neilc Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -531,6 +531,7 @@ extern Datum tidout(PG_FUNCTION_ARGS);
531
531
extern Datum tidrecv (PG_FUNCTION_ARGS );
532
532
extern Datum tidsend (PG_FUNCTION_ARGS );
533
533
extern Datum tideq (PG_FUNCTION_ARGS );
534
+ extern Datum tidne (PG_FUNCTION_ARGS );
534
535
extern Datum currtid_byreloid (PG_FUNCTION_ARGS );
535
536
extern Datum currtid_byrelname (PG_FUNCTION_ARGS );
536
537
Original file line number Diff line number Diff line change @@ -517,3 +517,28 @@ fetch from foo;
517
517
(1 row)
518
518
519
519
abort;
520
+ -- tests for the "tid" type
521
+ SELECT '(3, 3)'::tid = '(3, 4)'::tid;
522
+ ?column?
523
+ ----------
524
+ f
525
+ (1 row)
526
+
527
+ SELECT '(3, 3)'::tid = '(3, 3)'::tid;
528
+ ?column?
529
+ ----------
530
+ t
531
+ (1 row)
532
+
533
+ SELECT '(3, 3)'::tid <> '(3, 3)'::tid;
534
+ ?column?
535
+ ----------
536
+ f
537
+ (1 row)
538
+
539
+ SELECT '(3, 3)'::tid <> '(3, 4)'::tid;
540
+ ?column?
541
+ ----------
542
+ t
543
+ (1 row)
544
+
Original file line number Diff line number Diff line change @@ -325,3 +325,9 @@ rollback to x;
325
325
fetch from foo;
326
326
327
327
abort;
328
+
329
+ -- tests for the "tid" type
330
+ SELECT ' (3, 3)' ::tid = ' (3, 4)' ::tid;
331
+ SELECT ' (3, 3)' ::tid = ' (3, 3)' ::tid;
332
+ SELECT ' (3, 3)' ::tid <> ' (3, 3)' ::tid;
333
+ SELECT ' (3, 3)' ::tid <> ' (3, 4)' ::tid;
You can’t perform that action at this time.
0 commit comments