diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-11-16 18:21:34 -0500 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-11-16 18:21:34 -0500 |
| commit | 4509033a00df5f49c42a21772d8d617efe83e549 (patch) | |
| tree | d1c4bda08a9a1b3e9bb57e3e818b9ee707045111 /src/include/catalog/pg_range.h | |
| parent | ff4fd4bf53c5512427f8ecea08d6ca7777efa2c5 (diff) | |
| download | postgresql-4509033a00df5f49c42a21772d8d617efe83e549.tar.gz | |
Code review for range-types catalog entries.
Fix assorted infelicities, such as dependency on OIDs that aren't
hardwired, as well as outright misdeclaration of daterange_canonical(),
which resulted in crashes if you invoked it directly. Add some more
regression tests to try to catch similar mistakes in future.
Diffstat (limited to 'src/include/catalog/pg_range.h')
| -rw-r--r-- | src/include/catalog/pg_range.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/include/catalog/pg_range.h b/src/include/catalog/pg_range.h index 3826976e82..cc9ba293c1 100644 --- a/src/include/catalog/pg_range.h +++ b/src/include/catalog/pg_range.h @@ -38,7 +38,7 @@ CATALOG(pg_range,3541) BKI_WITHOUT_OIDS Oid rngcollation; /* collation for this range type, or 0 */ Oid rngsubopc; /* subtype's btree opclass */ regproc rngcanonical; /* canonicalize range, or 0 */ - regproc rngsubdiff; /* subtype difference as a float8 (for GiST) */ + regproc rngsubdiff; /* subtype difference as a float8, or 0 */ } FormData_pg_range; /* ---------------- @@ -65,12 +65,12 @@ typedef FormData_pg_range *Form_pg_range; * initial contents of pg_range * ---------------- */ -DATA(insert ( 3904 23 0 1978 int4range_canonical int4range_subdiff)); -DATA(insert ( 3906 1700 0 10037 - numrange_subdiff)); -DATA(insert ( 3908 1114 0 10054 - tsrange_subdiff)); -DATA(insert ( 3910 1184 0 10047 - tstzrange_subdiff)); -DATA(insert ( 3912 1082 0 10019 daterange_canonical daterange_subdiff)); -DATA(insert ( 3926 20 0 10029 int8range_canonical int8range_subdiff)); +DATA(insert ( 3904 23 0 1978 int4range_canonical int4range_subdiff)); +DATA(insert ( 3906 1700 0 3125 - numrange_subdiff)); +DATA(insert ( 3908 1114 0 3128 - tsrange_subdiff)); +DATA(insert ( 3910 1184 0 3127 - tstzrange_subdiff)); +DATA(insert ( 3912 1082 0 3122 daterange_canonical daterange_subdiff)); +DATA(insert ( 3926 20 0 3124 int8range_canonical int8range_subdiff)); /* |
