1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-13 16:22:44 +03:00

Add pg_resetwal and pg_controldata support for new control file field

I forgot these in commit 3e0ae46d90.

Discussion: https://www.postgresql.org/message-id/2afded89-f9f0-4191-84d8-8b8668e029a1@iki.fi
This commit is contained in:
Heikki Linnakangas
2025-11-11 19:00:34 +02:00
parent d2f24df19b
commit 676cd9ac07
2 changed files with 5 additions and 0 deletions

View File

@@ -317,6 +317,8 @@ main(int argc, char *argv[])
ControlFile->blcksz);
printf(_("Blocks per segment of large relation: %u\n"),
ControlFile->relseg_size);
printf(_("Pages per SLRU segment: %u\n"),
ControlFile->slru_pages_per_segment);
printf(_("WAL block size: %u\n"),
ControlFile->xlog_blcksz);
printf(_("Bytes per WAL segment: %u\n"),

View File

@@ -697,6 +697,7 @@ GuessControlValues(void)
ControlFile.floatFormat = FLOATFORMAT_VALUE;
ControlFile.blcksz = BLCKSZ;
ControlFile.relseg_size = RELSEG_SIZE;
ControlFile.slru_pages_per_segment = SLRU_PAGES_PER_SEGMENT;
ControlFile.xlog_blcksz = XLOG_BLCKSZ;
ControlFile.xlog_seg_size = DEFAULT_XLOG_SEG_SIZE;
ControlFile.nameDataLen = NAMEDATALEN;
@@ -766,6 +767,8 @@ PrintControlValues(bool guessed)
ControlFile.blcksz);
printf(_("Blocks per segment of large relation: %u\n"),
ControlFile.relseg_size);
printf(_("Pages per SLRU segment: %u\n"),
ControlFile.slru_pages_per_segment);
printf(_("WAL block size: %u\n"),
ControlFile.xlog_blcksz);
printf(_("Bytes per WAL segment: %u\n"),