Re: Fix small typo, use InvalidRelFileNumber instead of InvalidOid

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Fix small typo, use InvalidRelFileNumber instead of InvalidOid
Дата
Msg-id 3631624.1731078404@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Fix small typo, use InvalidRelFileNumber instead of InvalidOid  (Dilip Kumar <dilipbalaut@gmail.com>)
Список pgsql-hackers
Dilip Kumar <dilipbalaut@gmail.com> writes:
> IIRC, In catalog we intentionally left it as Oid because RelFileNumber is
> an internal typedef bug, it is not an exposed datatype, so probably we can
> not use it in catalog.

We could declare it as RelFileNumber so that that is what C code sees,
and teach Catalog.pm to translate that to OID in the emitted catalog
contents.  I think you'd have to do that to avoid a ton of false
positives when you make RelFileNumber into a struct, and we might as
well keep the result.

            regards, tom lane



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