postgresql/contrib/btree_gin/expected
Tom Lane ff720a597c Fix planner to consider matches to boolean columns in extension indexes.
The planner has to special-case indexes on boolean columns, because
what we need for an indexscan on such a column is a qual of the shape
of "boolvar = pseudoconstant".  For plain bool constants, previous
simplification will have reduced this to "boolvar" or "NOT boolvar",
and we have to reverse that if we want to make an indexqual.  There is
existing code to do so, but it only fires when the index's opfamily
is BOOL_BTREE_FAM_OID or BOOL_HASH_FAM_OID.  Thus extension AMs, or
extension opclasses such as contrib/btree_gin, are out in the cold.

The reason for hard-wiring the set of relevant opfamilies was mostly
to avoid a catalog lookup in a hot code path.  We can improve matters
while not taking much of a performance hit by relying on the
hard-wired set when the opfamily OID is visibly built-in, and only
checking the catalogs when dealing with an extension opfamily.

While here, rename IsBooleanOpfamily to IsBuiltinBooleanOpfamily
to remind future users of that macro of its limitations.  At some
point we might want to make indxpath.c's improved version of the
test globally accessible, but it's not presently needed elsewhere.

Zongliang Quan and Tom Lane

Discussion: https://postgr.es/m/f293b91d-1d46-d386-b6bb-4b06ff5c667b@yeah.net
2022-09-02 17:01:51 -04:00
..
bit.out Add btree_gin contrib module. 2009-03-25 23:20:01 +00:00
bool.out Fix planner to consider matches to boolean columns in extension indexes. 2022-09-02 17:01:51 -04:00
bpchar.out Add support of bool, bpchar, name and uuid to btree_gin 2018-04-05 18:19:10 +03:00
bytea.out Make contrib regression tests safe for Danish locale. 2016-07-21 16:52:35 -04:00
char.out Fix failure of btree_gin indexscans with "char" type and </<= operators. 2021-08-10 18:10:29 -04:00
cidr.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
date.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
enum.out Add btree_gin support for enum types 2017-03-21 11:04:17 -04:00
float4.out Add btree_gin contrib module. 2009-03-25 23:20:01 +00:00
float8.out Add btree_gin contrib module. 2009-03-25 23:20:01 +00:00
inet.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
install_btree_gin.out Test all contrib-created operator classes with amvalidate. 2016-11-29 15:05:22 -05:00
int2.out Add btree_gin contrib module. 2009-03-25 23:20:01 +00:00
int4.out Add btree_gin contrib module. 2009-03-25 23:20:01 +00:00
int8.out Add btree_gin contrib module. 2009-03-25 23:20:01 +00:00
interval.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
macaddr.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
macaddr8.out Add support for EUI-64 MAC addresses as macaddr8 2017-03-15 11:16:25 -04:00
money.out Add btree_gin contrib module. 2009-03-25 23:20:01 +00:00
name.out Add support of bool, bpchar, name and uuid to btree_gin 2018-04-05 18:19:10 +03:00
numeric.out Add btree_gin contrib module. 2009-03-25 23:20:01 +00:00
oid.out Add btree_gin contrib module. 2009-03-25 23:20:01 +00:00
text.out Make contrib regression tests safe for Danish locale. 2016-07-21 16:52:35 -04:00
time.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
timestamp.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
timestamptz.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
timetz.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
uuid.out Add support of bool, bpchar, name and uuid to btree_gin 2018-04-05 18:19:10 +03:00
varbit.out Add btree_gin contrib module. 2009-03-25 23:20:01 +00:00
varchar.out Make contrib regression tests safe for Danish locale. 2016-07-21 16:52:35 -04:00