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

Change search_path for session duration? #229

Open
fmorroni opened this issue Apr 25, 2024 · 0 comments
Open

Change search_path for session duration? #229

fmorroni opened this issue Apr 25, 2024 · 0 comments

Comments

@fmorroni
Copy link

Hi, is it possible so set the search_path to a specific schema for the duration of a session? Or is there any other way to "connect" to a schema so all table names are relative to it?

My use case is that I have a .sql file with many queries and a set search_path to schema at the top. If I run the file as a whole it works fine, but when I try to run individual queries it fails because the search_path hasn't been permanently set and the tables aren't found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant