pgsql: Ensure pg_filenode_relation(0, 0) returns NULL.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Ensure pg_filenode_relation(0, 0) returns NULL.
Дата
Msg-id E1ls7S5-000879-6P@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Ensure pg_filenode_relation(0, 0) returns NULL.

Previously, a zero value for the relfilenode resulted in
a confusing error message about "unexpected duplicate".
This function returns NULL for other invalid relfilenode
values, so zero should be treated likewise.

It's been like this all along, so back-patch to all supported
branches.

Justin Pryzby

Discussion: https://postgr.es/m/20210612023324.GT16435@telsasoft.com

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c1ffbbcbca93b3544c0b57b7ab063497794cb8ff

Modified Files
--------------
src/backend/utils/adt/dbsize.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Don't use Asserts to check for violations of replication protoco
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Restore robustness of TAP tests that wait for postmaster restart