pg_resetxlog -m documentation not up to date
pg_resetxlog -m documentation not up to date
От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
The pg_resetxlog -m option was changed from -m XID set next multitransaction ID to -m XID,OLDEST set next multitransaction ID and oldest value but the man page does not reflect that change. It was introduced in 0ac5ad5134f2769ccbaefec73844f8504c4d6182 "Improve concurrency of foreign key locking", but there is also no explanation there. It is apparently needed in pg_upgrade. This should be documented, and I think the help line should be changed to something like -m XID,XID set next and oldest multitransaction ID
Re: pg_resetxlog -m documentation not up to date
От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
Ping. This ought to be fixed before 9.3 goes out. On Sat, 2013-04-27 at 21:22 -0400, Peter Eisentraut wrote: > The pg_resetxlog -m option was changed from > > -m XID set next multitransaction ID > > to > > -m XID,OLDEST set next multitransaction ID and oldest value > > but the man page does not reflect that change. > > It was introduced in 0ac5ad5134f2769ccbaefec73844f8504c4d6182 "Improve > concurrency of foreign key locking", but there is also no explanation > there. It is apparently needed in pg_upgrade. > > This should be documented, and I think the help line should be changed > to something like > > -m XID,XID set next and oldest multitransaction ID > > > >
Re: pg_resetxlog -m documentation not up to date
От:
Alvaro Herrera <alvherre@2ndquadrant.com>
Дата:
Peter Eisentraut wrote: > Ping. This ought to be fixed before 9.3 goes out. Will fix. > On Sat, 2013-04-27 at 21:22 -0400, Peter Eisentraut wrote: > > The pg_resetxlog -m option was changed from -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
Re: pg_resetxlog -m documentation not up to date
От:
Alvaro Herrera <alvherre@2ndquadrant.com>
Дата:
Peter Eisentraut wrote: > It was introduced in 0ac5ad5134f2769ccbaefec73844f8504c4d6182 "Improve > concurrency of foreign key locking", but there is also no explanation > there. It is apparently needed in pg_upgrade. > > This should be documented, and I think the help line should be changed > to something like > > -m XID,XID set next and oldest multitransaction ID I have come up with the attached patch. Does this match your expectations? Also, I'm a bit annoyed that there's no easy "append N zeroes to a number" recipe for multixact members such as there is for pg_clog and multixact offsets. Any suggestions on how to improve the current recommendation? (Also, I found out that if the last multixact/offsets file is not exactly 32 pages long, the server will fail to create further mxacts after following the recipe in docs; IIRC because it looks up the mxact previous to the next one.) *** a/doc/src/sgml/ref/pg_resetxlog.sgml --- b/doc/src/sgml/ref/pg_resetxlog.sgml *************** *** 27,33 **** PostgreSQL documentation oid xid xid_epoch ! mxid mxoff xlogfile datadir --- 27,33 ---- oid xid xid_epoch ! mxid,mxid mxoff xlogfile datadir *************** *** 81,87 **** PostgreSQL documentation
Re: pg_resetxlog -m documentation not up to date
От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
On 6/19/13 9:57 PM, Alvaro Herrera wrote: > Peter Eisentraut wrote: >> Ping. This ought to be fixed before 9.3 goes out. > > Will fix. > >> On Sat, 2013-04-27 at 21:22 -0400, Peter Eisentraut wrote: >>> The pg_resetxlog -m option was changed from The man page lists the -m option as -m mxid,mxid, but the --help output has -m XID,XID. Is that correct? Do we consider MXIDs to be a subset of XIDs?
Re: pg_resetxlog -m documentation not up to date
От:
Alvaro Herrera <alvherre@2ndquadrant.com>
Дата:
Peter Eisentraut wrote: > On 6/19/13 9:57 PM, Alvaro Herrera wrote: > > Peter Eisentraut wrote: > >> Ping. This ought to be fixed before 9.3 goes out. > > > > Will fix. > > > >> On Sat, 2013-04-27 at 21:22 -0400, Peter Eisentraut wrote: > >>> The pg_resetxlog -m option was changed from > > The man page lists the -m option as -m mxid,mxid, but the --help output > has -m XID,XID. Is that correct? Do we consider MXIDs to be a subset > of XIDs? Yeah, mxids are stored in places that normally store Xids (namely a tuples' Xmax field). That said, I don't see any reason not to have --help show -m MXID,MXID. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services