Open
Description
What happens?
When I try to use the postgres extension with AWS Redshift I get an error message:
Error: Invalid Error: Failed to execute query "SELECT CURRENT_SETTING('server_version'), (SELECT COUNT(*) FROM pg_settings WHERE name LIKE 'rds%')": ERROR: must be superuser to examine "server_version"
I can use SELECT version();
on Redshift.
cyau@redshift:dev> SELECT version();
+---------------------------------------------------------------------------------------------------------------------------+
| version |
|---------------------------------------------------------------------------------------------------------------------------|
| PostgreSQL 8.0.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3), Redshift 1.0.62878 |
+---------------------------------------------------------------------------------------------------------------------------+
SELECT 1
Time: 0.043s
This appears to be caused by the query here:
https://github.com/duckdb/postgres_scanner/blob/883a8f1a8a487264855a5166f7df1f46ad386434/src/postgres_connection.cpp#L122
To Reproduce
v0.10.0 20b1486d11
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
D attach 'dbname=mydb user=username host=redshift.server.address password=password port=5439' as db (TYPE postgres);
Error: Invalid Error: Failed to execute query "SELECT CURRENT_SETTING('server_version'), (SELECT COUNT(*) FROM pg_settings WHERE name LIKE 'rds%')": ERROR: must be superuser to examine "server_version"
OS:
Ubuntu 22.04 LTS
PostgreSQL Version:
Redshift (based on PostgreSQL 8.0.2)
DuckDB Version:
v0.10.0 20b1486d11
DuckDB Client:
CLI
Full Name:
Cedric Yau
Affiliation:
LinebackerData
Have you tried this on the latest main
branch?
- I agree
Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?
- I agree
Metadata
Metadata
Assignees
Labels
No labels