Re: PostgreSQL nonstandard use of escape in a string literal

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "Johnson, Trevor" <trevor(dot)johnson(at)tafensw(dot)edu(dot)au>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL nonstandard use of escape in a string literal
Date: 2009-09-18 04:24:14
Message-ID: 1253247854.7971.3.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2009-09-18 07:04:06 Re: Substitutes for some Oracle packages
Previous Message Jeff Davis 2009-09-18 04:11:54 Re: PostgreSQL nonstandard use of escape in a string literal