2024-11-16 10:28:19.928 UTC [46] DETAIL: parameters: $1 = 'test-param-value'
2024-11-16 10:28:19.928 UTC [46] ERROR: there is no parameter $1 at character 57
Of course, I am passing a value for parameter $1; and I can trace that the client lib sends it out on the wire as expected. (Attaching packet captures.)
Heck, even the PG server itself says, DETAIL: parameters: $1 = 'test-param-value' — so it sees the parameter! But then, immediately unsees it.
Am I being hit by a PG bug? Is this a known issue?
I'd retested with master version of that client library, and against 6 latest major versions of PostgreSQL server (12 throughout to 17). No difference across versions spotted; the result is consistently error 42P02.
Is the client library doing something wrong? How can the server claim there's no parameter $1 immediately after logging its value it has received?
I did minify a 100-line SSCCE that reproduces the issue and can be shared.
Any advice, or pointers on what to check next besides delving into PG source, I'd greatly appreciate. Thanks in advance.
Max