Re: Save a few bytes in pg_attribute

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: Save a few bytes in pg_attribute
Дата
Msg-id CAApHDvrbDnpYzFEHwHpPihSfxxhrZ6fzZ3nO9HjEE79+kR0YuA@mail.gmail.com
обсуждение исходный текст
Ответ на Save a few bytes in pg_attribute  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Список pgsql-hackers
On Mon, 20 Mar 2023, 11:00 pm Peter Eisentraut,
<peter.eisentraut@enterprisedb.com> wrote:
> After the discussion in [0] ff., I was looking around in pg_attribute
> and noticed that we could possibly save 4 bytes.  We could change both
> attstattarget and attinhcount from int4 to int2, which together with
> some reordering would save 4 bytes from the fixed portion.

I just want to highlight 1ef61ddce9, which fixed a very long-standing
bug that meant that pg_inherits.inhseqno was effectively just 16-bit.
Perhaps because nobody seemed to report that as a limitation 16 bits
is enough space. I only noticed that as a bug from code reading.

David



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

Предыдущее
От: "Gregory Stark (as CFM)"
Дата:
Сообщение: Re: [PATCH] Introduce array_shuffle() and array_sample()
Следующее
От: Egor Rogov
Дата:
Сообщение: Re: pg_stats and range statistics