]> granicus.if.org Git - postgresql/commit
Use optimized bitmap set function for membership test in postgres_fdw
authorMichael Paquier <michael@paquier.xyz>
Sun, 1 Jul 2018 06:10:10 +0000 (15:10 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sun, 1 Jul 2018 06:10:10 +0000 (15:10 +0900)
commit65782346a4812482bfb09f9e1117c908146e67b5
tree633e40cbd1669b1b6458a07cb9209aa7fb1bd591
parentfeced1387f07c3fa6c47d36a68962750e6065486
Use optimized bitmap set function for membership test in postgres_fdw

Deparsing logic in postgres_fdw for locking, FROM clause (alias) and Var
(column qualification) does not need to know the exact number of members
involved, which can be calculated with bms_num_members(), but just if
there is more than one relation involved, which is what bms_membership()
does.  The latter is more performant than the former so this shaves a
couple of cycles.

Author: Daniel Gustafsson
Reviewed-by: Ashutosh Bapat, Nathan Bossart
Discussion: https://postgr.es/m/C73594E0-2B67-4E10-BB35-CDE0E41CC384@yesql.se
contrib/postgres_fdw/deparse.c