Robert Haas <robertmh...@gmail.com> writes: > I've thought about this kind of thing, too. But the thing is that > most of these macros you're proposing to introduce only get used in > one place.
I think the value would be in having a centralized checklist of things-to-fix-when-adding-a-new-relkind. There's more than one way to reach that goal, though. I wonder whether the task should be defined more like "grep for 'RELKIND_' and fix every place you find that". If there are places to touch that fail to mention that string, fix them, using comments if nothing else. (But see fe797b4a6 and followon commits for other solutions.) > I think this might cause some problems for translators. Yeah, the error messages that list a bunch of different relkinds in text form are going to be a hassle no matter what. Most of the ways you might think of to change that will violate our translatability rules. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers