Hello, If you use DBD::Pg and also use PostgreSQL arrays, you should be aware there is an open bug with quoting works. A bug report about the issue is here, including some related test cases and work on some patches:
https://rt.cpan.org/Public/Bug/Display.html?id=58552 However, the proposed fix is not passing all the test cases. The solution will need someone with XS skills, who also has confidence about exactly what the correct quoting behavior should be. I'm affected by the issue and would personally appreciate the help. Thanks! Mark