Re: BYTEA / DBD::Pg change in 9.0 beta

From: Kenneth Marshall <ktm(at)rice(dot)edu>
To: Alex Hunsaker <badalex(at)gmail(dot)com>
Cc: Jesper Krogh <jesper(at)krogh(dot)cc>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: BYTEA / DBD::Pg change in 9.0 beta
Date: 2010-05-18 21:29:26
Message-ID: 20100518212926.GV3892@aart.is.rice.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, May 18, 2010 at 03:26:17PM -0600, Alex Hunsaker wrote:
> On Tue, May 18, 2010 at 15:20, Jesper Krogh <jesper(at)krogh(dot)cc> wrote:
> > On 2010-05-18 23:12, Alex Hunsaker wrote:
> >>
> >> set bytea_output 'escape';
> >
> > That was it. Knowing what the problem was I had no problem finding it in the
> > release notes.
> >
> > May I ask whats the reason is for "breaking" the compatibillity?
>
> There were a couple IIRC, the big ones being speed and size. Id look
> at the archives for more.
>
> I imagine at some point DBD::Pg will handle this transparently. I
> also imagine Greg would happily accept patches :-)
>

Yes, the new format is much faster, more space efficient, and uses
less CPU to do the encoding. The older format caused the COPY for
bytea to be CPU limited in many more situations.

Regards,
Ken

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2010-05-18 21:37:39 Re: Keepalive for max_standby_delay
Previous Message Bernd Helmle 2010-05-18 21:29:16 Re: BYTEA / DBD::Pg change in 9.0 beta