[COMMITTERS] pgsql: pg_upgrade: Improve error checking in rewriteVisibilityMap.

2016-06-06 Thread Robert Haas
pg_upgrade: Improve error checking in rewriteVisibilityMap. In the old logic, if read() were to return an error, we'd silently stop rewriting the visibility map at that point in the file. That's safe, but reporting the error is better, so do that instead. Report by Andres Freund. Patch by Masah

[COMMITTERS] pgsql: Fix typo.

2016-06-06 Thread Robert Haas
Fix typo. Jim Nasby Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/932b97a0112aa950af51dfb26645cd67d368f1f3 Modified Files -- src/backend/access/heap/heapam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- Sent via pgsql-committers mailing l

[COMMITTERS] pgsql: pg_upgrade: Don't overwrite existing files.

2016-06-06 Thread Robert Haas
pg_upgrade: Don't overwrite existing files. For historical reasons, copyFile and rewriteVisibilityMap took a force argument which was always passed as true, meaning that any existing file should be overwritten. However, it seems much safer to instead fail if a file we need to write already exists

[COMMITTERS] pgsql: shm_mq: After a send fails with SHM_MQ_DETACHED, later ones shou

2016-06-06 Thread Robert Haas
shm_mq: After a send fails with SHM_MQ_DETACHED, later ones should too. Prior to this patch, it was occasionally possible, after shm_mq_sendv had previously returned SHM_MQ_DETACHED, for a later shm_mq_sendv operation to fail an assertion instead of just again returning SHM_MQ_ATTACHED. From the

[COMMITTERS] pgsql: Stop the executor if no more tuples can be sent from worker to l

2016-06-06 Thread Robert Haas
Stop the executor if no more tuples can be sent from worker to leader. If a Gather node has read as many tuples as it needs (for example, due to Limit) it may detach the queue connecting it to the worker before reading all of the worker's tuples. Rather than let the worker continue to generate an

[COMMITTERS] pgsql: Don't reset changes_since_analyze after a selective-columns ANAL

2016-06-06 Thread Tom Lane
Don't reset changes_since_analyze after a selective-columns ANALYZE. If we ANALYZE only selected columns of a table, we should not postpone auto-analyze because of that; other columns may well still need stats updates. As committed, the counter is left alone if a column list is given, whether or

[COMMITTERS] pgsql: Don't reset changes_since_analyze after a selective-columns ANAL

2016-06-06 Thread Tom Lane
Don't reset changes_since_analyze after a selective-columns ANALYZE. If we ANALYZE only selected columns of a table, we should not postpone auto-analyze because of that; other columns may well still need stats updates. As committed, the counter is left alone if a column list is given, whether or

[COMMITTERS] pgsql: Don't reset changes_since_analyze after a selective-columns ANAL

2016-06-06 Thread Tom Lane
Don't reset changes_since_analyze after a selective-columns ANALYZE. If we ANALYZE only selected columns of a table, we should not postpone auto-analyze because of that; other columns may well still need stats updates. As committed, the counter is left alone if a column list is given, whether or

[COMMITTERS] pgsql: Don't reset changes_since_analyze after a selective-columns ANAL

2016-06-06 Thread Tom Lane
Don't reset changes_since_analyze after a selective-columns ANALYZE. If we ANALYZE only selected columns of a table, we should not postpone auto-analyze because of that; other columns may well still need stats updates. As committed, the counter is left alone if a column list is given, whether or

[COMMITTERS] pgsql: Don't reset changes_since_analyze after a selective-columns ANAL

2016-06-06 Thread Tom Lane
Don't reset changes_since_analyze after a selective-columns ANALYZE. If we ANALYZE only selected columns of a table, we should not postpone auto-analyze because of that; other columns may well still need stats updates. As committed, the counter is left alone if a column list is given, whether or

[COMMITTERS] pgsql: Don't reset changes_since_analyze after a selective-columns ANAL

2016-06-06 Thread Tom Lane
Don't reset changes_since_analyze after a selective-columns ANALYZE. If we ANALYZE only selected columns of a table, we should not postpone auto-analyze because of that; other columns may well still need stats updates. As committed, the counter is left alone if a column list is given, whether or