Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
45842e6c
Commit
45842e6c
authored
Jan 27, 2004
by
Neil Conway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve the documentation of the 'join_collapse_limit' GUC var. Thanks to
Tom Lane for some editorial suggestions.
parent
7e34b2d7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
17 deletions
+52
-17
doc/src/sgml/runtime.sgml
doc/src/sgml/runtime.sgml
+52
-17
No files found.
doc/src/sgml/runtime.sgml
View file @
45842e6c
<!--
<!--
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.23
4 2004/01/25 03:30:00 momjian
Exp $
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.23
5 2004/01/27 16:51:43 neilc
Exp $
-->
-->
<Chapter Id="runtime">
<Chapter Id="runtime">
...
@@ -1462,11 +1462,11 @@ SET ENABLE_SEQSCAN TO OFF;
...
@@ -1462,11 +1462,11 @@ SET ENABLE_SEQSCAN TO OFF;
<term><varname>from_collapse_limit</varname> (<type>integer</type>)</term>
<term><varname>from_collapse_limit</varname> (<type>integer</type>)</term>
<listitem>
<listitem>
<para>
<para>
The planner will merge sub-queries into upper queries if the
resulting
The planner will merge sub-queries into upper queries if the
FROM list would have no more than this many items. Smaller values
resulting <literal>FROM</literal> list would have no more than
reduce planning time but may yield inferior query plans.
this many items. Smaller values reduce planning time but may
The default is 8. It is usually wise to keep this less than
yield inferior query plans. The default is 8. It is usually
<varname>geqo_threshold</varname>.
wise to keep this less than
<varname>geqo_threshold</varname>.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
...
@@ -1475,14 +1475,48 @@ SET ENABLE_SEQSCAN TO OFF;
...
@@ -1475,14 +1475,48 @@ SET ENABLE_SEQSCAN TO OFF;
<term><varname>join_collapse_limit</varname> (<type>integer</type>)</term>
<term><varname>join_collapse_limit</varname> (<type>integer</type>)</term>
<listitem>
<listitem>
<para>
<para>
The planner will flatten explicit inner <literal>JOIN</> constructs
The planner will rewrite explicit inner <literal>JOIN</>
into lists of <literal>FROM</> items whenever a list of no more than
constructs into lists of <literal>FROM</> items whenever a
this many items would result. Usually this is set the same as
list of no more than this many items in total would
<varname>from_collapse_limit</>. Setting it to 1 prevents any
result. Prior to <productname>PostgreSQL</> 7.4, joins
flattening of inner <literal>JOIN</>s, allowing explicit
specified via the <literal>JOIN</literal> construct would
<literal>JOIN</> syntax to be used to control the join order.
never be reordered by the query planner. The query planner has
Intermediate values might be useful to trade off planning time
subsequently been improved so that inner joins written in this
against quality of plan.
form can be reordered; this configuration variable controls
the extent to which this reordering is performed.
<note>
<para>
At present, the order of outer joins specified via the
<literal>JOIN</> construct is never adjusted by the query
planner; therefore, <varname>join_collapse_limit</> has no
effect on this behavior. The planner may be improved to
reorder some classes of outer joins in a future release of
<productname>PostgreSQL</productname>.
</para>
</note>
</para>
<para>
By default, this variable is set to
<varname>from_collapse_limit</varname>, which is appropriate
for most uses. Setting it to 1 prevents any reordering of
inner <literal>JOIN</>s. Thus, the explicit join order
specified in the query will be the actual order in which the
relations are joined. The query planner does not always choose
the optimal join order; advanced users may elect to
temporarily set this variable to 1, and then specify the join
order they desire explicitly. Another consequence of setting
this variable to 1 is that the query planner will behave more
like the <productname>PostgreSQL</productname> 7.3 query
planner, which some users might find useful for backward
compatibility reasons.
</para>
<para>
Setting this variable to a value between 1 and
<varname>from_collapse_limit</varname> might be useful to
trade off planning time against the quality of the chosen plan
(higher values produce better plans).
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
...
@@ -2583,9 +2617,10 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
...
@@ -2583,9 +2617,10 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
<term><varname>max_identifier_length</varname> (<type>integer</type>)</term>
<term><varname>max_identifier_length</varname> (<type>integer</type>)</term>
<listitem>
<listitem>
<para>
<para>
Shows the maximum identifier length. It is determined as one less than
Shows the maximum identifier length. It is determined as one
the value of <literal>NAMEDATALEN</> when building the server. The
less than the value of <literal>NAMEDATALEN</> when building
default value of NAMEDATALEN is 64; therefore the default
the server. The default value of <literal>NAMEDATALEN</> is
64; therefore the default
<varname>max_identifier_length</varname> is 63.
<varname>max_identifier_length</varname> is 63.
</para>
</para>
</listitem>
</listitem>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment