- Goal:
My database contains triggers that use custom postgres config values set using theset_config
function. Ideally some hook exists where I could runset_config
before each query runs (but in the same transaction as that query).
Is this possible? I can't find anything that suggests this functionality exists.
It seems like I could add this statement myself to my queries, but there are two issues:
- For GUI mode, I can't add any SQL
- In non-GUI mode, this is an additional statement, so I would need to turn off prepared statements.
Am I thinking about this correctly? What am I missing?