Re: attndims, typndims still not enforced, but make the value within a sane threshold

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: attndims, typndims still not enforced, but make the value within a sane threshold
Дата
Msg-id 2539456.1733416402@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: attndims, typndims still not enforced, but make the value within a sane threshold  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: attndims, typndims still not enforced, but make the value within a sane threshold
Список pgsql-hackers
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> On 2024-Dec-05, Kirill Reshke wrote:
>> I see no open items in this thread. Are there any issues about v1?

> Should we leave TupleDescInitEntry()'s API alone, to avoid breaking the
> compilation of every extension in the world?

I fear the howls of pain from extension authors will be entirely
drowned out by the howls of pain from application authors whose
queries are broken by the disappearance of two catalog columns.
A quick search at codesearch.debian.net shows that while there's
not that many references to attndims, some of them are in such
never-heard-of-it applications as PHP.  typndims has some outside
queries fetching it as well.

I don't think we can do this as presented.  Maybe we could do
something like constrain the stored value to be only 0 or 1,
but how much does that improve matters?

            regards, tom lane



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