pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Don't reset changes_since_analyze after a selective-columns ANAL 6+ messages / 1 participants [nested] [flat]
* pgsql: Don't reset changes_since_analyze after a selective-columns ANAL @ 2016-06-06 21:44 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-06-06 21:44 UTC (permalink / raw) To: pgsql-committers 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 not it includes all analyzable columns of the table. Per complaint from Tomasz Ostrowski. It's been like this a long time, so back-patch to all supported branches. Report: <ef99c1bd-ff60-5f32-2733-c7b504eb960c@ato.waw.pl> Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/f64340e7436d0f848a99620196cede947bd61418 Modified Files -------------- src/backend/commands/analyze.c | 7 +++++-- src/backend/postmaster/pgstat.c | 15 +++++++++++---- src/include/pgstat.h | 4 +++- 3 files changed, 19 insertions(+), 7 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Don't reset changes_since_analyze after a selective-columns ANAL @ 2016-06-06 21:44 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-06-06 21:44 UTC (permalink / raw) To: pgsql-committers 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 not it includes all analyzable columns of the table. Per complaint from Tomasz Ostrowski. It's been like this a long time, so back-patch to all supported branches. Report: <ef99c1bd-ff60-5f32-2733-c7b504eb960c@ato.waw.pl> Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/5acc58c5e5336d16a1e238e8f1d599e8bfa4183b Modified Files -------------- src/backend/commands/analyze.c | 7 +++++-- src/backend/postmaster/pgstat.c | 15 +++++++++++---- src/include/pgstat.h | 4 +++- 3 files changed, 19 insertions(+), 7 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Don't reset changes_since_analyze after a selective-columns ANAL @ 2016-06-06 21:44 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-06-06 21:44 UTC (permalink / raw) To: pgsql-committers 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 not it includes all analyzable columns of the table. Per complaint from Tomasz Ostrowski. It's been like this a long time, so back-patch to all supported branches. Report: <ef99c1bd-ff60-5f32-2733-c7b504eb960c@ato.waw.pl> Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/a4400c251f93df7d4f5760ad633c041fc5dae376 Modified Files -------------- src/backend/commands/analyze.c | 7 +++++-- src/backend/postmaster/pgstat.c | 15 +++++++++++---- src/include/pgstat.h | 4 +++- 3 files changed, 19 insertions(+), 7 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Don't reset changes_since_analyze after a selective-columns ANAL @ 2016-06-06 21:44 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-06-06 21:44 UTC (permalink / raw) To: pgsql-committers 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 not it includes all analyzable columns of the table. Per complaint from Tomasz Ostrowski. It's been like this a long time, so back-patch to all supported branches. Report: <ef99c1bd-ff60-5f32-2733-c7b504eb960c@ato.waw.pl> Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/5f3e0e84b274dbbe605cd2d4c2717c14e2cfe787 Modified Files -------------- src/backend/commands/analyze.c | 7 +++++-- src/backend/postmaster/pgstat.c | 15 +++++++++++---- src/include/pgstat.h | 4 +++- 3 files changed, 19 insertions(+), 7 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Don't reset changes_since_analyze after a selective-columns ANAL @ 2016-06-06 21:44 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-06-06 21:44 UTC (permalink / raw) To: pgsql-committers 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 not it includes all analyzable columns of the table. Per complaint from Tomasz Ostrowski. It's been like this a long time, so back-patch to all supported branches. Report: <ef99c1bd-ff60-5f32-2733-c7b504eb960c@ato.waw.pl> Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/3201709de3a552113573f73d308b40bba8f73186 Modified Files -------------- src/backend/commands/analyze.c | 7 +++++-- src/backend/postmaster/pgstat.c | 15 +++++++++++---- src/include/pgstat.h | 4 +++- 3 files changed, 19 insertions(+), 7 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Don't reset changes_since_analyze after a selective-columns ANAL @ 2016-06-06 21:44 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-06-06 21:44 UTC (permalink / raw) To: pgsql-committers 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 not it includes all analyzable columns of the table. Per complaint from Tomasz Ostrowski. It's been like this a long time, so back-patch to all supported branches. Report: <ef99c1bd-ff60-5f32-2733-c7b504eb960c@ato.waw.pl> Branch ------ REL9_1_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/32ceb8dfbf3c2ae785a595db9821d16e92f8431b Modified Files -------------- src/backend/commands/analyze.c | 7 +++++-- src/backend/postmaster/pgstat.c | 15 +++++++++++---- src/include/pgstat.h | 4 +++- 3 files changed, 19 insertions(+), 7 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2016-06-06 21:44 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-06-06 21:44 pgsql: Don't reset changes_since_analyze after a selective-columns ANAL Tom Lane <tgl@sss.pgh.pa.us> 2016-06-06 21:44 pgsql: Don't reset changes_since_analyze after a selective-columns ANAL Tom Lane <tgl@sss.pgh.pa.us> 2016-06-06 21:44 pgsql: Don't reset changes_since_analyze after a selective-columns ANAL Tom Lane <tgl@sss.pgh.pa.us> 2016-06-06 21:44 pgsql: Don't reset changes_since_analyze after a selective-columns ANAL Tom Lane <tgl@sss.pgh.pa.us> 2016-06-06 21:44 pgsql: Don't reset changes_since_analyze after a selective-columns ANAL Tom Lane <tgl@sss.pgh.pa.us> 2016-06-06 21:44 pgsql: Don't reset changes_since_analyze after a selective-columns ANAL Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox