pgsql: Convert some long lists in configure.in to one-line-per-entry st

2018-10-08 Thread Tom Lane
Convert some long lists in configure.in to one-line-per-entry style. The idea here is that patches that add items to these lists will often be easier to rebase over other additions to the same lists, because they won't be trying to touch the very same line of configure.in. There will still be mer

pgsql: Relax transactional restrictions on ALTER TYPE ... ADD VALUE (re

2018-10-08 Thread Thomas Munro
Relax transactional restrictions on ALTER TYPE ... ADD VALUE (redux). Originally committed as 15bc038f (plus some follow-ups), this was reverted in 28e07270 due to a problem discovered in parallel workers. This new version corrects that problem by sending the list of uncommitted enum values to pa

pgsql: Fix omissions in snprintf.c's coverage of standard *printf funct

2018-10-08 Thread Tom Lane
Fix omissions in snprintf.c's coverage of standard *printf functions. A warning on a NetBSD box revealed to me that pg_waldump/compat.c is using vprintf(), which snprintf.c did not provide coverage for. This is not good if we want to have uniform *printf behavior, and it's pretty silly to omit whe

pgsql: Stamp 11rc1.

2018-10-08 Thread Tom Lane
Stamp 11rc1. Branch -- REL_11_STABLE Details --- https://git.postgresql.org/pg/commitdiff/4c676181cdb6c16c414d5e9cd2304f5c73881601 Modified Files -- configure | 18 +- configure.in | 2 +- doc/bug.template | 2

pgsql: Advance transaction timestamp for intra-procedure transactions.

2018-10-08 Thread Tom Lane
Advance transaction timestamp for intra-procedure transactions. Per discussion, this behavior seems less astonishing than not doing so. Peter Eisentraut and Tom Lane Discussion: https://postgr.es/m/20180920234040.gc29...@momjian.us Branch -- master Details --- https://git.postgresql.or

pgsql: Advance transaction timestamp for intra-procedure transactions.

2018-10-08 Thread Tom Lane
Advance transaction timestamp for intra-procedure transactions. Per discussion, this behavior seems less astonishing than not doing so. Peter Eisentraut and Tom Lane Discussion: https://postgr.es/m/20180920234040.gc29...@momjian.us Branch -- REL_11_STABLE Details --- https://git.postgr

pgsql: Improve snprintf.c's handling of NaN, Infinity, and minus zero.

2018-10-08 Thread Tom Lane
Improve snprintf.c's handling of NaN, Infinity, and minus zero. Up to now, float4out/float8out handled NaN and Infinity cases explicitly, and invoked psprintf only for ordinary float values. This was done because platform implementations of snprintf produce varying representations of these specia

pgsql: Avoid O(N^2) cost in ExecFindRowMark().

2018-10-08 Thread Tom Lane
Avoid O(N^2) cost in ExecFindRowMark(). If there are many ExecRowMark structs, we spent O(N^2) time in ExecFindRowMark during executor startup. Once upon a time this was not of great concern, but the addition of native partitioning has squeezed out enough other costs that this can become the domi

pgsql: Silence compiler warning in Assert()

2018-10-08 Thread Alvaro Herrera
Silence compiler warning in Assert() gcc 6.3 does not whine about this mistake I made in 39808e8868c8 but evidently lots of other compilers do, according to Michael Paquier, Peter Eisentraut, Arthur Zakirov, Tomas Vondra. Discussion: too many to list Branch -- REL_11_STABLE Details ---

pgsql: Silence compiler warning in Assert()

2018-10-08 Thread Alvaro Herrera
Silence compiler warning in Assert() gcc 6.3 does not whine about this mistake I made in 39808e8868c8 but evidently lots of other compilers do, according to Michael Paquier, Peter Eisentraut, Arthur Zakirov, Tomas Vondra. Discussion: too many to list Branch -- master Details --- https:/

pgsql: Silence compiler warning in Assert()

2018-10-08 Thread Alvaro Herrera
Silence compiler warning in Assert() gcc 6.3 does not whine about this mistake I made in 39808e8868c8 but evidently lots of other compilers do, according to Michael Paquier, Peter Eisentraut, Arthur Zakirov, Tomas Vondra. Discussion: too many to list Branch -- REL_10_STABLE Details ---

pgsql: Silence compiler warning in Assert()

2018-10-08 Thread Alvaro Herrera
Silence compiler warning in Assert() gcc 6.3 does not whine about this mistake I made in 39808e8868c8 but evidently lots of other compilers do, according to Michael Paquier, Peter Eisentraut, Arthur Zakirov, Tomas Vondra. Discussion: too many to list Branch -- REL9_5_STABLE Details ---

pgsql: Silence compiler warning in Assert()

2018-10-08 Thread Alvaro Herrera
Silence compiler warning in Assert() gcc 6.3 does not whine about this mistake I made in 39808e8868c8 but evidently lots of other compilers do, according to Michael Paquier, Peter Eisentraut, Arthur Zakirov, Tomas Vondra. Discussion: too many to list Branch -- REL9_6_STABLE Details ---

pgsql: Translation updates

2018-10-08 Thread Peter Eisentraut
Translation updates Source-Git-URL: https://git.postgresql.org/git/pgtranslation/messages.git Source-Git-Hash: 64b916c6c8a34d9e6aad88e78cc2356a941f1335 Branch -- REL_11_STABLE Details --- https://git.postgresql.org/pg/commitdiff/69ff26b96f6f1ea947bd52d18f21e99fd61c25ec Modified Files --

Re: pgsql: Fix event triggers for partitioned tables

2018-10-08 Thread Peter Eisentraut
On 07/10/2018 00:18, Alvaro Herrera wrote: > Fix event triggers for partitioned tables It looks like this is causing compiler warnings: event_trigger.c: In function 'EventTriggerCollectAlterTableSubcmd': ../../../src/include/c.h:605:51: error: comparison between pointer and zero character constan

pgsql: Track procedure calls in pg_stat_user_functions

2018-10-08 Thread Peter Eisentraut
Track procedure calls in pg_stat_user_functions This was forgotten when procedures were implemented. Reported-by: Lukas Fittl Branch -- REL_11_STABLE Details --- https://git.postgresql.org/pg/commitdiff/c2055a4a171b11a7d0df7fabeaaeec9b8cdf85af Modified Files -- src/backend

pgsql: Track procedure calls in pg_stat_user_functions

2018-10-08 Thread Peter Eisentraut
Track procedure calls in pg_stat_user_functions This was forgotten when procedures were implemented. Reported-by: Lukas Fittl Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/634b4b79cbc7638feb459a1b76eae7af47af4606 Modified Files -- src/backend/comman

pgsql: Improve two error messages related to foreign keys on partitione

2018-10-08 Thread Michael Paquier
Improve two error messages related to foreign keys on partitioned tables Error messages for creating a foreign key on a partitioned table using ONLY or NOT VALID were wrong in mentioning the objects they worked on. This commit adds on the way some regression tests missing for those cases. Author:

pgsql: Improve two error messages related to foreign keys on partitione

2018-10-08 Thread Michael Paquier
Improve two error messages related to foreign keys on partitioned tables Error messages for creating a foreign key on a partitioned table using ONLY or NOT VALID were wrong in mentioning the objects they worked on. This commit adds on the way some regression tests missing for those cases. Author:

pgsql: Fix speling error

2018-10-08 Thread Magnus Hagander
Fix speling error Reported by Alexander Lakhin in bug #15423 Branch -- REL_11_STABLE Details --- https://git.postgresql.org/pg/commitdiff/4d7c74039f091e04e520d5688c964f653f8c55a8 Modified Files -- src/bin/pg_basebackup/pg_basebackup.c | 2 +- 1 file changed, 1 insertion(+), 1