Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The connection string option &search_path=custom doesn't work #3148

Closed
frederikhors opened this issue Dec 19, 2022 · 3 comments
Closed

The connection string option &search_path=custom doesn't work #3148

frederikhors opened this issue Dec 19, 2022 · 3 comments
Labels
t/bug Issue Type: Bug

Comments

@frederikhors
Copy link

frederikhors commented Dec 19, 2022

I'm trying neon for the first time today. Congratulations for the amazing idea!

I created a new DB and a new owner user.

With these credentials I connect to it and create a new schema called "custom".

I launch my two apps, the first uses "public" schema and the other one the "custom" one.

First connection string:

DB_CONNECTION_STRING_PUBLIC = postgres://<USER_NAME>:<USER_PASS>@ep-project-name-012345.eu-central-1.aws.neon.tech/<DB_NAME>?sslmode=verify-full

Second connection string (for the custom schema) (note the &search_path=custom):

DB_CONNECTION_STRING_PUBLIC = postgres://<USER_NAME>:<USER_PASS>@ep-project-name-012345.eu-central-1.aws.neon.tech/<DB_NAME>?sslmode=verify-full&search_path=custom

The first works good. The second one nope!

It seems that with or without search_path=custom it's the same: it always uses the public schema.

Obviously I'm using EXACTLY the same DB schema, the same apps, ALL THE SAME on other DBs too (and it works).

Maybe neon has some problem with schemas?

@frederikhors frederikhors added the t/bug Issue Type: Bug label Dec 19, 2022
@funbringer
Copy link
Contributor

funbringer commented Dec 21, 2022

Hi! Thanks for reporting this. This is actually a duplicate of #1287. Long story short, due to current implementation our proxy service doesn't forward all parameters. This is being reworked at the moment.

@frederikhors
Copy link
Author

Should I follow #1287 then?

@funbringer
Copy link
Contributor

Sure! I'll close that issue once the fix is available in prod environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/bug Issue Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants