pgspider_ext
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pgspider_ext | 1.3.0 | FDW | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 8540 | pgspider_ext | No | Yes | No | Yes | No | Yes | - |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PGDG | 1.3.0 | 1817161514 | pgspider_ext | - |
| RPM | PGDG | 1.3.0 | 1817161514 | pgspider_ext_$v | - |
| DEB | PIGSTY | 1.3.0 | 1817161514 | postgresql-$v-pgspider-ext | - |
Build
You can build the DEB packages for pgspider_ext using pig build:
Install
You can install pgspider_ext directly. First, make sure the PGDG repository is added and enabled:
Install the extension using pig or apt/yum/dnf:
Create Extension:
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.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)