Philip Warner <[EMAIL PROTECTED]> writes:
> While trying to understand dollar-quoting, I found the following in psql:
>     select $a$ hello $a$;

> behaves as expected, but psql does not like

>     select $a$ \ $a$;
> or
>     select $a$ \\ $a$;

Define "does not like".  The behavior seems correct to me.

> Should it? How should a dollar-quote handle:
>     $a$ \$a\$a $a$

The value of that is " \$a\$a ".  Backslashes are not special inside
dollar quotes --- nor is anything else, except the matching close tag.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org

Reply via email to