Open
Description
Consider a trigger function that broadcasts to a channel with uppercase letters in it:
eg:
...PERFORM pg_notify('TinyBase', 'hello')...
Now try and listen to it with the pglite sdk:
await pglite.listen('TinyBase', listener);
Aaaand confusingly nothing happens. Because according to...
pglite/packages/pglite/src/utils.ts
Lines 241 to 242 in 71707ff
...PG is case insensitive. I'm not sure about that (since I think it depends on how things are quoted) but apparently certainly not for event channels notified like this!
Convert the pg_notify string to lower case and it works great. But I don't think the same problem exists in other SDKs - certainly not postgres.js at least.
Metadata
Metadata
Assignees
Labels
No labels