Re: \x output blowing up - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: \x output blowing up
Date
Msg-id 20050925091829.GA7743@svana.org
Whole thread Raw
In response to Re: \x output blowing up  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
On Sat, Sep 24, 2005 at 07:18:16PM -0400, Bruce Momjian wrote:
>
> Well, it seems we are going to have to fix it somehow for 8.1.  It is
> not crashing here so I can't work up a patch.  Can you submit a minimal
> fix for 8.1?  Thanks.

Ah, it would only happen if your encoding was UTF-8 since that's the
only case psql handles differently. I've attached a patch which fixes
it. With a bit more rearrangement you could probably simplify it a bit
but this works.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: \d on database with a lot of tables is slow
Next
From: Thomas Hallgren
Date:
Subject: Re: stack depth limit exceeded problem.