From: Alvaro Herrera <alvherre@commandprompt.com>
To: Matthijs Bomhoff <matthijs@quarantainenet.nl>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: Bug with plpgsql, temp tables and TOAST?
Date: Wed, 29 Jun 2011 16:22:25 -0400
Message-ID: <1309378872-sup-8894@alvh.no-ip.org> (raw)
In-Reply-To: <9F3D3391-81DA-44C7-A731-AB46E506AB17@quarantainenet.nl>
References: <0C41674C-FA02-4768-9E1B-548E568875BD@quarantainenet.nl>
<1309363131-sup-6268@alvh.no-ip.org>
<9F3D3391-81DA-44C7-A731-AB46E506AB17@quarantainenet.nl>
Excerpts from Matthijs Bomhoff's message of mié jun 29 15:20:49 -0400 2011:
> Possibly related: In some earlier attempts at reproducing this, I
> actually tried to use length() instead of md5(). It seemed that I
> could not get it to trigger with that. Just selecting * triggers it of
> course, but caused a bit too much clutter in my psql for the required
> long random strings, so I had to find a function that would actually
> need the value itself. Hence the md5().
Yeah, the length can be obtained from the toast header AFAIR, so you
don't need to do a full detoast of the value, which masks the problem.
--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: alvherre@commandprompt.com, matthijs@quarantainenet.nl
Subject: Re: Bug with plpgsql, temp tables and TOAST?
In-Reply-To: <1309378872-sup-8894@alvh.no-ip.org>
References: <0C41674C-FA02-4768-9E1B-548E568875BD@quarantainenet.nl> <1309363131-sup-6268@alvh.no-ip.org> <9F3D3391-81DA-44C7-A731-AB46E506AB17@quarantainenet.nl> <1309378872-sup-8894@alvh.no-ip.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox