From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: miha.vrhovnik@naviter.com
Subject: BUG #16033: segmentation fault when runing update
Date: Wed, 02 Oct 2019 12:04:42 +0000
Message-ID: <16033-6c9a1ddbdad9f296@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 16033
Logged by: Miha Vrhovnik
Email address: miha.vrhovnik@naviter.com
PostgreSQL version: 12rc1
Operating system: Ubuntu 18.04.3
Description:
We are launching a ne service and decided to test the new 12rc1
It happens that from time to time the postgresql crashes with segmentation
fault.
When it crashes the query running is always of the following form:
UPDATE calculation SET updated_xy = NOW(), xy = $1, types =
array_distinct(array_cat(types, $2)), failed =
array_distinct(array_cat(failed, $3))
Now the array_distinct is defined as following:
CREATE OR REPLACE FUNCTION array_distinct(anyarray)
RETURNS anyarray AS $$
SELECT ARRAY(SELECT DISTINCT unnest($1) ORDER BY 1)
$$ LANGUAGE sql;
everything of "importance" around the UPDATE sentence is
2019-10-02 12:03:03.137 UTC [1215] LOCATION: LogChildExit,
postmaster.c:3680
2019-10-02 12:03:03.137 UTC [1215] LOG: 00000: terminating any other active
server processes
2019-10-02 12:03:03.137 UTC [1215] LOCATION: HandleChildCrash,
postmaster.c:3400
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: noreply@postgresql.org, miha.vrhovnik@naviter.com
Subject: Re: BUG #16033: segmentation fault when runing update
In-Reply-To: <16033-6c9a1ddbdad9f296@postgresql.org>
References: <16033-6c9a1ddbdad9f296@postgresql.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