From: | "Jeffrey W(dot) Baker" <jwbaker(at)acm(dot)org> |
---|---|
To: | Jan Wieck <janwieck(at)yahoo(dot)com> |
Cc: | Postgres general mailing list <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: more about pg_toast growth |
Date: | 2002-03-15 18:35:38 |
Message-ID: | 1016217338.12395.42.camel@heat |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Fri, 2002-03-15 at 06:47, Jan Wieck wrote:
> Jeffrey W. Baker wrote:
> > On Wed, 2002-03-13 at 12:16, Jan Wieck wrote:
> > >
> > > Are you sure you're B64-encoding the gzipped text?
> >
> > I am positive:
> >
> > rupert=# select substr(body, 0, 200) from resp_body where resp = (select
> > max(resp) from resp_body);
> >
> > eJztfXt34riy799hrf4OGuZMJ1k3BL949SScRQhJmCbAAbp7z75zV5bAAjxtbI5tkjB75rvfkiwb
> > GxxDHt0dgvtBjC2VpFLVr6qkknMydiZ6+WRMsFo+6dV7jVqZnOE5ami2oxkjG31ALWdMLLgxIIZN
> > UFvHDrFPsm7Z1MmEOBiNHWeaIf87025P07X7qWYRO40Gp
>
> Hmmm, that doesn't decode to a gzip compressed steam. But it
> doesn't decode to readable text either, so I have no clue
> what you encoded. Note that the pronounciation in the above
> question was on "gzipped", not on "B64-encoding".
You can't just throw a gzipped stream into a file and try to gunzip it.
I'm positive the data is gzipped, then base-64 encoded, because I use
this exact code to get it in there:
# Insert the response body if any
$zbody = MIME::Base64::encode_base64(Compress::Zlib::compress($resp->content()));
$sth = $dbh->prepare(qq{
INSERT INTO resp_body (resp, body) VALUES ($id, ?)
});
$sth->execute($zbody);
And I use the inverse to retrieve it.
> > I have increased the free space map and will be able to restart the
> > postmaster today at around midnight GMT.
>
> Any news?
I couldn't work it in to the last maintenance window. I'll give it
another run tonight.
Thanks again,
Jeffrey
From | Date | Subject | |
---|---|---|---|
Next Message | Dmitry Tkach | 2002-03-15 19:07:44 | Why is it not using an index? |
Previous Message | Gregory Wood | 2002-03-15 18:28:04 | Re: Why is it not using an index? |