pg_control is missing a field for LOBLKSIZE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pg_control is missing a field for LOBLKSIZE
Дата
Msg-id 19076.1401890589@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: pg_control is missing a field for LOBLKSIZE
Re: pg_control is missing a field for LOBLKSIZE
Список pgsql-hackers
I just chanced to notice that if someone were to change the value for
LOBLKSIZE and recompile, there'd be nothing to stop him from starting
that postmaster against an existing database, even though it would
completely misinterpret and mangle any data in pg_largeobject.

I think there ought to be a guard for that, for exactly the same reasons
that we check TOAST_MAX_CHUNK_SIZE: correct interpretation of on-disk
data requires that this value match the original database configuration.

Obviously it's too late to do anything about this in existing branches,
but I propose to add a field to pg_control after we branch off 9.4.
        regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Proposing pg_hibernate
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: Need to backpatch 2985e16 to 9.3 and further (HS regression test out)