Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to pass extra server args to postgres_fdw:
``` sgr mount postgres_fdw schema -c [connstr] -o@- <<EOF { "extra_server_args": { "use_remote_estimate": "true", "extensions": "postgis", "fetch_size": "10000" } } EOF ``` Add ability to rename object files in-engine (utility function for some ingestion). Allow disabling `IMPORT FOREIGN SCHEMA` and passing a table schema in Postgres/MySQL FDWs. For example: ``` sgr mount mysql_fdw schema -c [connstr] -o@- <<EOF { "remote_schema": "mysql_schema", "tables": { "table_1": { "t1_col_1": "integer", "t1_col_2": "text" }, "table_2": { "t2_col_1": "bigint", "t2_col_2": "integer" } } } EOF ``` Add a fork (https://github.com/splitgraph/postgres-elasticsearch-fdw) of https://github.com/matthewfranglen/postgres-elasticsearch-fdw to `sgr mount`, letting others mount ES indexes: ``` sgr mount elasticsearch -c elasticsearch:9200 -o@- <<EOF { "table_spec": { "table_1": { "schema": { "id": "text", "@timestamp": "timestamp", "query": "text", "col_1": "text", "col_2": "boolean", } "index": "index-pattern*", "rowid_column": "id", "query_column": "query", } } } EOF ``` Differences: * Pass qualifiers as ElasticSearch queries using the query DSL (was using the `query=...` qual as a Lucene query string, which is useless in JOINs. Now we combine both the query implied from the quals and the Lucene query string, if passed) * Close the search context on `end_scan` (otherwise many ES queries to the FDW in a 10 minute span would cause it to error with a "too many scroll contexts" exception) * Add EXPLAIN support (outputs the used ES query)
- Loading branch information