From 3acd3ebae2f4c1d2c75f9a295ff6399f959e3553 Mon Sep 17 00:00:00 2001 From: Onur Tirtir Date: Mon, 29 Mar 2021 16:29:32 +0300 Subject: [PATCH 1/2] Remove temp table limitation from columnar README --- src/backend/columnar/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backend/columnar/README.md b/src/backend/columnar/README.md index 85b8dbc51..3ba7fcfd1 100644 --- a/src/backend/columnar/README.md +++ b/src/backend/columnar/README.md @@ -58,7 +58,6 @@ Benefits of Citus Columnar over cstore_fdw: * No support for intra-node parallel scans * No support for ``AFTER ... FOR EACH ROW`` triggers * No `UNLOGGED` columnar tables -* No `TEMPORARY` columnar tables Future iterations will incrementally lift the limitations listed above. From 7dcd9380e726f9d078ce55c7a9b00cf31a4ec255 Mon Sep 17 00:00:00 2001 From: Onur Tirtir Date: Tue, 4 May 2021 12:14:17 +0300 Subject: [PATCH 2/2] Update index support section of columnar README --- src/backend/columnar/README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/backend/columnar/README.md b/src/backend/columnar/README.md index 3ba7fcfd1..218c99df8 100644 --- a/src/backend/columnar/README.md +++ b/src/backend/columnar/README.md @@ -41,7 +41,7 @@ Benefits of Citus Columnar over cstore_fdw: * Append-only (no ``UPDATE``/``DELETE`` support) * No space reclamation (e.g. rolled-back transactions may still consume disk space) -* No index support, index scans, or bitmap index scans +* No bitmap index scans * No tidscans * No sample scans * No TOAST support (large values supported inline) @@ -187,10 +187,14 @@ operations that are supported on row tables but not columnar data to be updated only affects row tables (e.g. ``UPDATE parent SET i = i + 1 WHERE n = 300``). -Because columnar tables do not support indexes, it's impossible to -create indexes on the partitioned table if some partitions are -columnar. Instead, you must create indexes on the individual row -partitions. Similarly for constraints that require indexes, e.g.: +Note that Citus Columnar supports `btree` and `hash `indexes (and +the constraints requiring them) but does not support `gist`, `gin`, +`spgist` and `brin` indexes. +For this reason, if some partitions are columnar and if the index is +not supported by Citus Columnar, then it's impossible to create indexes +on the partitioned (parent) table directly. In that case, you need to +create the index on the individual row partitions. Similarly for the +constraints that require indexes, e.g.: ```sql CREATE INDEX p2_ts_idx ON p2 (ts);