pg_analytics
pg_analytics
pg_analytics : Postgres for analytics, powered by DuckDB
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 2420 | pg_analytics
|
pg_analytics
|
0.3.7 |
OLAP
|
PostgreSQL
|
Rust
|
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
--s-dt-
|
No
|
Yes
|
No
|
Yes
|
no
|
yes
|
| Relationships | |
|---|---|
| See Also | pg_duckdb
pg_mooncake
duckdb_fdw
pg_parquet
columnar
citus_columnar
orioledb
citus
|
archived, no longer maintained
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY
|
0.3.7 |
18
17
16
15
14
13
|
pg_analytics |
- |
| RPM | PIGSTY
|
0.3.7 |
18
17
16
15
14
13
|
pg_analytics_$v |
- |
| DEB | PIGSTY
|
0.3.7 |
18
17
16
15
14
13
|
postgresql-$v-pg-analytics |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 | PG13 |
|---|---|---|---|---|---|---|
el8.x86_64
|
MISS
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.2.1
|
el8.aarch64
|
MISS
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.2.1
|
el9.x86_64
|
MISS
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.2.1
|
el9.aarch64
|
MISS
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.2.1
|
el10.x86_64
|
MISS
|
MISS
|
MISS
|
MISS
|
MISS
|
MISS
|
el10.aarch64
|
MISS
|
MISS
|
MISS
|
MISS
|
MISS
|
MISS
|
d12.x86_64
|
MISS
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
MISS
|
d12.aarch64
|
MISS
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
MISS
|
d13.x86_64
|
MISS
|
MISS
|
MISS
|
MISS
|
MISS
|
MISS
|
d13.aarch64
|
MISS
|
MISS
|
MISS
|
MISS
|
MISS
|
MISS
|
u22.x86_64
|
MISS
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
MISS
|
u22.aarch64
|
MISS
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
MISS
|
u24.x86_64
|
MISS
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
MISS
|
u24.aarch64
|
MISS
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
PIGSTY 0.3.7
|
MISS
|
| Package | Version | OS | ORG | SIZE | File URL |
|---|---|---|---|---|---|
pg_analytics_13 |
0.2.1 |
el8.x86_64 | pigsty | 10.1 MiB | pg_analytics_13-0.2.1-1PARADEDB.el8.x86_64.rpm |
pg_analytics_13 |
0.2.1 |
el8.aarch64 | pigsty | 8.8 MiB | pg_analytics_13-0.2.1-1PARADEDB.el8.aarch64.rpm |
pg_analytics_13 |
0.2.1 |
el9.x86_64 | pigsty | 10.1 MiB | pg_analytics_13-0.2.1-1PARADEDB.el9.x86_64.rpm |
pg_analytics_13 |
0.2.1 |
el9.aarch64 | pigsty | 9.3 MiB | pg_analytics_13-0.2.1-1PARADEDB.el9.aarch64.rpm |
Source
Install
Make sure PGDG and PIGSTY repo available:
pig repo add pgdg pigsty -u # add both repo and update cacheInstall this extension with pig:
pig install pg_analytics; # install via package name, for the active PG version
pig install pg_analytics -v 17; # install for PG 17
pig install pg_analytics -v 16; # install for PG 16
pig install pg_analytics -v 15; # install for PG 15
pig install pg_analytics -v 14; # install for PG 14Create this extension with:
CREATE EXTENSION pg_analytics;This extension is archived and no longer maintained. It is recommended to use other duckdb related extensions instead.
Usage
https://github.com/paradedb/pg_analytics
Example, read parquet files from S3:
CREATE EXTENSION pg_lakehouse;
CREATE FOREIGN DATA WRAPPER parquet_wrapper HANDLER parquet_fdw_handler VALIDATOR parquet_fdw_validator;
-- Provide S3 credentials
CREATE SERVER parquet_server FOREIGN DATA WRAPPER parquet_wrapper;
-- Create foreign table with auto schema creation
CREATE FOREIGN TABLE trips ()
SERVER parquet_server
OPTIONS (files 's3://paradedb-benchmarks/yellow_tripdata_2024-01.parquet');
-- Success! Now you can query the remote Parquet file like a regular Postgres table
SELECT COUNT(*) FROM trips;
count
---------
2964624
(1 row)This fdw is read-only for now.
Iceberg Support
CREATE EXTENSION pg_lakehouse;
CREATE FOREIGN DATA WRAPPER iceberg_wrapper
HANDLER iceberg_fdw_handler
VALIDATOR iceberg_fdw_validator;
CREATE SERVER iceberg_server
FOREIGN DATA WRAPPER iceberg_wrapper;
-- Replace the dummy schema with the actual schema
CREATE FOREIGN TABLE iceberg_table (x INT)
SERVER iceberg_server
OPTIONS (files 's3://bucket/iceberg_folder');
-- Success! You can now query the Iceberg table
SELECT COUNT(*) FROM iceberg_table;Last updated on