summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/config.sgml20
-rw-r--r--doc/src/sgml/fdwhandler.sgml20
2 files changed, 40 insertions, 0 deletions
diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml
index c13f60230f9..b012a269911 100644
--- a/doc/src/sgml/config.sgml
+++ b/doc/src/sgml/config.sgml
@@ -3632,6 +3632,26 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
</listitem>
</varlistentry>
+ <varlistentry id="guc-enable-partition-wise-join" xreflabel="enable_partition_wise_join">
+ <term><varname>enable_partition_wise_join</varname> (<type>boolean</type>)
+ <indexterm>
+ <primary><varname>enable_partition_wise_join</> configuration parameter</primary>
+ </indexterm>
+ </term>
+ <listitem>
+ <para>
+ Enables or disables the query planner's use of partition-wise join,
+ which allows a join between partitioned tables to be performed by
+ joining the matching partitions. Partition-wise join currently applies
+ only when the join conditions include all the partition keys, which
+ must be of the same data type and have exactly matching sets of child
+ partitions. Because partition-wise join planning can use significantly
+ more CPU time and memory during planning, the default is
+ <literal>off</>.
+ </para>
+ </listitem>
+ </varlistentry>
+
<varlistentry id="guc-enable-seqscan" xreflabel="enable_seqscan">
<term><varname>enable_seqscan</varname> (<type>boolean</type>)
<indexterm>
diff --git a/doc/src/sgml/fdwhandler.sgml b/doc/src/sgml/fdwhandler.sgml
index a59e03af98b..e63e29fd96f 100644
--- a/doc/src/sgml/fdwhandler.sgml
+++ b/doc/src/sgml/fdwhandler.sgml
@@ -1292,6 +1292,26 @@ ShutdownForeignScan(ForeignScanState *node);
</para>
</sect2>
+ <sect2 id="fdw-callbacks-reparameterize-paths">
+ <title>FDW Routines For reparameterization of paths</title>
+
+ <para>
+<programlisting>
+List *
+ReparameterizeForeignPathByChild(PlannerInfo *root, List *fdw_private,
+ RelOptInfo *child_rel);
+</programlisting>
+ This function is called while converting a path parameterized by the
+ top-most parent of the given child relation <literal>child_rel</> to be
+ parameterized by the child relation. The function is used to reparameterize
+ any paths or translate any expression nodes saved in the given
+ <literal>fdw_private</> member of a <structname>ForeignPath</>. The
+ callback may use <literal>reparameterize_path_by_child</>,
+ <literal>adjust_appendrel_attrs</> or
+ <literal>adjust_appendrel_attrs_multilevel</> as required.
+ </para>
+ </sect2>
+
</sect1>
<sect1 id="fdw-helpers">