From: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
To: kanwei@gmail.com, pgsql-bugs@lists.postgresql.org, PG Bug reporting form <noreply@postgresql.org>
Subject: Re: BUG #15489: Segfault on DELETE
Date: Wed, 7 Nov 2018 14:34:12 +0900
Message-ID: <26334113-2b97-db62-b72c-8066c2dedbb5@lab.ntt.co.jp> (raw)
In-Reply-To: <15489-f1158ddcc2584a8e@postgresql.org>
References: <15489-f1158ddcc2584a8e@postgresql.org>
On 2018/11/07 14:01, PG Bug reporting form wrote:
> The following bug has been logged on the website:
>
> Bug reference: 15489
> Logged by: Kanwei Li
> Email address: kanwei@gmail.com
> PostgreSQL version: 11.0
> Operating system: Debian 9
> Description:
>
> We started seeing a segfault crash on our postgresql 11 server instance
> today when attempting to delete certain rows in the database:
>
> 2018-11-06 21:02:07.553 UTC [60606] LOG: server process (PID 66881) was
> terminated by signal 11: Segmentation fault
> 2018-11-06 21:02:07.553 UTC [60606] DETAIL: Failed process was running:
> delete from integration_account
> where partner_id = 24
>
> Attempting to delete certain rows were causing this segfault, and attempting
> to delete other rows did not. There didn't seem to be a pattern, and because
> this was on production we couldn't risk playing around too much.
>
> Doing a SELECT on the rows that couldn't be deleted worked fine. There
> didn't seem to be data corruption since all the data could be read. However,
> attempting to DELETE certain rows would crash it. pg_dump also worked
> fine.
Are there any triggers defined on integration_account? Also, has there
recently been any ALTER TABLE DROP/DROP COLUMN activity on that table?
PG 11.1 to be released later this week fixed a bug that would cause
segmentation fault when running triggers (including, but not limited to
DELETE triggers).
> What fixed it was performing a VACUUM ANALYZE on the database. After that,
> the deletes worked again.
Hmm, that's a bit mysterious to me if your case is really hitting the bug
I'm suspecting.
Thanks,
Amit
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: Langote_Amit_f8@lab.ntt.co.jp, noreply@postgresql.org
Subject: Re: BUG #15489: Segfault on DELETE
In-Reply-To: <26334113-2b97-db62-b72c-8066c2dedbb5@lab.ntt.co.jp>
References: <15489-f1158ddcc2584a8e@postgresql.org> <26334113-2b97-db62-b72c-8066c2dedbb5@lab.ntt.co.jp>
* 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