WARNING: nonstandard use of escape in a string literal - Mailing list pgsql-general

From Patrick M. Rutkowski
Subject WARNING: nonstandard use of escape in a string literal
Date
Msg-id c4b204920912231212v5e82c48ep90114ee0b9561f8d@mail.gmail.com
Whole thread Raw
Responses Re: WARNING: nonstandard use of escape in a string literal  (Bill Moran <wmoran@potentialtech.com>)
List pgsql-general
I just ran something like:
=============================================
UPDATE my_table SET colname = NULL WHERE colname ~ '^\s*$'
=============================================


I got the following warnings/hints as a result:
=============================================
WARNING: nonstandard use of escape in a string literal
HINT: USE the escape string syntax for escapes, e.g., E'\r\n'.
UPDATE 500
=============================================


Oddly it actually updated, and did just exactly what I wanted! :-)

So what am I to make of those weird hints and warning?

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: How to get a list of tables that have a particular column value?
Next
From: Christophe Pettus
Date:
Subject: 12/08 SFPUG meeting, "Operator Exclusion Constraints," video now available