[COMMITTERS] pgsql: Add pg_current_logfile() function.

2017-03-02 Thread Robert Haas
Add pg_current_logfile() function. The syslogger will write out the current stderr and csvlog names, if it's running and there are any, to a new file in the data directory called "current_logfiles". We take care to remove this file when it might no longer be valid (but not at shutdown). The func

[COMMITTERS] pgsql: Notify bgworker registrant after freeing worker slot.

2017-03-02 Thread Robert Haas
Notify bgworker registrant after freeing worker slot. Tom Lane observed buildfarm failures caused by the select_parallel regression test trying to launch new parallel queries before the worker slots used by the previous ones were freed. Try to fix this by having the postmaster free the worker slo

[COMMITTERS] pgsql: Improve error reporting for tuple-routing failures.

2017-03-02 Thread Robert Haas
Improve error reporting for tuple-routing failures. Currently, the whole row is shown without column names. Instead, adopt a style similar to _bt_check_unique() in ExecFindPartition() and show the failing key: (key1, ...) = (val1, ...). Amit Langote, per a complaint from Simon Riggs. Reviewed b

[COMMITTERS] pgsql: Correct old release note item

2017-03-02 Thread Peter Eisentraut
Correct old release note item Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/be6ed6451c693d9121d357996cbc21b06058b9c1 Modified Files -- doc/src/sgml/release-old.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- Sent via pgsql-committers mai

[COMMITTERS] pgsql: Update documentation of tsquery_phrase().

2017-03-02 Thread Tom Lane
Update documentation of tsquery_phrase(). Missed in commit 028350f61. Noted by Eiji Seki. Branch -- REL9_6_STABLE Details --- http://git.postgresql.org/pg/commitdiff/b0344f877f8c0f58e002d55349b233e436df8358 Modified Files -- doc/src/sgml/func.sgml | 2 +- 1 file changed, 1 i

[COMMITTERS] pgsql: Update documentation of tsquery_phrase().

2017-03-02 Thread Tom Lane
Update documentation of tsquery_phrase(). Missed in commit 028350f61. Noted by Eiji Seki. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/d99706ed5178d7f37ac322e02e8c56e4e5e0e99a Modified Files -- doc/src/sgml/func.sgml | 2 +- 1 file changed, 1 insertio

[COMMITTERS] pgsql: Refactor bitmap heap scan in preparation for parallel support.

2017-03-02 Thread Robert Haas
Refactor bitmap heap scan in preparation for parallel support. The final patch will be less messy if the prefetching support is a bit better isolated, so do that. Dilip Kumar, with some changes by me. The larger patch set of which this is a part has been reviewed and tested by (at least) Andres

[COMMITTERS] pgsql: Don't uselessly rewrite, truncate, VACUUM, or ANALYZE partitione

2017-03-02 Thread Robert Haas
Don't uselessly rewrite, truncate, VACUUM, or ANALYZE partitioned tables. Also, recursively perform VACUUM and ANALYZE on partitions when the command is applied to a partitioned table. In passing, some related documentation updates. Amit Langote, reviewed by Michael Paquier, Ashutosh Bapat, and

[COMMITTERS] pgsql: Update comments overlooked by 2f5c9d9c9cec436e55847ec580606d7e88

2017-03-02 Thread Robert Haas
Update comments overlooked by 2f5c9d9c9cec436e55847ec580606d7e88067df6. Tomas Vondra Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/fa42b2005f0cd825fe5a5fd4db93a7c30b5fe883 Modified Files -- src/backend/catalog/index.c| 10 +- src/backend