Re: invalidly encoded strings - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: invalidly encoded strings
Date
Msg-id 1189396353.5924.35.camel@jdavis
Whole thread Raw
In response to Re: invalidly encoded strings  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: invalidly encoded strings
List pgsql-hackers
On Sun, 2007-09-09 at 23:33 -0400, Andrew Dunstan wrote:
> Tom Lane wrote:
> > In the short run it might be best to do it in scan.l after all.  
> >   
> 
> I have not come up with a way of doing that and handling the bytea case. 
> If you have I'm all ears. And then I am still worried about COPY.

If it's done in the scanner it should still accept things like: E'\\377\\000\\377'::bytea
right? 

I think the concern is when they use only one slash, like: E'\377\000\377'::bytea
which, as I mentioned before, is not correct anyway.

Regards,Jeff Davis



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: invalidly encoded strings
Next
From: Tom Lane
Date:
Subject: Re: invalidly encoded strings