Skip to content

Conversation

joaocc
Copy link

@joaocc joaocc commented Mar 26, 2025

Proposal of implementation of for a search_path_db to allow setting search path by database for each user
fixes #526

Code generated via Cursor Composer + Claude 3.7 Sonnet, but not tested

@joaocc joaocc marked this pull request as ready for review March 27, 2025 12:06
@Speeddymon
Copy link

I think this would be useful, but it could be improved by being a nested block instead of a map type attribute, because you could then use the dynamic qualifier on the block to iterate over the databases independently. For example if you want to for_each a postgresql_role resource, then as this is written it would be more complex to give each role different DB level search paths whereas if it were instead a nested block, then it would be simpler.

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.

postgresql_role search_path with database specification

2 participants