Skip to content

Commit 2de2911

Browse files
committed
Merge branch 'REL9_6_STABLE' into PGPRO9_6
2 parents 5f257e0 + 6f932ca commit 2de2911

File tree

5 files changed

+12
-23
lines changed

5 files changed

+12
-23
lines changed

doc/src/sgml/ref/pg_basebackup.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ doc/src/sgml/ref/pg_basebackup.sgml
8888
There is no guarantee that all WAL files required for the backup are archived
8989
at the end of backup. If you are planning to use the backup for an archive
9090
recovery and want to ensure that all required files are available at that moment,
91-
you need to include them into the backup by using <literal>-x</> option.
91+
you need to include them into the backup by using the <literal>-x</> option.
9292
</para>
9393
</listitem>
9494
<listitem>

doc/src/sgml/textsearch.sgml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,19 +1290,7 @@ query.',
12901290
<para>
12911291
<function>ts_headline</> uses the original document, not a
12921292
<type>tsvector</type> summary, so it can be slow and should be used with
1293-
care. A typical mistake is to call <function>ts_headline</function> for
1294-
<emphasis>every</emphasis> matching document when only ten documents are
1295-
to be shown. <acronym>SQL</acronym> subqueries can help; here is an
1296-
example:
1297-
1298-
<programlisting>
1299-
SELECT id, ts_headline(body, q), rank
1300-
FROM (SELECT id, body, q, ts_rank_cd(ti, q) AS rank
1301-
FROM apod, to_tsquery('stars') q
1302-
WHERE ti @@ q
1303-
ORDER BY rank DESC
1304-
LIMIT 10) AS foo;
1305-
</programlisting>
1293+
care.
13061294
</para>
13071295

13081296
</sect2>

doc/src/sgml/xfunc.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2870,15 +2870,15 @@ HeapTupleGetDatum(HeapTuple tuple)
28702870
is used to hold a pointer to <structname>FuncCallContext</>
28712871
across calls.
28722872
<programlisting>
2873-
typedef struct
2873+
typedef struct FuncCallContext
28742874
{
28752875
/*
28762876
* Number of times we've been called before
28772877
*
28782878
* call_cntr is initialized to 0 for you by SRF_FIRSTCALL_INIT(), and
28792879
* incremented for you every time SRF_RETURN_NEXT() is called.
28802880
*/
2881-
uint32 call_cntr;
2881+
uint64 call_cntr;
28822882

28832883
/*
28842884
* OPTIONAL maximum number of calls
@@ -2887,7 +2887,7 @@ typedef struct
28872887
* If not set, you must provide alternative means to know when the
28882888
* function is done.
28892889
*/
2890-
uint32 max_calls;
2890+
uint64 max_calls;
28912891

28922892
/*
28932893
* OPTIONAL pointer to result slot

src/backend/optimizer/plan/planner.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3714,11 +3714,11 @@ create_grouping_paths(PlannerInfo *root,
37143714
&total_groups);
37153715

37163716
/*
3717-
* Gather is always unsorted, so we'll need to sort, unless
3718-
* there's no GROUP BY clause, in which case there will only be a
3719-
* single group.
3717+
* Since Gather's output is always unsorted, we'll need to sort,
3718+
* unless there's no GROUP BY clause or a degenerate (constant)
3719+
* one, in which case there will only be a single group.
37203720
*/
3721-
if (parse->groupClause)
3721+
if (root->group_pathkeys)
37223722
path = (Path *) create_sort_path(root,
37233723
grouped_rel,
37243724
path,

src/include/utils/rel.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,9 @@ typedef struct StdRdOptions
270270
* from the pov of logical decoding. Note multiple eval of argument!
271271
*/
272272
#define RelationIsUsedAsCatalogTable(relation) \
273-
((relation)->rd_rel->relkind == RELKIND_RELATION && \
274-
(relation)->rd_options ? \
273+
((relation)->rd_options && \
274+
((relation)->rd_rel->relkind == RELKIND_RELATION || \
275+
(relation)->rd_rel->relkind == RELKIND_MATVIEW) ? \
275276
((StdRdOptions *) (relation)->rd_options)->user_catalog_table : false)
276277

277278
/*

0 commit comments

Comments
 (0)