Re: Online enabling of checksums

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Online enabling of checksums
Дата
Msg-id CAMsr+YEesObfhpasJJjpU1zwfmvgfKehsu9F-k4MeQshA3-MHw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Online enabling of checksums  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
On 1 March 2018 at 03:42, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
I noticed that pg_verify_checksum takes an "-o oid" argument to only
check the relation with that OID; but that's wrong, because the number
is a relfilenode, not an OID (since it's compared to the on-disk file
name).  I would suggest changing everything to clarify that it's a
pg_class.relfilenode value, otherwise it's going to be very confusing.
Maybe use "-f filenode" if -f is available?


I see this mistake/misunderstanding enough that I'd quite like to change how we generate relfilenode IDs, making them totally independent of the oid space.

Unsure how practical it is, but it'd be so nice to get rid of that trap.


--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: RFC: Add 'taint' field to pg_control.
Следующее
От: "Tsunakawa, Takayuki"
Дата:
Сообщение: [bug fix] pg_rewind creates corrupt WAL files, and the standbycannot catch up the primary