Re: dollar-quoting in psql and in general

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
Cc: "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: dollar-quoting in psql and in general
Date: 2004-08-12 03:27:49
Message-ID: 23795.1092281269@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Philip Warner <pjw(at)rhyme(dot)com(dot)au> writes:
> At 12:47 PM 12/08/2004, Tom Lane wrote:
>> Backslashes are not special inside
>> dollar quotes --- nor is anything else, except the matching close tag

> If they are not special, then shouldnt:
> select $a$\$a$;
> result in
> ?column?
> \
> rather than an error?

Worksforme (TM).

regression=# select $a$\$a$;
?column?
----------
\
(1 row)

regression=#

Are you sure your psql and backend are both current?

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-08-12 03:34:13 Re: [HACKERS] SAVEPOINT syntax again
Previous Message Bruce Momjian 2004-08-12 03:27:14 Re: pg_dump 'die_on_errors'