pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix pg_upgrade's multixact handling (again) 3+ messages / 1 participants [nested] [flat]
* pgsql: Fix pg_upgrade's multixact handling (again) @ 2015-04-30 17:01 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 3+ messages in thread From: Alvaro Herrera @ 2015-04-30 17:01 UTC (permalink / raw) To: pgsql-committers Fix pg_upgrade's multixact handling (again) We need to create the pg_multixact/offsets file deleted by pg_upgrade much earlier than we originally were: it was in TrimMultiXact(), which runs after we exit recovery, but it actually needs to run earlier than the first call to SetMultiXactIdLimit (before recovery), because that routine already wants to read the first offset segment. Per pg_upgrade trouble report from Jeff Janes. While at it, silence a compiler warning about a pointless assert that an unsigned variable was being tested non-negative. This was a signed constant in Thomas Munro's patch which I changed to unsigned before commit. Pointed out by Andres Freund. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/669c7d20e6374850593cb430d332e11a3992bbcf Modified Files -------------- src/backend/access/transam/multixact.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 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] 3+ messages in thread
* pgsql: Fix pg_upgrade's multixact handling (again) @ 2015-04-30 17:01 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 3+ messages in thread From: Alvaro Herrera @ 2015-04-30 17:01 UTC (permalink / raw) To: pgsql-committers Fix pg_upgrade's multixact handling (again) We need to create the pg_multixact/offsets file deleted by pg_upgrade much earlier than we originally were: it was in TrimMultiXact(), which runs after we exit recovery, but it actually needs to run earlier than the first call to SetMultiXactIdLimit (before recovery), because that routine already wants to read the first offset segment. Per pg_upgrade trouble report from Jeff Janes. While at it, silence a compiler warning about a pointless assert that an unsigned variable was being tested non-negative. This was a signed constant in Thomas Munro's patch which I changed to unsigned before commit. Pointed out by Andres Freund. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/e60581fdf3dee39d189925673ec17d2c794e84b5 Modified Files -------------- src/backend/access/transam/multixact.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 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] 3+ messages in thread
* pgsql: Fix pg_upgrade's multixact handling (again) @ 2015-04-30 17:01 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 3+ messages in thread From: Alvaro Herrera @ 2015-04-30 17:01 UTC (permalink / raw) To: pgsql-committers Fix pg_upgrade's multixact handling (again) We need to create the pg_multixact/offsets file deleted by pg_upgrade much earlier than we originally were: it was in TrimMultiXact(), which runs after we exit recovery, but it actually needs to run earlier than the first call to SetMultiXactIdLimit (before recovery), because that routine already wants to read the first offset segment. Per pg_upgrade trouble report from Jeff Janes. While at it, silence a compiler warning about a pointless assert that an unsigned variable was being tested non-negative. This was a signed constant in Thomas Munro's patch which I changed to unsigned before commit. Pointed out by Andres Freund. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/7140e11d8a81c988dc2f7369aaa1fd6ba276fb9e Modified Files -------------- src/backend/access/transam/multixact.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 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] 3+ messages in thread
end of thread, other threads:[~2015-04-30 17:01 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-04-30 17:01 pgsql: Fix pg_upgrade's multixact handling (again) Alvaro Herrera <alvherre@alvh.no-ip.org> 2015-04-30 17:01 pgsql: Fix pg_upgrade's multixact handling (again) Alvaro Herrera <alvherre@alvh.no-ip.org> 2015-04-30 17:01 pgsql: Fix pg_upgrade's multixact handling (again) Alvaro Herrera <alvherre@alvh.no-ip.org>
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