aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/numeric.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-11-28 14:16:24 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2014-11-28 14:16:24 -0500
commitd25367ec4f869aac80e97964fa5d7143536818b1 (patch)
treedbcc0102cdde5c0147622c3ff317444b0c711b3a /src/backend/utils/adt/numeric.c
parentf4e031c662a6b600b786c4849968a099c58fcce7 (diff)
downloadpostgresql-d25367ec4f869aac80e97964fa5d7143536818b1.tar.gz
postgresql-d25367ec4f869aac80e97964fa5d7143536818b1.zip
Add bms_get_singleton_member(), and use it where appropriate.
This patch adds a function that replaces a bms_membership() test followed by a bms_singleton_member() call, performing both the test and the extraction of a singleton set's member in one scan of the bitmapset. The performance advantage over the old way is probably minimal in current usage, but it seems worthwhile on notational grounds anyway. David Rowley
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions