postgresql/contrib
Richard Guo aa86129e19 Support "Right Semi Join" plan shapes
Hash joins can support semijoin with the LHS input on the right, using
the existing logic for inner join, combined with the assurance that only
the first match for each inner tuple is considered, which can be
achieved by leveraging the HEAP_TUPLE_HAS_MATCH flag.  This can be very
useful in some cases since we may now have the option to hash the
smaller table instead of the larger.

Merge join could likely support "Right Semi Join" too.  However, the
benefit of swapping inputs tends to be small here, so we do not address
that in this patch.

Note that this patch also modifies a test query in join.sql to ensure it
continues testing as intended.  With this patch the original query would
result in a right-semi-join rather than semi-join, compromising its
original purpose of testing the fix for neqjoinsel's behavior for
semi-joins.

Author: Richard Guo
Reviewed-by: wenhui qiu, Alena Rybakina, Japin Li
Discussion: https://postgr.es/m/CAMbWs4_X1mN=ic+SxcyymUqFx9bB8pqSLTGJ-F=MHy4PW3eRXw@mail.gmail.com
2024-07-05 09:26:48 +09:00
..
amcheck Cleanup perl code from unused variables and routines 2024-07-02 09:47:16 +09:00
auth_delay
auto_explain
basebackup_to_shell
basic_archive Add built-in ERROR handling for archive callbacks. 2024-04-02 22:28:11 -05:00
bloom
bool_plperl
btree_gin
btree_gist Revert temporal primary keys and foreign keys 2024-05-16 08:17:46 +02:00
citext Skip citext_utf8 test on Windows. 2024-05-13 07:55:58 +12:00
cube
dblink Make libpqsrv_cancel's return const char *, not char * 2024-04-05 18:23:10 +02:00
dict_int
dict_xsyn
earthdistance
file_fdw
fuzzystrmatch
hstore
hstore_plperl
hstore_plpython
intagg
intarray
isn Convert some extern variables to static 2024-07-02 07:26:22 +02:00
jsonb_plperl
jsonb_plpython
lo
ltree
ltree_plpython
oid2name
pageinspect Use TupleDescAttr macro consistently 2024-07-02 13:41:47 +12:00
passwordcheck
pg_buffercache Add pg_buffercache_evict() function for testing. 2024-04-08 16:23:40 +12:00
pg_freespacemap
pg_prewarm Unify some error messages 2024-06-20 11:10:26 +02:00
pg_stat_statements Revise GUC names quoting in messages again 2024-05-17 11:44:26 +02:00
pg_surgery
pg_trgm
pg_visibility
pg_walinspect Assign error codes where missing for user-facing failures 2024-07-04 09:48:40 +09:00
pgcrypto Remove support for HPPA (a/k/a PA-RISC) architecture. 2024-07-01 13:55:52 -04:00
pgrowlocks
pgstattuple
postgres_fdw Support "Right Semi Join" plan shapes 2024-07-05 09:26:48 +09:00
seg
sepgsql Revise GUC names quoting in messages again 2024-05-17 11:44:26 +02:00
spi
sslinfo
start-scripts
tablefunc
tcn
test_decoding Make RelationFlushRelation() work without ResourceOwner during abort 2024-06-06 18:56:28 +03:00
tsm_system_rows
tsm_system_time
unaccent
uuid-ossp
vacuumlo
xml2
contrib-global.mk
Makefile
meson.build
README

The PostgreSQL contrib tree
---------------------------

This subtree contains porting tools, analysis utilities, and plug-in
features that are not part of the core PostgreSQL system, mainly
because they address a limited audience or are too experimental to be
part of the main source tree.  This does not preclude their
usefulness.

User documentation for each module appears in the main SGML
documentation.

When building from the source distribution, these modules are not
built automatically, unless you build the "world" target.  You can
also build and install them all by running "make all" and "make
install" in this directory; or to build and install just one selected
module, do the same in that module's subdirectory.

Some directories supply new user-defined functions, operators, or
types.  To make use of one of these modules, after you have installed
the code you need to register the new SQL objects in the database
system by executing a CREATE EXTENSION command.  In a fresh database,
you can simply do

    CREATE EXTENSION module_name;

See the PostgreSQL documentation for more information about this
procedure.