mirror of
https://github.com/postgres/postgres.git
synced 2025-11-03 09:13:20 +03:00
Allow a partitioned table to have a default partition.
Any tuples that don't route to any other partition will route to the default partition. Jeevan Ladhe, Beena Emerson, Ashutosh Bapat, Rahila Syed, and Robert Haas, with review and testing at various stages by (at least) Rushabh Lathia, Keith Fiske, Amit Langote, Amul Sul, Rajkumar Raghuanshi, Sven Kunze, Kyotaro Horiguchi, Thom Brown, Rafia Sabih, and Dilip Kumar. Discussion: http://postgr.es/m/CAH2L28tbN4SYyhS7YV1YBWcitkqbhSWfQCy0G=apRcC_PEO-bg@mail.gmail.com Discussion: http://postgr.es/m/CAOG9ApEYj34fWMcvBMBQ-YtqR9fTdXhdN82QEKG0SVZ6zeL1xg@mail.gmail.com
This commit is contained in:
@@ -797,6 +797,7 @@ typedef struct PartitionBoundSpec
|
||||
NodeTag type;
|
||||
|
||||
char strategy; /* see PARTITION_STRATEGY codes above */
|
||||
bool is_default; /* is it a default partition bound? */
|
||||
|
||||
/* Partitioning info for LIST strategy: */
|
||||
List *listdatums; /* List of Consts (or A_Consts in raw tree) */
|
||||
|
||||
Reference in New Issue
Block a user