use $$ Or you can always use double single quotes, which is going to translate into single one, ie : blah = 'foo '' bar'; will give you "foo ' bar" string.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных