[COMMITTERS] pgsql: Fix compilation with --with-bsd-auth.

2017-05-19 Thread Heikki Linnakangas
Fix compilation with --with-bsd-auth. Commit 8d3b9cce81 added extra arguments to the sendAuthRequest function, but neglected this caller inside #ifdef USE_BSD_AUTH. Per report from Pierre-Emmanuel André. Discussion: https://www.postgresql.org/message-id/20170519090336.whzmjzrsap6ktbgg@digipea.d

[COMMITTERS] pgsql: doc: fix PG 10 release notes with proper attribution and commit

2017-05-19 Thread Bruce Momjian
doc: fix PG 10 release notes with proper attribution and commit Fix for hot_standby=on change. Reported-by: Huong Dangminh Author: Huong Dangminh Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/f45d86d762b8bcdac42d5448734016242a1d738b Modified Files -

[COMMITTERS] pgsql: doc: remove duplicate PG 10 release notes entry

2017-05-19 Thread Bruce Momjian
doc: remove duplicate PG 10 release notes entry Reported-by: Daniel Gustafsson Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/f6d5d22ea9497aecdfdfa92717a11f0bcdf17223 Modified Files -- doc/src/sgml/release-10.sgml | 11 --- 1 file changed, 11 de

[COMMITTERS] pgsql: Fix argument name differences

2017-05-19 Thread Peter Eisentraut
Fix argument name differences Different names were used between function declaration and definition. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/7f17ae0ad07a76eeb1b26e7aa8c4539ce14b253b Modified Files -- src/backend/utils/adt/jsonfuncs.c | 10 +-

[COMMITTERS] pgsql: Fix corruption of tableElts list by MergeAttributes().

2017-05-19 Thread Robert Haas
Fix corruption of tableElts list by MergeAttributes(). Since commit e7b3349a8ad7afaad565c573fbd65fb46af6abbe, MergeAttributes destructively modifies the input List, to which the caller's CreateStmt still points. One may wonder whether this was already a bug, but commit f0e44751d7175fa3394da2c8f85

[COMMITTERS] pgsql: Fix misspelled struct tag.

2017-05-19 Thread Tom Lane
Fix misspelled struct tag. This was evidently intended to match the struct's typedef name, but it didn't quite. Noted while testing find_typedefs. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/cf5389f5b57af714d002d532add291f87ddb0062 Modified Files -

[COMMITTERS] pgsql: Copy partitioned_rels lists to avoid shared substructure.

2017-05-19 Thread Robert Haas
Copy partitioned_rels lists to avoid shared substructure. Otherwise, set_plan_refs() can get applied to the same list multiple times through different references, leading to chaos. Amit Langote, Dilip Kumar, and Robert Haas, reviewed by Ashutosh Bapat. Original report by Sveinn Sveinsson. Discu

[COMMITTERS] pgsql: Capitalize SHOW when testing whether target_session_attrs=read-w

2017-05-19 Thread Robert Haas
Capitalize SHOW when testing whether target_session_attrs=read-write. This makes it also work for replication connections. Report and patch by Daisuke Higuchi. Discussion: http://postgr.es/m/1803D792815FC24D871C00D17AE95905B1A34A@g01jpexmbkw24 Branch -- master Details --- https://git.

[COMMITTERS] pgsql: libpq: Try next host if one of them times out.

2017-05-19 Thread Robert Haas
libpq: Try next host if one of them times out. If one host in a multi-host connection string times out, move on to the next specified host instead of giving up entirely. Takayuki Tsunakawa, reviewed by Michael Paquier. I added a minor adjustment to the documentation. Discussion: http://postgr.

[COMMITTERS] pgsql: Fix mistake in error message

2017-05-19 Thread Peter Eisentraut
Fix mistake in error message Reported-by: tushar Author: Dilip Kumar Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/e807d8b16338c97e60e41344d0fc13bd9cf540be Modified Files -- src/backend/commands/subscriptioncmds.c | 2 +- 1 file changed, 1 insertion(

[COMMITTERS] pgsql: pg_upgrade: Handle hash index upgrades more smoothly.

2017-05-19 Thread Robert Haas
pg_upgrade: Handle hash index upgrades more smoothly. Mark any old hash indexes as invalid so that they don't get used, and create a script to run REINDEX on all of them. Without this, we'd still try to use any upgraded hash indexes, but it would fail. Amit Kapila, reviewed by me. Per a suggest

[COMMITTERS] pgsql: Rethink flex flags for syncrep_scanner.l.

2017-05-19 Thread Tom Lane
Rethink flex flags for syncrep_scanner.l. Using flex's -i switch to achieve case-insensitivity is not a very safe practice, because the scanner's behavior may then depend on the locale that flex was invoked in. In the particular example at hand, that's not academic: the possible matches for "FIRS