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

From Peter Eisentraut
Subject Re: PostgreSQL nonstandard use of escape in a string literal
Date
Msg-id 1253247854.7971.3.camel@vanquo.pezone.net
Whole thread Raw
In response to PostgreSQL nonstandard use of escape in a string literal  ("Johnson, Trevor" <trevor.johnson@tafensw.edu.au>)
List pgsql-general
On fre, 2009-09-18 at 14:05 +1000, Johnson, Trevor wrote:
> Using Moodle with PostgreSQL 8.4 and we get warning messages...
>
> 2009-09-18 13:48:11 ESTWARNING:  nonstandard use of escape in a string
> literal at character 209
>
> 2009-09-18 13:48:11 ESTHINT:  Use the escape string syntax for
> escapes, e.g., E'\r\n'.

> “standard_conforming_strings” is set to off, if we turn it on it
> breaks Moodle.

> Are these just warnings or is there something we need to fix?

Well, in your case they are apparently "estwarnings" because you didn't
put a space at the end of log_line_prefix ;-), but really they are just
warnings.  In the long run, you will want to switch to doing what the
hint, er, esthint says, after which setting standard_conforming_strings
to on becomes OK.  Moodle will need to do the same first as well.




pgsql-general by date:

Previous
From: Jeff Davis
Date:
Subject: Re: PostgreSQL nonstandard use of escape in a string literal
Next
From: "Albe Laurenz"
Date:
Subject: Re: Substitutes for some Oracle packages