diff options
author | Thomas G. Lockhart | 2002-08-04 06:33:59 +0000 |
---|---|---|
committer | Thomas G. Lockhart | 2002-08-04 06:33:59 +0000 |
commit | ce5dc562e6e650292ed148a1417d449c2d88d698 (patch) | |
tree | fcec64e4542c589c7d7bd70bd86fdd509395574c /src/include | |
parent | af704cdfb4e5327395aa6419c28ad79f906c68f0 (diff) |
Allow bit string constants without fully-specified length declaration.
Implement conversion between 8-byte integers and bit strings.
Similar to what is done for 4-byte integers.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/catalog/pg_proc.h | 11 | ||||
-rw-r--r-- | src/include/utils/varbit.h | 4 |
2 files changed, 11 insertions, 4 deletions
diff --git a/src/include/catalog/pg_proc.h b/src/include/catalog/pg_proc.h index 2c5979f9a45..143d45a18a0 100644 --- a/src/include/catalog/pg_proc.h +++ b/src/include/catalog/pg_proc.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: pg_proc.h,v 1.248 2002/07/31 01:49:13 momjian Exp $ + * $Id: pg_proc.h,v 1.249 2002/08/04 06:33:54 thomas Exp $ * * NOTES * The script catalog/genbki.sh reads this file and generates .bki @@ -2236,9 +2236,9 @@ DATA(insert OID = 1681 ( length PGNSP PGUID 12 f f t f i 1 23 "1560" bitlengt DESCR("bitstring length"); DATA(insert OID = 1682 ( octet_length PGNSP PGUID 12 f f t f i 1 23 "1560" bitoctetlength - _null_ )); DESCR("octet length"); -DATA(insert OID = 1683 ( bitfromint4 PGNSP PGUID 12 f f t f i 1 1560 "23" bitfromint4 - _null_ )); +DATA(insert OID = 1683 ( bit PGNSP PGUID 12 f f t f i 1 1560 "23" bitfromint4 - _null_ )); DESCR("int4 to bitstring"); -DATA(insert OID = 1684 ( bittoint4 PGNSP PGUID 12 f f t f i 1 23 "1560" bittoint4 - _null_ )); +DATA(insert OID = 1684 ( int4 PGNSP PGUID 12 f f t f i 1 23 "1560" bittoint4 - _null_ )); DESCR("bitstring to int4"); DATA(insert OID = 1685 ( bit PGNSP PGUID 12 f f t f i 2 1560 "1560 23" bit - _null_ )); @@ -2873,6 +2873,11 @@ DESCR("substitutes regular expression"); DATA(insert OID = 2074 ( substring PGNSP PGUID 14 f f t f i 3 25 "25 25 25" "select substring($1, like_escape($2, $3))" - _null_ )); DESCR("substitutes regular expression with escape argument"); +DATA(insert OID = 2075 ( bit PGNSP PGUID 12 f f t f i 1 1560 "20" bitfromint8 - _null_ )); +DESCR("int8 to bitstring"); +DATA(insert OID = 2076 ( int8 PGNSP PGUID 12 f f t f i 1 20 "1560" bittoint8 - _null_ )); +DESCR("bitstring to int8"); + DATA(insert OID = 2090 ( current_setting PGNSP PGUID 12 f f t f s 1 25 "25" show_config_by_name - _null_ )); DESCR("SHOW X as a function"); DATA(insert OID = 2091 ( set_config PGNSP PGUID 12 f f f f v 3 25 "25 25 16" set_config_by_name - _null_ )); diff --git a/src/include/utils/varbit.h b/src/include/utils/varbit.h index 42ea863151e..8dff3166d56 100644 --- a/src/include/utils/varbit.h +++ b/src/include/utils/varbit.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: varbit.h,v 1.14 2002/06/20 20:29:53 momjian Exp $ + * $Id: varbit.h,v 1.15 2002/08/04 06:33:56 thomas Exp $ * *------------------------------------------------------------------------- */ @@ -88,6 +88,8 @@ extern Datum bitlength(PG_FUNCTION_ARGS); extern Datum bitoctetlength(PG_FUNCTION_ARGS); extern Datum bitfromint4(PG_FUNCTION_ARGS); extern Datum bittoint4(PG_FUNCTION_ARGS); +extern Datum bitfromint8(PG_FUNCTION_ARGS); +extern Datum bittoint8(PG_FUNCTION_ARGS); extern Datum bitposition(PG_FUNCTION_ARGS); #endif |