pgspider_ext
pgspider_ext : foreign-data wrapper for remote PGSpider servers
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 8540 | pgspider_ext | pgspider_ext | 1.3.0 |
FDW | PostgreSQL | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-r | No | Yes | No | Yes | yes | no |
| Relationships | |
|---|---|
| See Also | postgres_fdw db_migrator dblink citus plproxy pgactive spock mysql_fdw pgclone mimeo |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PGDG | 1.3.0 |
18 17 16 15 14 | pgspider_ext |
- |
| RPM | PGDG | 1.3.0 |
18 17 16 15 14 | pgspider_ext_$v |
- |
| DEB | PIGSTY | 1.3.0 |
18 17 16 15 14 | postgresql-$v-pgspider-ext |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | N/A |
| el8.aarch64 | PIGSTY 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | N/A |
| el9.x86_64 | PIGSTY 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | N/A |
| el9.aarch64 | PIGSTY 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | N/A |
| el10.x86_64 | PIGSTY 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | N/A |
| el10.aarch64 | PIGSTY 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | PGDG 1.3.0 | N/A |
| d12.x86_64 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | N/A |
| d12.aarch64 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | N/A |
| d13.x86_64 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | N/A |
| d13.aarch64 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | N/A |
| u22.x86_64 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | N/A |
| u22.aarch64 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | N/A |
| u24.x86_64 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | N/A |
| u24.aarch64 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | N/A |
| u26.x86_64 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | N/A |
| u26.aarch64 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | PIGSTY 1.3.0 | N/A |
Source
github.com/pgspider/pgspider_ext
pgspider_ext-1.3.0.tar.gz
Install
Make sure PGDG repo available:
Install this extension with pig:
Create this extension with:
Usage
pgspider_ext: Foreign data wrapper for remote PGSpider servers
PGSpider Extension turns PostgreSQL into a distributed query engine by creating virtual partitioned tables that transparently query data across multiple remote nodes in parallel.
Setup Child Servers
First, create servers for each data source using their respective FDWs:
Create Child Foreign Tables
Create PGSpider Partitioned Table
Create a PGSpider server and a partitioned parent table with an extra partition key column:
By default, PGSpider finds child tables using the pattern [parent_table_name]_child. Use child_name to specify a different name.
Query Across All Nodes
Queries automatically fan out to all child nodes in parallel. WHERE clauses and aggregate functions are pushed down to child nodes:
Note: Only SELECT operations are supported; INSERT, UPDATE, and DELETE are not supported.