postgres/src
Alvaro Herrera fb958b5da8
Generalize ri_RootToPartitionMap to use for non-partition children
ri_RootToPartitionMap is currently only initialized for tuple routing
target partitions, though a future commit will need the ability to use
it even for the non-partition child tables, so make adjustments to the
decouple it from the partitioning code.

Also, make it lazily initialized via ExecGetRootToChildMap(), making
that function its preferred access path.  Existing third-party code
accessing it directly should no longer do so; consequently, it's been
renamed to ri_RootToChildMap, which also makes it consistent with
ri_ChildToRootMap.

ExecGetRootToChildMap() houses the logic of setting the map appropriately
depending on whether a given child relation is partition or not.

To support this, also add a separate entry point for TupleConversionMap
creation that receives an AttrMap.  No new code here, just split an
existing function in two.

Author: Amit Langote <amitlangote09@gmail.com>
Discussion: https://postgr.es/m/CA+HiwqEYUhDXSK5BTvG_xk=eaAEJCD4GS3C6uH7ybBvv+Z_Tmg@mail.gmail.com
2022-12-02 10:35:55 +01:00
..
backend Generalize ri_RootToPartitionMap to use for non-partition children 2022-12-02 10:35:55 +01:00
bin Switch pg_dump to use compression specifications 2022-12-02 10:45:02 +09:00
common Refactor code parsing compression option values (-Z/--compress) 2022-11-30 09:34:32 +09:00
fe_utils meson: Add support for building with precompiled headers 2022-10-06 17:19:30 -07:00
include Generalize ri_RootToPartitionMap to use for non-partition children 2022-12-02 10:35:55 +01:00
interfaces Fix comment in fe-auth-scram.c 2022-11-30 08:37:59 +09:00
makefiles autoconf: Rely on ar supporting index creation 2022-10-07 11:53:39 -07:00
pl Allow building with MSVC and Strawberry perl 2022-11-25 15:28:38 -05:00
port autoconf: Unify CFLAGS_SSE42 and CFLAGS_ARMV8_CRC32C 2022-12-01 18:46:55 -08:00
template Move darwin sysroot determination into separate file 2022-09-01 16:54:19 -07:00
test Fix incorrect output from pgoutput when using column lists. 2022-12-02 10:52:58 +05:30
timezone Remove unneeded includes of <sys/stat.h> 2022-11-05 12:31:28 +09:00
tools Switch pg_dump to use compression specifications 2022-12-02 10:45:02 +09:00
tutorial Doc: sync src/tutorial/basics.source with SGML documentation. 2022-11-19 13:09:14 -05:00
.gitignore
DEVELOPERS
Makefile
Makefile.global.in autoconf: Don't AC_SUBST() LD in configure 2022-12-01 19:03:26 -08:00
Makefile.shlib autoconf: Rely on ar supporting index creation 2022-10-07 11:53:39 -07:00
meson.build meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
nls-global.mk Fix for make unportability 2022-07-13 09:15:01 +02:00