Index: doc/src/sgml/func.sgml =================================================================== RCS file: /cvsroot/pgsql-server/doc/src/sgml/func.sgml,v retrieving revision 1.132 diff -c -c -r1.132 func.sgml *** doc/src/sgml/func.sgml 23 Nov 2002 04:04:43 -0000 1.132 --- doc/src/sgml/func.sgml 5 Dec 2002 04:36:25 -0000 *************** *** 473,479 **** shown in . Bit string arguments to &, |, and # must be of equal length. When bit ! shifting, the original length of the string is preserved, as shown in the table. --- 473,480 ---- shown in . Bit string arguments to &, |, and # must be of equal length. When bit ! shifting, the original length of the string is preserved, as shown ! in the table.
*************** *** 2119,2124 **** --- 2120,2177 ---- trim('\\000'::bytea from '\\000Tom\\000'::bytea)Tom + + + + get_byte(string, offset) + integer + + Extract byte from string. + + get_byte + + + get_byte('Th\\000omas'::bytea, 4) + 109 + + + + set_byte(string, offset) + bytea + + Set byte in string. + + set_byte + + + set_byte('Th\\000omas'::bytea, 4, 64) + Th\000o@as + + + + get_bit(string, offset) + integer + + Extract bit from string. + + get_bit + + + get_bit('Th\\000omas'::bytea, 45) + 1 + + + + set_bit(string, offset) + bytea + + Set bit in string. + + set_bit + + + set_bit('Th\\000omas'::bytea, 45, 0) + Th\000omAs Index: src/include/catalog/pg_proc.h =================================================================== RCS file: /cvsroot/pgsql-server/src/include/catalog/pg_proc.h,v retrieving revision 1.277 diff -c -c -r1.277 pg_proc.h *** src/include/catalog/pg_proc.h 4 Dec 2002 05:18:36 -0000 1.277 --- src/include/catalog/pg_proc.h 5 Dec 2002 04:36:30 -0000 *************** *** 958,970 **** DATA(insert OID = 720 ( octet_length PGNSP PGUID 12 f f t f i 1 23 "17" byteaoctetlen - _null_ )); DESCR("octet length"); DATA(insert OID = 721 ( get_byte PGNSP PGUID 12 f f t f i 2 23 "17 23" byteaGetByte - _null_ )); ! DESCR(""); DATA(insert OID = 722 ( set_byte PGNSP PGUID 12 f f t f i 3 17 "17 23 23" byteaSetByte - _null_ )); ! DESCR(""); DATA(insert OID = 723 ( get_bit PGNSP PGUID 12 f f t f i 2 23 "17 23" byteaGetBit - _null_ )); ! DESCR(""); DATA(insert OID = 724 ( set_bit PGNSP PGUID 12 f f t f i 3 17 "17 23 23" byteaSetBit - _null_ )); ! DESCR(""); DATA(insert OID = 725 ( dist_pl PGNSP PGUID 12 f f t f i 2 701 "600 628" dist_pl - _null_ )); DESCR("distance between point and line"); --- 958,970 ---- DATA(insert OID = 720 ( octet_length PGNSP PGUID 12 f f t f i 1 23 "17" byteaoctetlen - _null_ )); DESCR("octet length"); DATA(insert OID = 721 ( get_byte PGNSP PGUID 12 f f t f i 2 23 "17 23" byteaGetByte - _null_ )); ! DESCR("get byte"); DATA(insert OID = 722 ( set_byte PGNSP PGUID 12 f f t f i 3 17 "17 23 23" byteaSetByte - _null_ )); ! DESCR("set byte"); DATA(insert OID = 723 ( get_bit PGNSP PGUID 12 f f t f i 2 23 "17 23" byteaGetBit - _null_ )); ! DESCR("get bit"); DATA(insert OID = 724 ( set_bit PGNSP PGUID 12 f f t f i 3 17 "17 23 23" byteaSetBit - _null_ )); ! DESCR("set bit"); DATA(insert OID = 725 ( dist_pl PGNSP PGUID 12 f f t f i 2 701 "600 628" dist_pl - _null_ )); DESCR("distance between point and line");