[COMMITTERS] pgsql: Make contrib/test_decoding regression tests safe for CZ locale.

2016-11-21 Thread Tom Lane
Make contrib/test_decoding regression tests safe for CZ locale. A little COLLATE "C" goes a long way. Pavel Stehule, per suggestion from Craig Ringer Discussion: Branch -- REL9_6_STABLE Details --- http://git.postgresql.org/pg/commitdiff/292765ce3504856062270fff4b08cd12d5bd143f Modif

[COMMITTERS] pgsql: Make contrib/test_decoding regression tests safe for CZ locale.

2016-11-21 Thread Tom Lane
Make contrib/test_decoding regression tests safe for CZ locale. A little COLLATE "C" goes a long way. Pavel Stehule, per suggestion from Craig Ringer Discussion: Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/e2a0ee69006bf31f24958b72c93455412cba035c Modified Fil

[COMMITTERS] pgsql: Make contrib/test_decoding regression tests safe for CZ locale.

2016-11-21 Thread Tom Lane
Make contrib/test_decoding regression tests safe for CZ locale. A little COLLATE "C" goes a long way. Pavel Stehule, per suggestion from Craig Ringer Discussion: Branch -- REL9_4_STABLE Details --- http://git.postgresql.org/pg/commitdiff/4bc8b7bbdf8e37b6a1dfc472279d94403902919a Modif

[COMMITTERS] pgsql: Make contrib/test_decoding regression tests safe for CZ locale.

2016-11-21 Thread Tom Lane
Make contrib/test_decoding regression tests safe for CZ locale. A little COLLATE "C" goes a long way. Pavel Stehule, per suggestion from Craig Ringer Discussion: Branch -- REL9_5_STABLE Details --- http://git.postgresql.org/pg/commitdiff/89c2d81438da2e0bc66ed819769748d58f03a489 Modif

[COMMITTERS] pgsql: Fix uninitialized variable.

2016-11-21 Thread Tom Lane
Fix uninitialized variable. Oversight in a734fd5d1. Michael Paquier Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/ae92a9a3806c025653140ee6316a82d55e24b82c Modified Files -- src/backend/postmaster/autovacuum.c | 2 +- 1 file changed, 1 insertion(+), 1 d

[COMMITTERS] pgsql: Fix PGLC_localeconv() to handle errors better.

2016-11-21 Thread Tom Lane
Fix PGLC_localeconv() to handle errors better. The code was intentionally not very careful about leaking strdup'd strings in case of an error. That was forgivable probably, but it also failed to notice strdup() failures, which could lead to subsequent null-pointer-dereference crashes, since many

[COMMITTERS] pgsql: Fix PGLC_localeconv() to handle errors better.

2016-11-21 Thread Tom Lane
Fix PGLC_localeconv() to handle errors better. The code was intentionally not very careful about leaking strdup'd strings in case of an error. That was forgivable probably, but it also failed to notice strdup() failures, which could lead to subsequent null-pointer-dereference crashes, since many

[COMMITTERS] pgsql: Fix PGLC_localeconv() to handle errors better.

2016-11-21 Thread Tom Lane
Fix PGLC_localeconv() to handle errors better. The code was intentionally not very careful about leaking strdup'd strings in case of an error. That was forgivable probably, but it also failed to notice strdup() failures, which could lead to subsequent null-pointer-dereference crashes, since many

[COMMITTERS] pgsql: Fix PGLC_localeconv() to handle errors better.

2016-11-21 Thread Tom Lane
Fix PGLC_localeconv() to handle errors better. The code was intentionally not very careful about leaking strdup'd strings in case of an error. That was forgivable probably, but it also failed to notice strdup() failures, which could lead to subsequent null-pointer-dereference crashes, since many

[COMMITTERS] pgsql: Fix PGLC_localeconv() to handle errors better.

2016-11-21 Thread Tom Lane
Fix PGLC_localeconv() to handle errors better. The code was intentionally not very careful about leaking strdup'd strings in case of an error. That was forgivable probably, but it also failed to notice strdup() failures, which could lead to subsequent null-pointer-dereference crashes, since many

[COMMITTERS] pgsql: Fix PGLC_localeconv() to handle errors better.

2016-11-21 Thread Tom Lane
Fix PGLC_localeconv() to handle errors better. The code was intentionally not very careful about leaking strdup'd strings in case of an error. That was forgivable probably, but it also failed to notice strdup() failures, which could lead to subsequent null-pointer-dereference crashes, since many

[COMMITTERS] pgsql: Fix optimization for skipping searches for parallel-query hazard

2016-11-21 Thread Tom Lane
Fix optimization for skipping searches for parallel-query hazards. Fix thinko in commit da1c91631: even if the original query was free of parallel hazards, we might introduce such a hazard by adding PARAM_EXEC Param nodes. Adjust is_parallel_safe() so that it will scan the given expression whenev

[COMMITTERS] pgsql: autovacuum: Drop orphan temp tables more quickly but with more c

2016-11-21 Thread Robert Haas
autovacuum: Drop orphan temp tables more quickly but with more caution. Previously, we only dropped an orphan temp table when it became old enough to threaten wraparound; instead, doing it immediately. The only value of waiting is that someone might be able to examine the contents of the orphan t

[COMMITTERS] pgsql: Fix test for subplans in force-parallel mode.

2016-11-21 Thread Tom Lane
Fix test for subplans in force-parallel mode. We mustn't force parallel mode if the query has any subplans, since ExecSerializePlan doesn't transmit them to workers. Testing top_plan->initPlan is inadequate because (1) there might be initPlans attached to lower plan nodes, and (2) non-initPlan su

[COMMITTERS] pgsql: Fix test for subplans in force-parallel mode.

2016-11-21 Thread Tom Lane
Fix test for subplans in force-parallel mode. We mustn't force parallel mode if the query has any subplans, since ExecSerializePlan doesn't transmit them to workers. Testing top_plan->initPlan is inadequate because (1) there might be initPlans attached to lower plan nodes, and (2) non-initPlan su