mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
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.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: parse_coerce.h,v 1.22 2000/04/12 17:16:45 momjian Exp $
|
||||
* $Id: parse_coerce.h,v 1.23 2000/08/21 04:48:52 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -67,13 +67,16 @@ typedef enum CATEGORY
|
||||
|| ((t) == POLYGONOID) \
|
||||
|| ((t) == CIRCLEOID) \
|
||||
|| ((t) == INETOID) \
|
||||
|| ((t) == CIDROID) )
|
||||
|| ((t) == CIDROID) \
|
||||
|| ((t) == ZPBITOID) \
|
||||
|| ((t) == VARBITOID) )
|
||||
|
||||
|
||||
/* IS_BINARY_COMPATIBLE()
|
||||
* Check for types with the same underlying binary representation.
|
||||
* This allows us to cheat and directly exchange values without
|
||||
* going through the trouble of calling a conversion function.
|
||||
*
|
||||
* Remove equivalencing of FLOAT8 and TIMESTAMP. They really are not
|
||||
* close enough in behavior, with the TIMESTAMP reserved values
|
||||
* and special formatting. - thomas 1999-01-24
|
||||
@@ -96,7 +99,9 @@ typedef enum CATEGORY
|
||||
|| ((a) == RELTIMEOID && (b) == INT4OID) \
|
||||
|| ((a) == INT4OID && (b) == RELTIMEOID) \
|
||||
|| ((a) == INETOID && (b) == CIDROID) \
|
||||
|| ((a) == CIDROID && (b) == INETOID))
|
||||
|| ((a) == CIDROID && (b) == INETOID) \
|
||||
|| ((a) == ZPBITOID && (b) == VARBITOID) \
|
||||
|| ((a) == VARBITOID && (b) == ZPBITOID))
|
||||
|
||||
/* IS_HIGHER_TYPE()
|
||||
* These types are the most general in each of the type categories.
|
||||
|
||||
Reference in New Issue
Block a user