Re: int64 timestamp patch for contrib/pg_controldata

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: int64 timestamp patch for contrib/pg_controldata
Дата
Msg-id 27481.1028124073@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: int64 timestamp patch for contrib/pg_controldata  (Thomas Lockhart <lockhart@fourpalms.org>)
Список pgsql-patches
Thomas Lockhart <lockhart@fourpalms.org> writes:
> Shouldn't pg_resetxlog and pg_controldata be brought into the main tree?

Perhaps.  At the time they were written they were just quick hacks for
debugging, but we've seen them needed often enough that maybe they need
to be promoted.

> It does look like pg_resetxlog needs to be fixed up, but only if
> controldata is lost as well as the WAL files. How dicy is it to guess at
> a proper controldata file? Seems that the locale settings etc are not
> reliably guessable from just the environment

I think the right thing is to guess from resetxlog's own locale
environment.  Properly documented, that at least provides a way to
recover --- if the admin screws up, well, not much we can do.
The timestamp type can be guessed from whatever pg_config data is
compiled into pg_resetxlog.

            regards, tom lane

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

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: Re: int64 timestamp patch for contrib/pg_controldata
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: int64 timestamp patch for contrib/pg_controldata