跳转到主要内容

pg_parquet

copy data between Postgres and Parquet

pg_parquet : copy data between Postgres and Parquet

Overview

ID Extension Package Version Category License Language
2480 pg_parquet pg_parquet 0.6.1 OLAP PostgreSQL Rust
Attribute Has Binary Has Library Need Load Has DDL Relocatable Trusted
--sLd-- No Yes Yes Yes no no
Pigsty fixes streaming COPY temp-file leaks.

Packages

Type Repo Version PG Major Compatibility Package Pattern Dependencies
EXT PIGSTY 0.6.1 19 18 17 16 15 pg_parquet -
RPM PIGSTY 0.5.1 19 18 17 16 15 pg_parquet_$v -
DEB PIGSTY 0.5.1 19 18 17 16 15 postgresql-$v-pg-parquet -
Linux / PG PG19 PG18 PG17 PG16 PG15
el8.x86_64 N/A PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1
el8.aarch64 N/A PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1
el9.x86_64 MISS PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1
el9.aarch64 MISS PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1
el10.x86_64 MISS PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1
el10.aarch64 MISS PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1
d12.x86_64 MISS PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1
d12.aarch64 MISS PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1
d13.x86_64 MISS PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1
d13.aarch64 MISS PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1
u22.x86_64 MISS PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1
u22.aarch64 MISS PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1
u24.x86_64 MISS PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1
u24.aarch64 MISS PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1
u26.x86_64 MISS PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1
u26.aarch64 MISS PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1 PIGSTY 0.5.1
Package Version OS ORG SIZE File URL
pg_parquet_18 0.5.1 el8.x86_64 pigsty 9.8 MiB pg_parquet_18-0.5.1-4PGSTY.el8.x86_64.rpm
pg_parquet_18 0.5.1 el8.x86_64 pgdg 7.1 MiB pg_parquet_18-0.5.1-2PGDG.rhel8.10.x86_64.rpm
pg_parquet_18 0.5.1 el8.x86_64 pgdg 7.1 MiB pg_parquet_18-0.5.1-1PGDG.rhel8.10.x86_64.rpm
pg_parquet_18 0.5.1 el8.aarch64 pigsty 8.8 MiB pg_parquet_18-0.5.1-4PGSTY.el8.aarch64.rpm
pg_parquet_18 0.5.1 el8.aarch64 pgdg 6.2 MiB pg_parquet_18-0.5.1-2PGDG.rhel8.10.aarch64.rpm
pg_parquet_18 0.5.1 el8.aarch64 pgdg 6.2 MiB pg_parquet_18-0.5.1-1PGDG.rhel8.10.aarch64.rpm
pg_parquet_18 0.5.1 el9.x86_64 pigsty 9.7 MiB pg_parquet_18-0.5.1-4PGSTY.el9.x86_64.rpm
pg_parquet_18 0.5.1 el9.x86_64 pgdg 6.8 MiB pg_parquet_18-0.5.1-3PGDG.rhel9.9.x86_64.rpm
pg_parquet_18 0.5.1 el9.aarch64 pigsty 9.2 MiB pg_parquet_18-0.5.1-4PGSTY.el9.aarch64.rpm
pg_parquet_18 0.5.1 el9.aarch64 pgdg 6.3 MiB pg_parquet_18-0.5.1-3PGDG.rhel9.9.aarch64.rpm
pg_parquet_18 0.5.1 el10.x86_64 pigsty 9.5 MiB pg_parquet_18-0.5.1-4PGSTY.el10.x86_64.rpm
pg_parquet_18 0.5.1 el10.x86_64 pgdg 6.7 MiB pg_parquet_18-0.5.1-3PGDG.rhel10.3.x86_64.rpm
pg_parquet_18 0.5.1 el10.aarch64 pigsty 9.1 MiB pg_parquet_18-0.5.1-4PGSTY.el10.aarch64.rpm
pg_parquet_18 0.5.1 el10.aarch64 pgdg 6.2 MiB pg_parquet_18-0.5.1-3PGDG.rhel10.3.aarch64.rpm
pg_parquet_18 0.5.1 el10.aarch64 pgdg 6.4 MiB pg_parquet_18-0.5.1-2PGDG.rhel10.2.aarch64.rpm
pg_parquet_18 0.5.1 el10.aarch64 pgdg 6.4 MiB pg_parquet_18-0.5.1-1PGDG.rhel10.2.aarch64.rpm
postgresql-18-pg-parquet 0.5.1 d12.x86_64 pigsty 8.3 MiB postgresql-18-pg-parquet_0.5.1-4PGSTY~bookworm_amd64.deb
postgresql-18-pg-parquet 0.5.1 d12.aarch64 pigsty 7.3 MiB postgresql-18-pg-parquet_0.5.1-4PGSTY~bookworm_arm64.deb
postgresql-18-pg-parquet 0.5.1 d13.x86_64 pigsty 8.3 MiB postgresql-18-pg-parquet_0.5.1-4PGSTY~trixie_amd64.deb
postgresql-18-pg-parquet 0.5.1 d13.aarch64 pigsty 7.4 MiB postgresql-18-pg-parquet_0.5.1-4PGSTY~trixie_arm64.deb
postgresql-18-pg-parquet 0.5.1 u22.x86_64 pigsty 9.1 MiB postgresql-18-pg-parquet_0.5.1-4PGSTY~jammy_amd64.deb
postgresql-18-pg-parquet 0.5.1 u22.aarch64 pigsty 8.7 MiB postgresql-18-pg-parquet_0.5.1-4PGSTY~jammy_arm64.deb
postgresql-18-pg-parquet 0.5.1 u24.x86_64 pigsty 9.1 MiB postgresql-18-pg-parquet_0.5.1-4PGSTY~noble_amd64.deb
postgresql-18-pg-parquet 0.5.1 u24.aarch64 pigsty 8.6 MiB postgresql-18-pg-parquet_0.5.1-4PGSTY~noble_arm64.deb
postgresql-18-pg-parquet 0.5.1 u26.x86_64 pigsty 9.0 MiB postgresql-18-pg-parquet_0.5.1-4PGSTY~resolute_amd64.deb
postgresql-18-pg-parquet 0.5.1 u26.aarch64 pigsty 8.6 MiB postgresql-18-pg-parquet_0.5.1-4PGSTY~resolute_arm64.deb
Package Version OS ORG SIZE File URL
pg_parquet_17 0.5.1 el8.x86_64 pigsty 9.8 MiB pg_parquet_17-0.5.1-4PGSTY.el8.x86_64.rpm
pg_parquet_17 0.5.1 el8.x86_64 pgdg 7.1 MiB pg_parquet_17-0.5.1-2PGDG.rhel8.10.x86_64.rpm
pg_parquet_17 0.5.1 el8.x86_64 pgdg 7.1 MiB pg_parquet_17-0.5.1-1PGDG.rhel8.10.x86_64.rpm
pg_parquet_17 0.5.1 el8.aarch64 pigsty 8.8 MiB pg_parquet_17-0.5.1-4PGSTY.el8.aarch64.rpm
pg_parquet_17 0.5.1 el8.aarch64 pgdg 6.2 MiB pg_parquet_17-0.5.1-2PGDG.rhel8.10.aarch64.rpm
pg_parquet_17 0.5.1 el8.aarch64 pgdg 6.2 MiB pg_parquet_17-0.5.1-1PGDG.rhel8.10.aarch64.rpm
pg_parquet_17 0.5.1 el9.x86_64 pigsty 9.7 MiB pg_parquet_17-0.5.1-4PGSTY.el9.x86_64.rpm
pg_parquet_17 0.5.1 el9.x86_64 pgdg 6.8 MiB pg_parquet_17-0.5.1-3PGDG.rhel9.9.x86_64.rpm
pg_parquet_17 0.5.1 el9.aarch64 pigsty 9.2 MiB pg_parquet_17-0.5.1-4PGSTY.el9.aarch64.rpm
pg_parquet_17 0.5.1 el9.aarch64 pgdg 6.3 MiB pg_parquet_17-0.5.1-3PGDG.rhel9.9.aarch64.rpm
pg_parquet_17 0.5.1 el10.x86_64 pigsty 9.5 MiB pg_parquet_17-0.5.1-4PGSTY.el10.x86_64.rpm
pg_parquet_17 0.5.1 el10.x86_64 pgdg 6.7 MiB pg_parquet_17-0.5.1-3PGDG.rhel10.3.x86_64.rpm
pg_parquet_17 0.5.1 el10.aarch64 pigsty 9.1 MiB pg_parquet_17-0.5.1-4PGSTY.el10.aarch64.rpm
pg_parquet_17 0.5.1 el10.aarch64 pgdg 6.2 MiB pg_parquet_17-0.5.1-3PGDG.rhel10.3.aarch64.rpm
pg_parquet_17 0.5.1 el10.aarch64 pgdg 6.4 MiB pg_parquet_17-0.5.1-2PGDG.rhel10.2.aarch64.rpm
pg_parquet_17 0.5.1 el10.aarch64 pgdg 6.4 MiB pg_parquet_17-0.5.1-1PGDG.rhel10.2.aarch64.rpm
postgresql-17-pg-parquet 0.5.1 d12.x86_64 pigsty 8.3 MiB postgresql-17-pg-parquet_0.5.1-4PGSTY~bookworm_amd64.deb
postgresql-17-pg-parquet 0.5.1 d12.aarch64 pigsty 7.3 MiB postgresql-17-pg-parquet_0.5.1-4PGSTY~bookworm_arm64.deb
postgresql-17-pg-parquet 0.5.1 d13.x86_64 pigsty 8.3 MiB postgresql-17-pg-parquet_0.5.1-4PGSTY~trixie_amd64.deb
postgresql-17-pg-parquet 0.5.1 d13.aarch64 pigsty 7.4 MiB postgresql-17-pg-parquet_0.5.1-4PGSTY~trixie_arm64.deb
postgresql-17-pg-parquet 0.5.1 u22.x86_64 pigsty 9.1 MiB postgresql-17-pg-parquet_0.5.1-4PGSTY~jammy_amd64.deb
postgresql-17-pg-parquet 0.5.1 u22.aarch64 pigsty 8.7 MiB postgresql-17-pg-parquet_0.5.1-4PGSTY~jammy_arm64.deb
postgresql-17-pg-parquet 0.5.1 u24.x86_64 pigsty 9.1 MiB postgresql-17-pg-parquet_0.5.1-4PGSTY~noble_amd64.deb
postgresql-17-pg-parquet 0.5.1 u24.aarch64 pigsty 8.6 MiB postgresql-17-pg-parquet_0.5.1-4PGSTY~noble_arm64.deb
postgresql-17-pg-parquet 0.5.1 u26.x86_64 pigsty 9.0 MiB postgresql-17-pg-parquet_0.5.1-4PGSTY~resolute_amd64.deb
postgresql-17-pg-parquet 0.5.1 u26.aarch64 pigsty 8.6 MiB postgresql-17-pg-parquet_0.5.1-4PGSTY~resolute_arm64.deb
Package Version OS ORG SIZE File URL
pg_parquet_16 0.5.1 el8.x86_64 pigsty 9.8 MiB pg_parquet_16-0.5.1-4PGSTY.el8.x86_64.rpm
pg_parquet_16 0.5.1 el8.x86_64 pgdg 7.1 MiB pg_parquet_16-0.5.1-2PGDG.rhel8.10.x86_64.rpm
pg_parquet_16 0.5.1 el8.x86_64 pgdg 7.1 MiB pg_parquet_16-0.5.1-1PGDG.rhel8.10.x86_64.rpm
pg_parquet_16 0.5.1 el8.aarch64 pigsty 8.8 MiB pg_parquet_16-0.5.1-4PGSTY.el8.aarch64.rpm
pg_parquet_16 0.5.1 el8.aarch64 pgdg 6.2 MiB pg_parquet_16-0.5.1-2PGDG.rhel8.10.aarch64.rpm
pg_parquet_16 0.5.1 el8.aarch64 pgdg 6.2 MiB pg_parquet_16-0.5.1-1PGDG.rhel8.10.aarch64.rpm
pg_parquet_16 0.5.1 el9.x86_64 pigsty 9.7 MiB pg_parquet_16-0.5.1-4PGSTY.el9.x86_64.rpm
pg_parquet_16 0.5.1 el9.x86_64 pgdg 6.8 MiB pg_parquet_16-0.5.1-3PGDG.rhel9.9.x86_64.rpm
pg_parquet_16 0.5.1 el9.aarch64 pigsty 9.2 MiB pg_parquet_16-0.5.1-4PGSTY.el9.aarch64.rpm
pg_parquet_16 0.5.1 el9.aarch64 pgdg 6.3 MiB pg_parquet_16-0.5.1-3PGDG.rhel9.9.aarch64.rpm
pg_parquet_16 0.5.1 el10.x86_64 pigsty 9.5 MiB pg_parquet_16-0.5.1-4PGSTY.el10.x86_64.rpm
pg_parquet_16 0.5.1 el10.x86_64 pgdg 6.7 MiB pg_parquet_16-0.5.1-3PGDG.rhel10.3.x86_64.rpm
pg_parquet_16 0.5.1 el10.aarch64 pigsty 9.1 MiB pg_parquet_16-0.5.1-4PGSTY.el10.aarch64.rpm
pg_parquet_16 0.5.1 el10.aarch64 pgdg 6.2 MiB pg_parquet_16-0.5.1-3PGDG.rhel10.3.aarch64.rpm
pg_parquet_16 0.5.1 el10.aarch64 pgdg 6.4 MiB pg_parquet_16-0.5.1-2PGDG.rhel10.2.aarch64.rpm
pg_parquet_16 0.5.1 el10.aarch64 pgdg 6.4 MiB pg_parquet_16-0.5.1-1PGDG.rhel10.2.aarch64.rpm
postgresql-16-pg-parquet 0.5.1 d12.x86_64 pigsty 8.3 MiB postgresql-16-pg-parquet_0.5.1-4PGSTY~bookworm_amd64.deb
postgresql-16-pg-parquet 0.5.1 d12.aarch64 pigsty 7.3 MiB postgresql-16-pg-parquet_0.5.1-4PGSTY~bookworm_arm64.deb
postgresql-16-pg-parquet 0.5.1 d13.x86_64 pigsty 8.3 MiB postgresql-16-pg-parquet_0.5.1-4PGSTY~trixie_amd64.deb
postgresql-16-pg-parquet 0.5.1 d13.aarch64 pigsty 7.3 MiB postgresql-16-pg-parquet_0.5.1-4PGSTY~trixie_arm64.deb
postgresql-16-pg-parquet 0.5.1 u22.x86_64 pigsty 9.1 MiB postgresql-16-pg-parquet_0.5.1-4PGSTY~jammy_amd64.deb
postgresql-16-pg-parquet 0.5.1 u22.aarch64 pigsty 8.6 MiB postgresql-16-pg-parquet_0.5.1-4PGSTY~jammy_arm64.deb
postgresql-16-pg-parquet 0.5.1 u24.x86_64 pigsty 9.1 MiB postgresql-16-pg-parquet_0.5.1-4PGSTY~noble_amd64.deb
postgresql-16-pg-parquet 0.5.1 u24.aarch64 pigsty 8.7 MiB postgresql-16-pg-parquet_0.5.1-4PGSTY~noble_arm64.deb
postgresql-16-pg-parquet 0.5.1 u26.x86_64 pigsty 9.0 MiB postgresql-16-pg-parquet_0.5.1-4PGSTY~resolute_amd64.deb
postgresql-16-pg-parquet 0.5.1 u26.aarch64 pigsty 8.6 MiB postgresql-16-pg-parquet_0.5.1-4PGSTY~resolute_arm64.deb
Package Version OS ORG SIZE File URL
pg_parquet_15 0.5.1 el8.x86_64 pigsty 9.8 MiB pg_parquet_15-0.5.1-4PGSTY.el8.x86_64.rpm
pg_parquet_15 0.5.1 el8.x86_64 pgdg 7.1 MiB pg_parquet_15-0.5.1-2PGDG.rhel8.10.x86_64.rpm
pg_parquet_15 0.5.1 el8.x86_64 pgdg 7.1 MiB pg_parquet_15-0.5.1-1PGDG.rhel8.10.x86_64.rpm
pg_parquet_15 0.5.1 el8.aarch64 pigsty 8.8 MiB pg_parquet_15-0.5.1-4PGSTY.el8.aarch64.rpm
pg_parquet_15 0.5.1 el8.aarch64 pgdg 6.2 MiB pg_parquet_15-0.5.1-2PGDG.rhel8.10.aarch64.rpm
pg_parquet_15 0.5.1 el8.aarch64 pgdg 6.2 MiB pg_parquet_15-0.5.1-1PGDG.rhel8.10.aarch64.rpm
pg_parquet_15 0.5.1 el9.x86_64 pigsty 9.7 MiB pg_parquet_15-0.5.1-4PGSTY.el9.x86_64.rpm
pg_parquet_15 0.5.1 el9.x86_64 pgdg 6.8 MiB pg_parquet_15-0.5.1-3PGDG.rhel9.9.x86_64.rpm
pg_parquet_15 0.5.1 el9.aarch64 pigsty 9.2 MiB pg_parquet_15-0.5.1-4PGSTY.el9.aarch64.rpm
pg_parquet_15 0.5.1 el9.aarch64 pgdg 6.3 MiB pg_parquet_15-0.5.1-3PGDG.rhel9.9.aarch64.rpm
pg_parquet_15 0.5.1 el10.x86_64 pigsty 9.5 MiB pg_parquet_15-0.5.1-4PGSTY.el10.x86_64.rpm
pg_parquet_15 0.5.1 el10.x86_64 pgdg 6.7 MiB pg_parquet_15-0.5.1-3PGDG.rhel10.3.x86_64.rpm
pg_parquet_15 0.5.1 el10.aarch64 pigsty 9.1 MiB pg_parquet_15-0.5.1-4PGSTY.el10.aarch64.rpm
pg_parquet_15 0.5.1 el10.aarch64 pgdg 6.2 MiB pg_parquet_15-0.5.1-3PGDG.rhel10.3.aarch64.rpm
pg_parquet_15 0.5.1 el10.aarch64 pgdg 6.4 MiB pg_parquet_15-0.5.1-2PGDG.rhel10.2.aarch64.rpm
pg_parquet_15 0.5.1 el10.aarch64 pgdg 6.4 MiB pg_parquet_15-0.5.1-1PGDG.rhel10.2.aarch64.rpm
postgresql-15-pg-parquet 0.5.1 d12.x86_64 pigsty 8.3 MiB postgresql-15-pg-parquet_0.5.1-4PGSTY~bookworm_amd64.deb
postgresql-15-pg-parquet 0.5.1 d12.aarch64 pigsty 7.3 MiB postgresql-15-pg-parquet_0.5.1-4PGSTY~bookworm_arm64.deb
postgresql-15-pg-parquet 0.5.1 d13.x86_64 pigsty 8.3 MiB postgresql-15-pg-parquet_0.5.1-4PGSTY~trixie_amd64.deb
postgresql-15-pg-parquet 0.5.1 d13.aarch64 pigsty 7.3 MiB postgresql-15-pg-parquet_0.5.1-4PGSTY~trixie_arm64.deb
postgresql-15-pg-parquet 0.5.1 u22.x86_64 pigsty 9.1 MiB postgresql-15-pg-parquet_0.5.1-4PGSTY~jammy_amd64.deb
postgresql-15-pg-parquet 0.5.1 u22.aarch64 pigsty 8.6 MiB postgresql-15-pg-parquet_0.5.1-4PGSTY~jammy_arm64.deb
postgresql-15-pg-parquet 0.5.1 u24.x86_64 pigsty 9.1 MiB postgresql-15-pg-parquet_0.5.1-4PGSTY~noble_amd64.deb
postgresql-15-pg-parquet 0.5.1 u24.aarch64 pigsty 8.6 MiB postgresql-15-pg-parquet_0.5.1-4PGSTY~noble_arm64.deb
postgresql-15-pg-parquet 0.5.1 u26.x86_64 pigsty 9.0 MiB postgresql-15-pg-parquet_0.5.1-4PGSTY~resolute_amd64.deb
postgresql-15-pg-parquet 0.5.1 u26.aarch64 pigsty 8.6 MiB postgresql-15-pg-parquet_0.5.1-4PGSTY~resolute_arm64.deb

Source

pig build pkg pg_parquet;		# build rpm/deb

Install

Make sure PGDG and PIGSTY repo available:

pig repo add pgsql -u   # add both repo and update cache

Install this extension with pig:

pig install pg_parquet;		# install via package name, for the active PG version

pig install pg_parquet -v 19;   # install for PG 19
pig install pg_parquet -v 18;   # install for PG 18
pig install pg_parquet -v 17;   # install for PG 17
pig install pg_parquet -v 16;   # install for PG 16
pig install pg_parquet -v 15;   # install for PG 15

Config this extension to shared_preload_libraries:

shared_preload_libraries = 'pg_parquet';

Create this extension with:

CREATE EXTENSION pg_parquet;

Usage

Sources:

pg_parquet 0.6.0 reads and writes Parquet through PostgreSQL COPY and inspects file metadata. The source targets PostgreSQL 14–19. It uses server-side local files or S3, Azure, GCS and HTTP(S) endpoints; these locations and credentials are separate from a PostgreSQL backup.

Enable and Copy

Preserve other preload entries, add the library and restart. A superuser creates the non-relocatable extension. The server process must have access to the chosen local path or remote object. Run the example as an administrator with the relevant COPY privileges:

shared_preload_libraries = 'pg_parquet'
CREATE EXTENSION pg_parquet;
CREATE TABLE parquet_demo (id bigint, label text);
INSERT INTO parquet_demo VALUES (1, 'first'), (2, 'second');
COPY parquet_demo TO '/tmp/parquet_demo.parquet' WITH (format parquet);
CREATE TABLE parquet_copy (LIKE parquet_demo);
COPY parquet_copy FROM '/tmp/parquet_demo.parquet' WITH (format parquet, match_by name);
SELECT * FROM parquet.schema('/tmp/parquet_demo.parquet');
SELECT * FROM parquet.file_metadata('/tmp/parquet_demo.parquet');

Use COPY of a query for a filtered export. STDIN, STDOUT and PROGRAM streams require an explicit Parquet format. External output is not rolled back with the SQL transaction: failed or rolled-back exports can leave files or incomplete uploads.

Schema and Type Handling

CREATE TABLE inferred_demo () WITH (load_from = '/tmp/parquet_demo.parquet');
SET pg_parquet.max_parallel_workers = 2;
SELECT * FROM pg_stat_progress_copy;

The load_from table option infers columns and loads rows. Composite types are created in parquet_structs; the creator needs CREATE there, which installation grants to PUBLIC. Generated types survive dropping the table. Dropping the extension with CASCADE can remove dependent columns. Maps require crunchy_map; unsupported inferred types need an explicitly defined target table.

match_by name matches nested composite fields by name; the default is position. Version 0.6.0 improves dictionary/decimal/INT96 and infinite date/timestamp reads, preserves JSON text and rejects embedded NUL strings. COPY TO rejects multidimensional arrays. PostGIS geometry/geography use Parquet geospatial types; curves and other unsupported geometries must be converted or exported explicitly as binary.

Files, Performance and Credentials

parquet.metadata, parquet.kv_metadata, parquet.column_stats and parquet.schema inspect files. The bloom_filter and dictionary export options select columns; COPY FROM reads all rows and does not use bloom filters to filter them.

pg_parquet.max_parallel_workers defaults to zero. Eligible copies can use parallel workers; query exports, temporary tables, triggers/defaults and other cases can keep the serial path. Import workers decode while the leader inserts. Inspect pg_stat_progress_copy and size resources for the actual file and table.

file_size_bytes writes a folder of files. Nonempty folders are refused unless overwrite true is specified, except that a denied listing cannot establish emptiness and retains the older write behavior. Overwrite can remove files from an earlier copy. Concurrent writers are excluded within one PostgreSQL instance; other instances require external coordination. A single-file destination retains its replacement behavior. Plan cleanup for failed exports.

pg_parquet.profile_name selects an object-store identity only if the role is allowed by parquet.user_profile_mapping. Only a superuser or parquet_profile_manager may manage that mapping; privileges are rechecked for each copy. Keep credentials in protected server-side files/environment. pg_parquet.allow_credentials_in_parameters defaults off because SQL credentials can appear in logs and activity views. HTTP exports buffer one file in memory and cap it at 10 MiB; object-store parallel multipart requirements vary, including limitations for stores demanding equally sized parts.

Upgrade

Deploy files matching the server major, follow the preload maintenance procedure and use the supplied SQL update path. Check existing folder-export jobs, inferred composite-type dependencies, credential mappings and type coercion behavior before moving to 0.6.0.

表格阅读器