Some RELKIND macro refactoring

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Some RELKIND macro refactoring
Дата
Msg-id a574c8f1-9c84-93ad-a9e5-65233d6fc00f@enterprisedb.com
обсуждение исходный текст
Ответы Re: Some RELKIND macro refactoring  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
Attached patches introduce more macros to group some RELKIND_* macros:

- RELKIND_HAS_PARTITIONS()
- RELKIND_HAS_TABLESPACE()
- RELKIND_HAS_TABLE_AM()
- RELKIND_HAS_INDEX_AM()

I collected those mainly while working on the relkind error messages 
patch [0].  I think they improve the self-documentation of the code in 
many places that are currently just random collections or endless 
streams of RELKIND macros.

Some may recall the previous thread [1] that made a similar proposal. 
The result here was that those macros were too thinly sliced and not 
generally useful enough.  My proposal is completely separate from that.


[0]: 
https://www.postgresql.org/message-id/flat/dc35a398-37d0-75ce-07ea-1dd71d98f8ec@2ndquadrant.com
[1]: 
https://www.postgresql.org/message-id/flat/CAFjFpRcfzs%2Byst6YBCseD_orEcDNuAr9GUTraZ5GC%3DAvCYh55Q%40mail.gmail.com

Вложения

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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: PoC/WIP: Extended statistics on expressions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Added schema level support for publication.