pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedWAL file naming convention
6+ messages / 4 participants
[nested] [flat]
* WAL file naming convention
@ 2006-03-25 00:29 Sriram Dandapani <sdandapani@counterpane.com>
2006-03-25 17:51 ` Re: WAL file naming convention Andy Shellam <andy.shellam@mailnetwork.co.uk>
0 siblings, 1 reply; 6+ messages in thread
From: Sriram Dandapani @ 2006-03-25 00:29 UTC (permalink / raw)
To: pgsql-admin
Hi
Is is safe to assume that the unix ls command will return WAL files in
the same sequence as postgres creates them.
e.g will ls <wal-file-folder> return files in the order that postgres
created them
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: WAL file naming convention
2006-03-25 00:29 WAL file naming convention Sriram Dandapani <sdandapani@counterpane.com>
@ 2006-03-25 17:51 ` Andy Shellam <andy.shellam@mailnetwork.co.uk>
2006-03-27 10:34 ` Re: WAL file naming convention Jim C. Nasby <jnasby@pervasive.com>
0 siblings, 1 reply; 6+ messages in thread
From: Andy Shellam @ 2006-03-25 17:51 UTC (permalink / raw)
To: 'Sriram Dandapani' <sdandapani@counterpane.com>; pgsql-admin
As PostgreSQL numbers WALs sequentially, as long as your ls command by
default orders listings by filename, then Yes. Or you could list by the
last modified date/time should give the same effect.
Andy
_____
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Sriram Dandapani
Sent: Saturday, 25 March, 2006 12:30 am
To: pgsql-admin@postgresql.org
Subject: [ADMIN] WAL file naming convention
Hi
Is is safe to assume that the unix ls command will return WAL files in the
same sequence as postgres creates them.
e.g will ls <wal-file-folder> return files in the order that postgres
created them
!DSPAM:14,44248f2235041511888239!
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: WAL file naming convention
2006-03-25 00:29 WAL file naming convention Sriram Dandapani <sdandapani@counterpane.com>
2006-03-25 17:51 ` Re: WAL file naming convention Andy Shellam <andy.shellam@mailnetwork.co.uk>
@ 2006-03-27 10:34 ` Jim C. Nasby <jnasby@pervasive.com>
0 siblings, 0 replies; 6+ messages in thread
From: Jim C. Nasby @ 2006-03-27 10:34 UTC (permalink / raw)
To: Andy Shellam <andy.shellam@mailnetwork.co.uk>; +Cc: Sriram Dandapani <sdandapani@counterpane.com>; pgsql-admin
On Sat, Mar 25, 2006 at 05:51:13PM -0000, Andy Shellam wrote:
> As PostgreSQL numbers WALs sequentially, as long as your ls command by
> default orders listings by filename, then Yes. Or you could list by the
> last modified date/time should give the same effect.
But note that the order it creates them in doesn't have much meaning,
because it can re-use them. So if you want to know anything about actual
current order of usage the filename is meaningless.
> _____
>
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Sriram Dandapani
> Sent: Saturday, 25 March, 2006 12:30 am
> To: pgsql-admin@postgresql.org
> Subject: [ADMIN] WAL file naming convention
>
>
>
> Hi
>
>
>
> Is is safe to assume that the unix ls command will return WAL files in the
> same sequence as postgres creates them.
>
>
>
> e.g will ls <wal-file-folder> return files in the order that postgres
> created them
>
> !DSPAM:14,44248f2235041511888239!
--
Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: WAL file naming convention
@ 2006-03-27 17:28 Sriram Dandapani <sdandapani@counterpane.com>
2006-03-28 18:11 ` Re: WAL file naming convention Jim C. Nasby <jnasby@pervasive.com>
0 siblings, 1 reply; 6+ messages in thread
From: Sriram Dandapani @ 2006-03-27 17:28 UTC (permalink / raw)
To: Jim C. Nasby <jnasby@pervasive.com>; Andy Shellam <andy.shellam@mailnetwork.co.uk>; +Cc: pgsql-admin
I was referring to the logs in the archive folder specified when WAL
archiving is turned on...not the pg_xlog folder.
I assume postgres will not use the logs in the archive folder
-----Original Message-----
From: Jim C. Nasby [mailto:jnasby@pervasive.com]
Sent: Monday, March 27, 2006 2:35 AM
To: Andy Shellam
Cc: Sriram Dandapani; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] WAL file naming convention
On Sat, Mar 25, 2006 at 05:51:13PM -0000, Andy Shellam wrote:
> As PostgreSQL numbers WALs sequentially, as long as your ls command by
> default orders listings by filename, then Yes. Or you could list by
the
> last modified date/time should give the same effect.
But note that the order it creates them in doesn't have much meaning,
because it can re-use them. So if you want to know anything about actual
current order of usage the filename is meaningless.
> _____
>
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Sriram
Dandapani
> Sent: Saturday, 25 March, 2006 12:30 am
> To: pgsql-admin@postgresql.org
> Subject: [ADMIN] WAL file naming convention
>
>
>
> Hi
>
>
>
> Is is safe to assume that the unix ls command will return WAL files in
the
> same sequence as postgres creates them.
>
>
>
> e.g will ls <wal-file-folder> return files in the order that postgres
> created them
>
> !DSPAM:14,44248f2235041511888239!
--
Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: WAL file naming convention
2006-03-27 17:28 Re: WAL file naming convention Sriram Dandapani <sdandapani@counterpane.com>
@ 2006-03-28 18:11 ` Jim C. Nasby <jnasby@pervasive.com>
2006-04-10 20:43 ` Re: WAL file naming convention Bruce Momjian <pgman@candle.pha.pa.us>
0 siblings, 1 reply; 6+ messages in thread
From: Jim C. Nasby @ 2006-03-28 18:11 UTC (permalink / raw)
To: Sriram Dandapani <sdandapani@counterpane.com>; +Cc: Andy Shellam <andy.shellam@mailnetwork.co.uk>; pgsql-admin
On Mon, Mar 27, 2006 at 09:28:43AM -0800, Sriram Dandapani wrote:
> I was referring to the logs in the archive folder specified when WAL
> archiving is turned on...not the pg_xlog folder.
>
> I assume postgres will not use the logs in the archive folder
Correct. And I believe if you have PITR enabled PostgreSQL also won't
re-use WAL names, though I'm not positive on that one.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: WAL file naming convention
2006-03-27 17:28 Re: WAL file naming convention Sriram Dandapani <sdandapani@counterpane.com>
2006-03-28 18:11 ` Re: WAL file naming convention Jim C. Nasby <jnasby@pervasive.com>
@ 2006-04-10 20:43 ` Bruce Momjian <pgman@candle.pha.pa.us>
0 siblings, 0 replies; 6+ messages in thread
From: Bruce Momjian @ 2006-04-10 20:43 UTC (permalink / raw)
To: Jim C. Nasby <jnasby@pervasive.com>; +Cc: Sriram Dandapani <sdandapani@counterpane.com>; Andy Shellam <andy.shellam@mailnetwork.co.uk>; pgsql-admin
Jim C. Nasby wrote:
> On Mon, Mar 27, 2006 at 09:28:43AM -0800, Sriram Dandapani wrote:
> > I was referring to the logs in the archive folder specified when WAL
> > archiving is turned on...not the pg_xlog folder.
> >
> > I assume postgres will not use the logs in the archive folder
>
> Correct. And I believe if you have PITR enabled PostgreSQL also won't
> re-use WAL names, though I'm not positive on that one.
PostgreSQL never reuses WAL _names_ (since initdb), it only reuses WAL
files by renaming.
--
Bruce Momjian http://candle.pha.pa.us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2006-04-10 20:43 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-03-25 00:29 WAL file naming convention Sriram Dandapani <sdandapani@counterpane.com>
2006-03-25 17:51 ` Andy Shellam <andy.shellam@mailnetwork.co.uk>
2006-03-27 10:34 ` Jim C. Nasby <jnasby@pervasive.com>
2006-03-27 17:28 Re: WAL file naming convention Sriram Dandapani <sdandapani@counterpane.com>
2006-03-28 18:11 ` Jim C. Nasby <jnasby@pervasive.com>
2006-04-10 20:43 ` Bruce Momjian <pgman@candle.pha.pa.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