Re: TYPCATEGORY_{NETWORK,USER} [was Dubious usage of TYPCATEGORY_STRING]

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: TYPCATEGORY_{NETWORK,USER} [was Dubious usage of TYPCATEGORY_STRING]
Дата
Msg-id 3688140.1641236135@sss.pgh.pa.us
обсуждение исходный текст
Ответ на TYPCATEGORY_{NETWORK,USER} [was Dubious usage of TYPCATEGORY_STRING]  (Chapman Flack <chap@anastigmatix.net>)
Ответы Re: TYPCATEGORY_{NETWORK,USER} [was Dubious usage of TYPCATEGORY_STRING]  (Chapman Flack <chap@anastigmatix.net>)
Список pgsql-hackers
Chapman Flack <chap@anastigmatix.net> writes:
> On the same general topic, was there a deliberate choice to put
> inet and cidr in TYPCATEGORY_NETWORK but macaddr and macaddr8
> in TYPCATEGORY_USER?

Hard to say how "deliberate" it was, at this remove of time.

I do see an argument against reclassifying macaddr[8] into
TYPCATEGORY_NETWORK now: we generally expect that if a
category has a preferred type, any member type of the category
can be cast to that preferred type.  (The fact that OID is
marked preferred breaks that rule, but it holds pretty well
otherwise.)  I think this is why type interval has its own
category rather than being within TYPCATEGORY_DATETIME.

            regards, tom lane



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

Предыдущее
От: Ashwin Agrawal
Дата:
Сообщение: Re: Throttling WAL inserts when the standby falls behind more than the configured replica_lag_in_bytes
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Remove inconsistent quotes from date_part error