From: Tom Lane <tgl@sss.pgh.pa.us>
To: Lukáš Sobotka <sobotka.luk@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Segfault on updating foreign table
Date: Sun, 26 Jan 2020 13:26:33 -0500
Message-ID: <12802.1580063193@sss.pgh.pa.us> (raw)
In-Reply-To: <CAJif3k+iA_ekBB5Zw2hDBaE1wtiQa4LH4_JUXrrMGwTrH0J01Q@mail.gmail.com>
References: <CAJif3k+iA_ekBB5Zw2hDBaE1wtiQa4LH4_JUXrrMGwTrH0J01Q@mail.gmail.com>
=?UTF-8?B?THVrw6HFoSBTb2JvdGth?= <sobotka.luk@gmail.com> writes:
> I tried to synchronize two tables on different databases using foreign data
> wrapper. I executed update of foreign table with sub-query selection from
> local table. As the result I got segmentation fault. General query:
> UPDATE foreign_table SET (col) = (
> SELECT col
> FROM local_table
> WHERE foreign_table.id = local_table.id
> );
Yup, that's a bug. Will fix, thanks for the report!
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, sobotka.luk@gmail.com
Subject: Re: Segfault on updating foreign table
In-Reply-To: <12802.1580063193@sss.pgh.pa.us>
References: <CAJif3k+iA_ekBB5Zw2hDBaE1wtiQa4LH4_JUXrrMGwTrH0J01Q@mail.gmail.com> <12802.1580063193@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