supabase/libcluster_postgres

The `channel_name` limitations are missing

jfayad opened this issue · 3 comments

jfayad commented

Describe the problem

The documentation provides no hint about the necessity to supply a valid channel_name (the Pg NOTIFY command requires no dashes and it didn't work with big caps channels --> so even using the cookie did not work)

Describe the improvement

  1. Either sanitize the channe_name (whether it comes from the config or from the cookie)
  2. Update the doc. to indicate the limitations (only small caps, no dashes etc...) I'm not aware of all constraints here and could only share what did NOT work for me

@jfayad Thanks for sharing.

Not sure what the best way to recommend an improvement for this is (outside of submitting a pr myself), but I too ran into this problem.