I recently found a workaround for setting the search_path in a Postgres resource when configuring connection options in Retool. By default, simply specifying a key - value pair like search_path and schema1 doesn't work because Retool overrides these settings.
Instead, you can use a different structure where the key is options and the value is -c search_path=schema1. This works seamlessly, even though I’m not entirely sure why it behaves this way. ![]()
What I’m really curious about is whether there are other non-standard connection options that can be applied in a similar manner. Does anyone have any insights on other options that Retool may not expose directly in the UI, but which can be set via this trick?
Looking forward to hearing your thoughts)
