From: Tom Lane <tgl@sss.pgh.pa.us>
To: Paul Ramsey <pramsey@cleverelephant.ca>
Cc: Pgsql Hackers <pgsql-hackers@postgresql.org>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6379: SQL Function Causes Back-end Crash
Date: Wed, 04 Jan 2012 16:21:37 -0500
Message-ID: <22487.1325712097@sss.pgh.pa.us> (raw)
In-Reply-To: <CACowWR2BW_Ahv-5A5d6Cx=mCVRUG84zrLAVShAFweXtKtkap7w@mail.gmail.com>
References: <E1RiWKr-00028P-KA@wrigleys.postgresql.org>
<20120104192524.GA8370@depesz.com>
<CACowWR1_Uvzog1PAx+EoKGzLcwkN7xfZ=hgF-4cu3PWptOv10Q@mail.gmail.com>
<CACowWR2BW_Ahv-5A5d6Cx=mCVRUG84zrLAVShAFweXtKtkap7w@mail.gmail.com>
Paul Ramsey <pramsey@cleverelephant.ca> writes:
> Further notes, from Andrew (RhodiumToad) on IRC about the cause of this crasher:
> [12:31pm] RhodiumToad: there's no trivial fix
IMO the main bug here is that functions.c isn't expecting qd->dest to be
overwritten, so we could work around it by keeping a separate private
copy of the dest pointer. However, it would also be fair to ask whether
there's not a cleaner solution. Perhaps the intoRel stuff should be
saving/restoring the original destreceiver instead of just blindly
overwriting it.
regards, tom lane
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: tgl@sss.pgh.pa.us, pramsey@cleverelephant.ca, pgsql-hackers@postgresql.org
Subject: Re: BUG #6379: SQL Function Causes Back-end Crash
In-Reply-To: <22487.1325712097@sss.pgh.pa.us>
References: <E1RiWKr-00028P-KA@wrigleys.postgresql.org> <20120104192524.GA8370@depesz.com> <CACowWR1_Uvzog1PAx+EoKGzLcwkN7xfZ=hgF-4cu3PWptOv10Q@mail.gmail.com> <CACowWR2BW_Ahv-5A5d6Cx=mCVRUG84zrLAVShAFweXtKtkap7w@mail.gmail.com> <22487.1325712097@sss.pgh.pa.us>
* 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