Re: Combine pg_walinspect till_end_of_wal functions with others

Поиск
Список
Период
Сортировка
От Matthias van de Meent
Тема Re: Combine pg_walinspect till_end_of_wal functions with others
Дата
Msg-id CAEze2WjiG4QKoXJi5aN-F8C4T7jz=--+jB4OJz48+GjdP0+f7A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Combine pg_walinspect till_end_of_wal functions with others  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Ответы Re: Combine pg_walinspect till_end_of_wal functions with others  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Список pgsql-hackers
On Mon, 6 Mar 2023 at 16:06, Bharath Rupireddy
<bharath.rupireddyforpostgres@gmail.com> wrote:
> If we try to make these functions figure out the oldest WAl file and
> start from there, then it'll unnecessarily complicate the APIs and
> functions. If we still think we need a better function for the users
> to figure out the oldest WAL file, perhaps, add a SQL-only
> view/function to pg_walinspect that returns "select name from
> pg_ls_waldir() order by name limit 1;", but honestly, that's so
> trivial.

That "order by name limit 1" has subtle bugs when you're working on a
system that has experienced timeline switches. It is entirely possible
that the first file (as sorted by the default collation) is not the
first record you can inspect, or even in your timeline's history.


Kind regards,

Matthias van de Meent



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: wrong results due to qual pushdown
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: meson: Optionally disable installation of test modules