Re: TYPCATEGORY_{NETWORK,USER} [was Dubious usage of TYPCATEGORY_STRING] - Mailing list pgsql-hackers

From Tom Lane
Subject Re: TYPCATEGORY_{NETWORK,USER} [was Dubious usage of TYPCATEGORY_STRING]
Date
Msg-id 3688140.1641236135@sss.pgh.pa.us
Whole thread Raw
In response to TYPCATEGORY_{NETWORK,USER} [was Dubious usage of TYPCATEGORY_STRING]  (Chapman Flack <chap@anastigmatix.net>)
Responses Re: TYPCATEGORY_{NETWORK,USER} [was Dubious usage of TYPCATEGORY_STRING]
List 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 by date:

Previous
From: Ashwin Agrawal
Date:
Subject: Re: Throttling WAL inserts when the standby falls behind more than the configured replica_lag_in_bytes
Next
From: Tom Lane
Date:
Subject: Re: Remove inconsistent quotes from date_part error