summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorRobert Haas2017-03-31 20:28:30 +0000
committerRobert Haas2017-03-31 20:28:51 +0000
commitc94e6942cefe7d20c5feed856e27f672734b1e2b (patch)
tree56daaadb30a7f2cc4dcdd7aa09fb208e46e3bbe6 /src/include
parentf49bcd4ef3e9a75de210357a4d9bbe3e004db956 (diff)
Don't allocate storage for partitioned tables.
Also, don't allow setting reloptions on them, since that would have no effect given the lack of storage. The patch does this by introducing a new reloption kind for which there are currently no reloptions -- we might have some in the future -- so it adjusts parseRelOptions to handle that case correctly. Bumped catversion. System catalogs that contained reloptions for partitioned tables are no longer valid; plus, there are now fewer physical files on disk, which is not technically a catalog change but still a good reason to re-initdb. Amit Langote, reviewed by Maksim Milyutin and Kyotaro Horiguchi and revised a bit by me. Discussion: http://postgr.es/m/20170331.173326.212311140.horiguchi.kyotaro@lab.ntt.co.jp
Diffstat (limited to 'src/include')
-rw-r--r--src/include/access/reloptions.h3
-rw-r--r--src/include/catalog/catversion.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/include/access/reloptions.h b/src/include/access/reloptions.h
index 861977a6083..91b2cd7bb2f 100644
--- a/src/include/access/reloptions.h
+++ b/src/include/access/reloptions.h
@@ -48,8 +48,9 @@ typedef enum relopt_kind
RELOPT_KIND_SPGIST = (1 << 8),
RELOPT_KIND_VIEW = (1 << 9),
RELOPT_KIND_BRIN = (1 << 10),
+ RELOPT_KIND_PARTITIONED = (1 << 11),
/* if you add a new kind, make sure you update "last_default" too */
- RELOPT_KIND_LAST_DEFAULT = RELOPT_KIND_BRIN,
+ RELOPT_KIND_LAST_DEFAULT = RELOPT_KIND_PARTITIONED,
/* some compilers treat enums as signed ints, so we can't use 1 << 31 */
RELOPT_KIND_MAX = (1 << 30)
} relopt_kind;
diff --git a/src/include/catalog/catversion.h b/src/include/catalog/catversion.h
index bee5711da88..d067b757b0f 100644
--- a/src/include/catalog/catversion.h
+++ b/src/include/catalog/catversion.h
@@ -53,6 +53,6 @@
*/
/* yyyymmddN */
-#define CATALOG_VERSION_NO 201703292
+#define CATALOG_VERSION_NO 201703311
#endif