vexec_parquet
pg_vexec · Parquet table access method for local and S3 files through Apache Arrow
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102484 | vexec_parquet | pg_vexec | 1.1 | OLAP | Apache-2.0 | C++ |
PostgreSQL · 19
Usage
Sources:
- modules/vexec_parquet/README.md
- modules/vexec_parquet/vexec_parquet.control
- modules/vexec_parquet/vexec_parquet–1.0.sql
- modules/vexec_parquet/vexec_parquet–1.0–1.1.sql
- modules/vexec_parquet/Makefile
vexec_parquet 1.1, included in pg_vexec0.0.7, is a PostgreSQL19 table access method using Apache Arrow C++26 to read and write Parquet on local storage or S3. Its Parquet files are outside PostgreSQL WAL, which is a central recovery limitation.
Create a Table
Preload the library and restart; also preload vexec when using its batch executor. A superuser creates the nonrelocatable SQL extension:
A table without a location option owns writable files. The location option instead exposes existing files as a read-only table; supply columns matching the file schema. vexec_parquet.columns() and vexec_parquet.column_list() inspect that schema. storage selects a root for owned files, while codec and row_group_rows control new file layout.
Privileges and Recovery
External locations require pg_read_server_files privileges; custom storage roots require pg_write_server_files. Sensitive file helpers are revoked from PUBLIC. S3 credentials belong in administrator settings or the SDK credential chain; credentials inside URIs are rejected. The optional vexec integration is not a control-file dependency.
Owned-file rows are tracked through MVCC catalogs, but the files themselves do not appear on a standby, through logical decoding, in PITR beyond a base backup, or after pg_upgrade. Use the documented dump/restore migration path and preserve external data independently. Matching binaries and storage access are needed on restore targets.
There is no compaction of deleted rows within files. VACUUM reclaims eligible metadata/files; VACUUM FULL or CLUSTER rewrites the table. Concurrent index creation/reindexing is refused. External-file tables reject writes, indexes and partitioning. Use query-form COPY for their export. PostgreSQL relation-size functions do not measure the external Parquet bytes.