Re: TYPCATEGORY_{NETWORK,USER} [was Dubious usage of TYPCATEGORY_STRING]
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chapman Flack <chap@anastigmatix.net>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2022-01-03T18:55:35Z
Lists: 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
Commits
-
Create a new type category for "internal use" types.
- 07eee5a0dc64 15.0 landed