Split handling of reloptions for partitioned tables
authorMichael Paquier <michael@paquier.xyz>
Thu, 14 Nov 2019 03:34:28 +0000 (12:34 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 14 Nov 2019 03:34:28 +0000 (12:34 +0900)
commit1bbd608fdae7af314d8e2229e369a45a3da83cd8
tree55d1a7d30a68b134f0326a0a4aee9e0a08bda800
parent80ef34fc7075b37fc23f4ab714a5ce60f82400de
Split handling of reloptions for partitioned tables

Partitioned tables do not have relation options yet, but, similarly to
what's done for views which have their own parsing table, it could make
sense to introduce new parameters for some of the existing default ones
like fillfactor, autovacuum, etc.  Splitting things has the advantage to
make the information stored in rd_options include only the necessary
information, reducing the amount of memory used for a relcache entry
with partitioned tables if new reloptions are introduced at this level.

Author:  Nikolay Shaplov
Reviewed-by: Amit Langote, Michael Paquier
Discussion: https://postgr.es/m/1627387.Qykg9O6zpu@x200m
src/backend/access/common/reloptions.c
src/backend/commands/tablecmds.c
src/include/access/reloptions.h