Re: --single-transaction hack to pg_upgrade does not work
Andres Freund <andres@2ndquadrant.com>
From: Andres Freund <andres@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bruce Momjian <bruce@momjian.us>, Andrew Dunstan <andrew@dunslane.net>, pgsql-hackers@postgresql.org
Date: 2012-12-01T18:32:48Z
Lists: pgsql-hackers
Attachments
- 0001-Allow-adding-new-labels-to-enums-inside-a-transactio.patch (text/x-patch) patch 0001
On 2012-12-01 12:14:37 -0500, Tom Lane wrote: > Andres Freund <andres@2ndquadrant.com> writes: > > On 2012-12-01 12:00:46 -0500, Tom Lane wrote: > >> ISTM this sort of thing ought to be safe enough, though you probably > >> need to insist both that the pg_type row's xmin be current XID and > >> that it not be HEAP_UPDATED. > > > I was concerned about updated rows but forgot about HEAP_UPDATED. So I > > thought that it would be possible to alter the type in some generic > > fashion (e.g. change owner) and then add new values. > > Yeah, I was just thinking about that: we'd have to fail if pg_dump > emitted CREATE TYPE, ALTER TYPE OWNER, and then tried to add more > values. Fortunately it doesn't do that; the ADD VALUE business is > just a multi-statement expansion of CREATE TYPE AS ENUM, and any > other ALTERs will come afterwards. Well, there's a binary_upgrade.set_next_pg_enum_oid() inbetween, but thats luckily just fine. > > Let me provide something a littlebit more mature. > > It could do with some comments ;-) Hehe, yes. Hopefully this version has enough of that. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
In pg_upgrade, dump each database separately and use
- 12ee6ec71f87 9.3.0 cited