@a_horse_with_no_name - Before you close it again !
I know this post - but it does not solve ! Insert text with single quotes in PostgreSQL (7 answers)
I want to insert text with singles quotes into Postgresql 12 database.
repmondb=# insert into TEST ("vorname#") values ('\'hans\'');
ungültige Anweisung \'');
Versuchen Sie \? für Hilfe.
or
repmondb-# insert into TEST ("vorname#") values (''hans'');
ERROR: syntax error at or near "hans"
ZEILE 1: insert into TEST ("vorname#") values ('\'hans
The escaping with \ and with extra ' does not work.