I have 2 servers: S1, S2 with the same SELECT version() with the same databases test containing a table t1 that has column of type text[].
I try to insert array of 2 strings with symbol " in one of them:
INSERT into t1 (columnname) VALUES (`{"str1", "str2\"with quote symbol"}`)
S1 works good, but S2 throws an error:
ERROR: malformed array literal: "{"str1", "str2"with quote symbol"}"
Lets add one more \ to the request:
INSERT into t1 (columnname) VALUES (`{"str1", "str2\\"with quote symbol"}`)
Now S2 works, but S1 says:
ERROR: malformed array literal: "{"str1", "str2\\"with quote symbol"}"
Is there some escaping settings somewhere in postgres?
The servers is accessed via 2 independent pgbouncer instances, but i think that is not related to question.