From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rowley <dgrowleyml@gmail.com>
Cc: Justin Pryzby <pryzby@telsasoft.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: v16dev: invalid memory alloc request size 8488348128
Date: Fri, 14 Apr 2023 23:27:49 -0400
Message-ID: <1610169.1681529269@sss.pgh.pa.us> (raw)
In-Reply-To: <CAApHDvofDJMp+=nRg0kqML2sQb1q_rD7oAecZUF+d-FtBXYtOQ@mail.gmail.com>
References: <ZDm5TuKsh3tzoEjz@telsasoft.com>
<CAApHDvoBS2VryMzJRpp9AXeOiqoMLAry+3H=1Uf6-t+uMkGbMw@mail.gmail.com>
<ZDnYM8ONbQmKjxSO@telsasoft.com>
<CAApHDvq9HR1-SJfQP8+-tphmbABWzL6r87y92+UxKHz3yhqdqQ@mail.gmail.com>
<ZDn3y3FPfpHksQH8@telsasoft.com>
<CAApHDvofDJMp+=nRg0kqML2sQb1q_rD7oAecZUF+d-FtBXYtOQ@mail.gmail.com>
David Rowley <dgrowleyml@gmail.com> writes:
> I don't think that's really going to help. The crash already tells us
> there's a problem down the line, but if the commit you mention is to
> blame for this, then the problem is elsewhere, either in our
> assumption that we can get away without the datumCopy() or in the
> aggregate function producing the state that we're no longer copying.
It does smell like the aggregate output has been corrupted by the time
it got to the plpgsql function. I don't particularly want to try to
synthesize a test case from the essentially-zero SQL-level information
we've been provided, though. And I doubt we can track this down without
a test case. So please try to sanitize the case you have enough that
you can share 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-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, dgrowleyml@gmail.com, pryzby@telsasoft.com
Subject: Re: v16dev: invalid memory alloc request size 8488348128
In-Reply-To: <1610169.1681529269@sss.pgh.pa.us>
References: <ZDm5TuKsh3tzoEjz@telsasoft.com> <CAApHDvoBS2VryMzJRpp9AXeOiqoMLAry+3H=1Uf6-t+uMkGbMw@mail.gmail.com> <ZDnYM8ONbQmKjxSO@telsasoft.com> <CAApHDvq9HR1-SJfQP8+-tphmbABWzL6r87y92+UxKHz3yhqdqQ@mail.gmail.com> <ZDn3y3FPfpHksQH8@telsasoft.com> <CAApHDvofDJMp+=nRg0kqML2sQb1q_rD7oAecZUF+d-FtBXYtOQ@mail.gmail.com> <1610169.1681529269@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