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

sql: support SEARCH_PATH variable #12137

Closed
jordanlewis opened this issue Dec 7, 2016 · 3 comments
Closed

sql: support SEARCH_PATH variable #12137

jordanlewis opened this issue Dec 7, 2016 · 3 comments
Labels
A-sql-pgcompat Semantic compatibility with PostgreSQL

Comments

@jordanlewis
Copy link
Member

ActiveRecord tries to set SEARCH_PATH to public when it starts up. We need to support this.

See https://www.postgresql.org/docs/9.1/static/runtime-config-client.html

@asubiotto
Copy link
Contributor

Reopening this for tracking because lib/pq also uses this for tests.

@asubiotto asubiotto reopened this Oct 13, 2019
@jordanlewis
Copy link
Member Author

This is actually fixed now.

@jordanlewis
Copy link
Member Author

jordanlewis commented Apr 2, 2020

[email protected]:62369/defaultdb> set search_path=public;
SET

Time: 259µs

[email protected]:62369/defaultdb> set search_path=public,pg_catalog;
SET

Time: 272µs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-sql-pgcompat Semantic compatibility with PostgreSQL
Projects
None yet
Development

No branches or pull requests

2 participants