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
Avoid manipulating search path in table metadata fetch #147
Avoid manipulating search path in table metadata fetch #147
Conversation
Hey! I was just wondering about next steps for merging this in. I'd be happy to add an entry to CHANGES. Not sure if new tests/docs are relevant here. We're also bumping into the issue solved by #105, so I'd be happy to update that one to reflect the changes here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passing integration tests, so this looks great! All we need is a line in CHANGES.rst that describes the change in behavior and links to this PR, and I'll go ahead and merge.
Does that look okay? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small typo to fix
Co-Authored-By: cwegrzyn <chris.wegrzyn@gmail.com>
Oops, thanks! Committed |
We've run into some issues with transactions and the way that
_get_all_column_info
manipulates the search path. The search path manipulation only appears to be necessary becausepg_table_def
is used-- butpg_table_def
is a pretty simple view that we can integrate into the query, minus its pesky search path filter.For reference,
pg_table_def
is defined on Redshift as follows:pg_table_is_visible
is the bit that limits to tables in the search path.Todos