Re: strange behavior of WAL files

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: strange behavior of WAL files
Дата
Msg-id 144409.1622815880@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: strange behavior of WAL files  (Atul Kumar <akumar14871@gmail.com>)
Ответы Re: strange behavior of WAL files  (Atul Kumar <akumar14871@gmail.com>)
Re: strange behavior of WAL files  (Atul Kumar <akumar14871@gmail.com>)
Список pgsql-general
Atul Kumar <akumar14871@gmail.com> writes:
> once old WAL files of pg_xlog directory are archived in
> '/nfslogs/wal/' directory then these WAL files are getting generated
> with the same name in pg_xlog directory.

Are you sure you are describing the behavior accurately?

What I would expect to happen, once an old WAL file has been archived
and the server knows its contents are no longer needed, is for the
WAL file to be "recycled" by renaming it to have a name that's in-the-
future in the WAL name series, whereupon it will wait its turn to be
reused by future WAL writes.  On most filesystems the rename as such
doesn't change the file's mod time, so you'll see files that seem
to be in-the-future according to their names, but have old timestamps.

(There's a limit on how many future WAL files we'll tee up this way,
so it's possible that an old one would just get deleted instead.
But the steady-state behavior is to just rotate them around.)

            regards, tom lane



В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: EXPLAIN (ANALYZE, BUFFERS) - puzzling numbers for a simple query.
Следующее
От: Pól Ua Laoínecháin
Дата:
Сообщение: Re: EXPLAIN (ANALYZE, BUFFERS) - puzzling numbers for a simple query.