OSDN Git Service

Add get_bit/set_bit functions for bit strings, paralleling those for bytea,
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 25 Jan 2010 20:55:32 +0000 (20:55 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 25 Jan 2010 20:55:32 +0000 (20:55 +0000)
commit9507c8a1db14d022296144f391ea4741f4f848ca
tree72fe8e5370f8b8d9ef07dc460daaac5be1797430
parent1d1f425f8d4331ecf09512386880af0827cd6091
Add get_bit/set_bit functions for bit strings, paralleling those for bytea,
and implement OVERLAY() for bit strings and bytea.

In passing also convert text OVERLAY() to a true built-in, instead of
relying on a SQL function.

Leonardo F, reviewed by Kevin Grittner
13 files changed:
doc/src/sgml/func.sgml
src/backend/parser/gram.y
src/backend/utils/adt/varbit.c
src/backend/utils/adt/varlena.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/utils/builtins.h
src/include/utils/bytea.h
src/include/utils/varbit.h
src/test/regress/expected/bit.out
src/test/regress/expected/strings.out
src/test/regress/sql/bit.sql
src/test/regress/sql/strings.sql