supabase/supavisor

Connection Pooler string does not honor options parameter with search_path

開放

#206 建立於 2023年11月24日

 (4 則留言) (10 個反應) (0 位負責人)Elixir (106 個分叉)batch import
buggood first issue

倉庫指標

星標
 (2,191 顆星)
PR 合併指標
 (平均合併 4天 9小時) (30 天內合併 31 個 PR)

描述

Bug report

  • [ x] I confirm this is a bug with Supabase, not with my own application.
  • [ x] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Postgres connection strings support an options query parameter where one can add a specific search_path to be used for the connection:

POSTGRES_CONNECTION_STRING?options=-c%20search_path=custom_schema

This works if I use the direct Postgres connection string shown on the Supabase dashboard but does not work with the connection pooler string (Supavisor). Is this by design? I ran multiple tests and the search path in my connection only updates when I use the direct connection string.

Expected behavior

The search path to be set as specified in the additional parameters passed to the connection pooler string.

Additional context

I am using the connection pooler in Transaction mode.

貢獻者指南