pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rui DeSousa <rui@crazybean.net>
To: Pavan Kumar <pavan.dba27@gmail.com>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: postgres wal log configuration question
Date: Thu, 9 May 2019 10:16:53 -0400
Message-ID: <DF39D2B0-2FAC-47CE-AB03-959BB9012A7A@crazybean.net> (raw)
In-Reply-To: <CA+M0sHGsvHdP-c6ZZeeefy79fobFg5TaUBwZ9BqBCB=1rCfGwQ@mail.gmail.com>
References: <CA+M0sHHuM1YQwypUF+jVHjhaK0yib64KqsDC04TS4qzD+J_N6g@mail.gmail.com>
	<CA+M0sHHAAgNh-n5BQcX8eYj-miVBPoXt7D-RK_3FT=sZrHNPyQ@mail.gmail.com>
	<56496583-595D-4267-A5F3-7C1AA877345A@crazybean.net>
	<CA+M0sHGsvHdP-c6ZZeeefy79fobFg5TaUBwZ9BqBCB=1rCfGwQ@mail.gmail.com>



> On May 9, 2019, at 8:32 AM, Pavan Kumar <pavan.dba27@gmail.com> wrote:
> 
>  is there anyway to control wal segment naming format.  wal segment file is not generating in sequential format.

Not really; however the file names are sequential based on the timeline and log sequence.  If you change the WAL segment size then the WAL file name sequence will change; i.e. 16MB vs 128MB WAL files will generate different sequences.

Here’s a article that covers the three parts of the filename; timeline_id, block id, and segment id:

https://paquier.xyz/postgresql-2/postgres-9-3-feature-highlight-pg_xlogdump/ <https://paquier.xyz/postgresql-2/postgres-9-3-feature-highlight-pg_xlogdump/;

view thread (5+ messages)

Message-ID: <DF39D2B0-2FAC-47CE-AB03-959BB9012A7A@crazybean.net>
Permalink:  ../DF39D2B0-2FAC-47CE-AB03-959BB9012A7A@crazybean.net/
Also on:    postgresql.org/message-id/DF39D2B0-2FAC-47CE-AB03-959BB9012A7A@crazybean.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: rui@crazybean.net, pavan.dba27@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: postgres wal log configuration question
  In-Reply-To: <DF39D2B0-2FAC-47CE-AB03-959BB9012A7A@crazybean.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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