pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: pg_resetxlog:  add option to set oldest xid & use by pg_upgrade
7+ messages / 1 participants
[nested] [flat]

* pgsql: pg_resetxlog:  add option to set oldest xid & use by pg_upgrade
@ 2021-07-27 02:38  Bruce Momjian <bruce@momjian.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Bruce Momjian @ 2021-07-27 02:38 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

pg_resetxlog:  add option to set oldest xid & use by pg_upgrade

Add pg_resetxlog -u option to set the oldest xid in pg_control.
Previously -x set this value be -2 billion less than the -x value.
However, this causes the server to immediately scan all relation's
relfrozenxid so it can advance pg_control's oldest xid to be inside the
autovacuum_freeze_max_age range, which is inefficient and might disrupt
diagnostic recovery.  pg_upgrade will use this option to better create
the new cluster to match the old cluster.

Reported-by: Jason Harvey, Floris Van Nee

Discussion: https://postgr.es/m/20190615183759.GB239428@rfd.leadboat.com, 87da83168c644fd9aae38f546cc70295@opammb0562.comp.optiver.com

Author: Bertrand Drouvot

Backpatch-through: 9.6

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7626e9f2be7d0fc9b20936910831b900b555728b

Modified Files
--------------
doc/src/sgml/ref/pg_resetwal.sgml | 20 +++++++++++
src/bin/pg_resetwal/pg_resetwal.c | 72 ++++++++++++++++++++++-----------------
src/bin/pg_upgrade/controldata.c  | 17 ++++++++-
src/bin/pg_upgrade/pg_upgrade.c   |  7 ++++
src/bin/pg_upgrade/pg_upgrade.h   |  1 +
5 files changed, 85 insertions(+), 32 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: pg_resetxlog:  add option to set oldest xid & use by pg_upgrade
@ 2021-07-27 02:38  Bruce Momjian <bruce@momjian.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Bruce Momjian @ 2021-07-27 02:38 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

pg_resetxlog:  add option to set oldest xid & use by pg_upgrade

Add pg_resetxlog -u option to set the oldest xid in pg_control.
Previously -x set this value be -2 billion less than the -x value.
However, this causes the server to immediately scan all relation's
relfrozenxid so it can advance pg_control's oldest xid to be inside the
autovacuum_freeze_max_age range, which is inefficient and might disrupt
diagnostic recovery.  pg_upgrade will use this option to better create
the new cluster to match the old cluster.

Reported-by: Jason Harvey, Floris Van Nee

Discussion: https://postgr.es/m/20190615183759.GB239428@rfd.leadboat.com, 87da83168c644fd9aae38f546cc70295@opammb0562.comp.optiver.com

Author: Bertrand Drouvot

Backpatch-through: 9.6

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0a5e708e2bd87adb0779d7c8758e5743cc1c0adf

Modified Files
--------------
doc/src/sgml/ref/pg_resetwal.sgml | 20 +++++++++++
src/bin/pg_resetwal/pg_resetwal.c | 72 ++++++++++++++++++++++-----------------
src/bin/pg_upgrade/controldata.c  | 17 ++++++++-
src/bin/pg_upgrade/pg_upgrade.c   |  7 ++++
src/bin/pg_upgrade/pg_upgrade.h   |  1 +
5 files changed, 85 insertions(+), 32 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: pg_resetxlog:  add option to set oldest xid & use by pg_upgrade
@ 2021-07-27 02:38  Bruce Momjian <bruce@momjian.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Bruce Momjian @ 2021-07-27 02:38 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

pg_resetxlog:  add option to set oldest xid & use by pg_upgrade

Add pg_resetxlog -u option to set the oldest xid in pg_control.
Previously -x set this value be -2 billion less than the -x value.
However, this causes the server to immediately scan all relation's
relfrozenxid so it can advance pg_control's oldest xid to be inside the
autovacuum_freeze_max_age range, which is inefficient and might disrupt
diagnostic recovery.  pg_upgrade will use this option to better create
the new cluster to match the old cluster.

Reported-by: Jason Harvey, Floris Van Nee

Discussion: https://postgr.es/m/20190615183759.GB239428@rfd.leadboat.com, 87da83168c644fd9aae38f546cc70295@opammb0562.comp.optiver.com

Author: Bertrand Drouvot

Backpatch-through: 9.6

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/088dbf3bc40bd866da71e07bef8963c81dbb14b9

Modified Files
--------------
doc/src/sgml/ref/pg_resetxlog.sgml  | 19 +++++++++++++++++++
src/bin/pg_resetxlog/pg_resetxlog.c | 37 +++++++++++++++++++++++--------------
src/bin/pg_upgrade/controldata.c    | 17 ++++++++++++++++-
src/bin/pg_upgrade/pg_upgrade.c     |  7 +++++++
src/bin/pg_upgrade/pg_upgrade.h     |  1 +
5 files changed, 66 insertions(+), 15 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: pg_resetxlog:  add option to set oldest xid & use by pg_upgrade
@ 2021-07-27 02:38  Bruce Momjian <bruce@momjian.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Bruce Momjian @ 2021-07-27 02:38 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

pg_resetxlog:  add option to set oldest xid & use by pg_upgrade

Add pg_resetxlog -u option to set the oldest xid in pg_control.
Previously -x set this value be -2 billion less than the -x value.
However, this causes the server to immediately scan all relation's
relfrozenxid so it can advance pg_control's oldest xid to be inside the
autovacuum_freeze_max_age range, which is inefficient and might disrupt
diagnostic recovery.  pg_upgrade will use this option to better create
the new cluster to match the old cluster.

Reported-by: Jason Harvey, Floris Van Nee

Discussion: https://postgr.es/m/20190615183759.GB239428@rfd.leadboat.com, 87da83168c644fd9aae38f546cc70295@opammb0562.comp.optiver.com

Author: Bertrand Drouvot

Backpatch-through: 9.6

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c4ba87f527f07945ef4ad2b1b45e0afe81124b55

Modified Files
--------------
doc/src/sgml/ref/pg_resetwal.sgml | 20 ++++++++++++
src/bin/pg_resetwal/pg_resetwal.c | 66 ++++++++++++++++++++++-----------------
src/bin/pg_upgrade/controldata.c  | 17 +++++++++-
src/bin/pg_upgrade/pg_upgrade.c   |  7 +++++
src/bin/pg_upgrade/pg_upgrade.h   |  1 +
5 files changed, 82 insertions(+), 29 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: pg_resetxlog:  add option to set oldest xid & use by pg_upgrade
@ 2021-07-27 02:38  Bruce Momjian <bruce@momjian.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Bruce Momjian @ 2021-07-27 02:38 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

pg_resetxlog:  add option to set oldest xid & use by pg_upgrade

Add pg_resetxlog -u option to set the oldest xid in pg_control.
Previously -x set this value be -2 billion less than the -x value.
However, this causes the server to immediately scan all relation's
relfrozenxid so it can advance pg_control's oldest xid to be inside the
autovacuum_freeze_max_age range, which is inefficient and might disrupt
diagnostic recovery.  pg_upgrade will use this option to better create
the new cluster to match the old cluster.

Reported-by: Jason Harvey, Floris Van Nee

Discussion: https://postgr.es/m/20190615183759.GB239428@rfd.leadboat.com, 87da83168c644fd9aae38f546cc70295@opammb0562.comp.optiver.com

Author: Bertrand Drouvot

Backpatch-through: 9.6

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/71121450e8f42b21665ee9c8f70b701f7a16c801

Modified Files
--------------
doc/src/sgml/ref/pg_resetwal.sgml | 19 +++++++++++++++++++
src/bin/pg_resetwal/pg_resetwal.c | 37 +++++++++++++++++++++++--------------
src/bin/pg_upgrade/controldata.c  | 17 ++++++++++++++++-
src/bin/pg_upgrade/pg_upgrade.c   |  7 +++++++
src/bin/pg_upgrade/pg_upgrade.h   |  1 +
5 files changed, 66 insertions(+), 15 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: pg_resetxlog:  add option to set oldest xid & use by pg_upgrade
@ 2021-07-27 02:38  Bruce Momjian <bruce@momjian.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Bruce Momjian @ 2021-07-27 02:38 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

pg_resetxlog:  add option to set oldest xid & use by pg_upgrade

Add pg_resetxlog -u option to set the oldest xid in pg_control.
Previously -x set this value be -2 billion less than the -x value.
However, this causes the server to immediately scan all relation's
relfrozenxid so it can advance pg_control's oldest xid to be inside the
autovacuum_freeze_max_age range, which is inefficient and might disrupt
diagnostic recovery.  pg_upgrade will use this option to better create
the new cluster to match the old cluster.

Reported-by: Jason Harvey, Floris Van Nee

Discussion: https://postgr.es/m/20190615183759.GB239428@rfd.leadboat.com, 87da83168c644fd9aae38f546cc70295@opammb0562.comp.optiver.com

Author: Bertrand Drouvot

Backpatch-through: 9.6

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/695b4a113abca380fd7aed26cefa039e4e8cd569

Modified Files
--------------
doc/src/sgml/ref/pg_resetwal.sgml | 20 +++++++++++
src/bin/pg_resetwal/pg_resetwal.c | 72 ++++++++++++++++++++++-----------------
src/bin/pg_upgrade/controldata.c  | 17 ++++++++-
src/bin/pg_upgrade/pg_upgrade.c   |  7 ++++
src/bin/pg_upgrade/pg_upgrade.h   |  1 +
5 files changed, 85 insertions(+), 32 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: pg_resetxlog:  add option to set oldest xid & use by pg_upgrade
@ 2021-07-27 02:38  Bruce Momjian <bruce@momjian.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Bruce Momjian @ 2021-07-27 02:38 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

pg_resetxlog:  add option to set oldest xid & use by pg_upgrade

Add pg_resetxlog -u option to set the oldest xid in pg_control.
Previously -x set this value be -2 billion less than the -x value.
However, this causes the server to immediately scan all relation's
relfrozenxid so it can advance pg_control's oldest xid to be inside the
autovacuum_freeze_max_age range, which is inefficient and might disrupt
diagnostic recovery.  pg_upgrade will use this option to better create
the new cluster to match the old cluster.

Reported-by: Jason Harvey, Floris Van Nee

Discussion: https://postgr.es/m/20190615183759.GB239428@rfd.leadboat.com, 87da83168c644fd9aae38f546cc70295@opammb0562.comp.optiver.com

Author: Bertrand Drouvot

Backpatch-through: 9.6

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/74cf7d46a91d601e0f8d957a7edbaeeb7df83efc

Modified Files
--------------
doc/src/sgml/ref/pg_resetwal.sgml | 20 +++++++++++
src/bin/pg_resetwal/pg_resetwal.c | 72 ++++++++++++++++++++++-----------------
src/bin/pg_upgrade/controldata.c  | 17 ++++++++-
src/bin/pg_upgrade/pg_upgrade.c   |  7 ++++
src/bin/pg_upgrade/pg_upgrade.h   |  1 +
5 files changed, 85 insertions(+), 32 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2021-07-27 02:38 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 02:38 pgsql: pg_resetxlog:  add option to set oldest xid & use by pg_upgrade Bruce Momjian <bruce@momjian.us>
2021-07-27 02:38 pgsql: pg_resetxlog:  add option to set oldest xid & use by pg_upgrade Bruce Momjian <bruce@momjian.us>
2021-07-27 02:38 pgsql: pg_resetxlog:  add option to set oldest xid & use by pg_upgrade Bruce Momjian <bruce@momjian.us>
2021-07-27 02:38 pgsql: pg_resetxlog:  add option to set oldest xid & use by pg_upgrade Bruce Momjian <bruce@momjian.us>
2021-07-27 02:38 pgsql: pg_resetxlog:  add option to set oldest xid & use by pg_upgrade Bruce Momjian <bruce@momjian.us>
2021-07-27 02:38 pgsql: pg_resetxlog:  add option to set oldest xid & use by pg_upgrade Bruce Momjian <bruce@momjian.us>
2021-07-27 02:38 pgsql: pg_resetxlog:  add option to set oldest xid & use by pg_upgrade Bruce Momjian <bruce@momjian.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