Support schema selection through PgBouncer without startup `options`
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- postgresql
- Domain
- databases
Research direction
Start by tracing how the extension handles schema selection in connection profiles and constructs PostgreSQL startup options. Find the connection-initialization path and determine how an optional SQL command could run before schema-aware features; done means schema selection works through PgBouncer without embedding SET statements in every query.
Written by the indexing model from the issue text.
Description
When a schema is selected in a connection profile, the extension passes it
through the PostgreSQL startup option:
options=-c search_path=public,client_schema
Some PgBouncer configurations reject this with:
FATAL: unsupported startup parameter in options: search_path
A connection without options succeeds, but schema-aware queries cannot be
used through such PgBouncer endpoints.
Please consider adding an optional connection-initialization SQL command, for
example:
SET search_path TO public, client_schema;
Manually prepending SET search_path TO public, client_schema; to every query is not an
equivalent workaround. It does not provide schema context to extension
features such as IntelliSense, which can then suggest a large number of
objects from unrelated schemas. It also makes query-history entries less
useful, since many queries begin with the same SET search_path TO public, client_schema; statement.
- Dominant language
- No language data
- Stars
- 395
- Forks
- 33
- Avg merge
- 1h 46m
- Merged PRs (30d)
- 3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/vscode-pgsql
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
microsoft/vscode-pgsql#190 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
microsoft/vscode-pgsql#307 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
microsoft/vscode-pgsql#305 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
microsoft/vscode-pgsql#302 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
microsoft/vscode-pgsql#301 ·
All issues in microsoft/vscode-pgsql
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OpenLiberty/open-liberty#35839 ·
-
affects-9.0 found-by-ai may-affects-25.10 may-affects-26.3 may-affects-26.9 may-affects-7.5 may-affects-8.1 may-affects-8.5 severity/major sig/execution type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
antlr/grammars-v4#5014 · 1 comment ·
-
comp-query-execution fuzz
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121303 · 3 comments ·