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:
@@ -317,6 +317,8 @@ main(int argc, char *argv[])
|
|||||||
ControlFile->blcksz);
|
ControlFile->blcksz);
|
||||||
printf(_("Blocks per segment of large relation: %u\n"),
|
printf(_("Blocks per segment of large relation: %u\n"),
|
||||||
ControlFile->relseg_size);
|
ControlFile->relseg_size);
|
||||||
|
printf(_("Pages per SLRU segment: %u\n"),
|
||||||
|
ControlFile->slru_pages_per_segment);
|
||||||
printf(_("WAL block size: %u\n"),
|
printf(_("WAL block size: %u\n"),
|
||||||
ControlFile->xlog_blcksz);
|
ControlFile->xlog_blcksz);
|
||||||
printf(_("Bytes per WAL segment: %u\n"),
|
printf(_("Bytes per WAL segment: %u\n"),
|
||||||
|
|||||||
@@ -697,6 +697,7 @@ GuessControlValues(void)
|
|||||||
ControlFile.floatFormat = FLOATFORMAT_VALUE;
|
ControlFile.floatFormat = FLOATFORMAT_VALUE;
|
||||||
ControlFile.blcksz = BLCKSZ;
|
ControlFile.blcksz = BLCKSZ;
|
||||||
ControlFile.relseg_size = RELSEG_SIZE;
|
ControlFile.relseg_size = RELSEG_SIZE;
|
||||||
|
ControlFile.slru_pages_per_segment = SLRU_PAGES_PER_SEGMENT;
|
||||||
ControlFile.xlog_blcksz = XLOG_BLCKSZ;
|
ControlFile.xlog_blcksz = XLOG_BLCKSZ;
|
||||||
ControlFile.xlog_seg_size = DEFAULT_XLOG_SEG_SIZE;
|
ControlFile.xlog_seg_size = DEFAULT_XLOG_SEG_SIZE;
|
||||||
ControlFile.nameDataLen = NAMEDATALEN;
|
ControlFile.nameDataLen = NAMEDATALEN;
|
||||||
@@ -766,6 +767,8 @@ PrintControlValues(bool guessed)
|
|||||||
ControlFile.blcksz);
|
ControlFile.blcksz);
|
||||||
printf(_("Blocks per segment of large relation: %u\n"),
|
printf(_("Blocks per segment of large relation: %u\n"),
|
||||||
ControlFile.relseg_size);
|
ControlFile.relseg_size);
|
||||||
|
printf(_("Pages per SLRU segment: %u\n"),
|
||||||
|
ControlFile.slru_pages_per_segment);
|
||||||
printf(_("WAL block size: %u\n"),
|
printf(_("WAL block size: %u\n"),
|
||||||
ControlFile.xlog_blcksz);
|
ControlFile.xlog_blcksz);
|
||||||
printf(_("Bytes per WAL segment: %u\n"),
|
printf(_("Bytes per WAL segment: %u\n"),
|
||||||
|
|||||||
Reference in New Issue
Block a user