Skip to content

Preserve $user and other elements in search_path#56

Merged
darold merged 1 commit intodarold:masterfrom
japinli:issue#53
Jun 8, 2025
Merged

Preserve $user and other elements in search_path#56
darold merged 1 commit intodarold:masterfrom
japinli:issue#53

Conversation

@japinli
Copy link
Contributor

@japinli japinli commented Jun 6, 2025

This commit refactors the logic to preserve the search_path properly. Instead of reconstructing the path from parsed OIDs, pgtt now retrieves the current search_path string and appends pgtt_schema if it's not already present. This ensures that all original components, including $user and any other explicitly listed schema names, are fully retained.

It can also fix #53.

This commit refactors the logic to preserve the `search_path` properly.
Instead of reconstructing the path from parsed OIDs, pgtt now retrieves
the current search_path string and appends pgtt_schema if it's not already
present.  This ensures that all original components, including  $user and
any other explicitly listed schema names, are fully retained.
@darold darold merged commit 4990e59 into darold:master Jun 8, 2025
5 checks passed
@japinli japinli deleted the issue#53 branch June 9, 2025 06:56
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

Successfully merging this pull request may close these issues.

search_path parameter not modified consistently

2 participants