From 6d0b9c8b1f4fafdd6ed911724edc2a4fb0fddee2 Mon Sep 17 00:00:00 2001 From: Peter Smith Date: Tue, 23 Dec 2025 15:52:26 +1100 Subject: [PATCH v20251223] VCI docs --- doc/src/sgml/contrib.sgml | 1 + doc/src/sgml/filelist.sgml | 1 + doc/src/sgml/vci.sgml | 150 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 152 insertions(+) create mode 100644 doc/src/sgml/vci.sgml diff --git a/doc/src/sgml/contrib.sgml b/doc/src/sgml/contrib.sgml index 24b706b..ca0db7f 100644 --- a/doc/src/sgml/contrib.sgml +++ b/doc/src/sgml/contrib.sgml @@ -176,6 +176,7 @@ CREATE EXTENSION extension_name; &tsm-system-time; &unaccent; &uuid-ossp; + &vci; &xml2; diff --git a/doc/src/sgml/filelist.sgml b/doc/src/sgml/filelist.sgml index ac66fcb..a73bdf7 100644 --- a/doc/src/sgml/filelist.sgml +++ b/doc/src/sgml/filelist.sgml @@ -172,6 +172,7 @@ + diff --git a/doc/src/sgml/vci.sgml b/doc/src/sgml/vci.sgml new file mode 100644 index 0000000..e4986b0 --- /dev/null +++ b/doc/src/sgml/vci.sgml @@ -0,0 +1,150 @@ + + + + vci — Vertical Clustered Index + + + vci + + + + vci provides a columnar store that is implemented using + PostgreSQL index access methods (see ). + All data can be stored in memory. + + + + This module must be loaded by adding vci to both + and + in postgresql.conf, as it requires additional shared memory. + A server restart is required to add or remove the module. + + + + Functions + + + + + vci_runs_in_query() returns bool + + vci_runs_in_query + + + + + + + Returns true if a VCI index and custom scan are used + in the current query execution. This function is typically used to verify + whether a query is processed using VCI. For example: + + +SELECT vci_runs_in_query() AS vci_runs_in_query, key, count(*) FROM test_table; + + + + + + + + + + Parameters + + + + + vci.cost_threshold (integer) + + vci.cost_threshold configuration parameter + + + + + Specifies the CPU cost threshold beyond which the VCI control worker will + stop running. + + + + + + + vci.log_query (boolean) + + vci.log_query configuration parameter + + + + + Logs a message when a query cannot be executed using VCI. + + + + + + + vci.maintenance_work_mem (integer) + + vci.maintenance_work_mem configuration parameter + + + + + Specifies the maximum amount of memory that can be used by each VCI control + worker during maintenance operations. + + + + + + + TBD. There are many more parameters which are not yet documented. + + + + + Examples + + TBD. Add examples here. + + + + + Limitations + + + + + Currently, only a limited set of data types is supported for indexing with VCI. + + + + + This extension does not support the ALTER EXTENSION UPDATE command. + + + + + The command ALTER INDEX cannot be used for VCI indexes. + + + + + VCI indexes cannot be used with the CLUSTER command. + + + + + + + + + Authors + + Aya Iwata iwata.aya@fujitsu.com, + Fujitsu Limited, Kanagawa, Japan + + + + -- 1.8.3.1