From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: dan@randomdan.homeip.net
Subject: BUG #15063: Updates to temporary tables fail when there is a publication with FOR ALL TABLES
Date: Tue, 13 Feb 2018 21:02:38 +0000
Message-ID: <151855575809.1450.11154539840290583454@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15063
Logged by: Dan Goodliffe
Email address: dan@randomdan.homeip.net
PostgreSQL version: 10.2
Operating system: Linux
Description:
Given a publication which uses FOR ALL TABLES, so that future tables are
included...
Create a temporary table with no keys or identity etc:
LOG: statement: CREATE TEMPORARY TABLE tmp_masks(atomSpec text[],dateAdded
date,email text,message text,n int,person text)
Execute an update against the table, the update fails:
ERROR: cannot update table "tmp_masks" because it does not have a replica
identity and publishes updates
HINT: To enable updating the table, set REPLICA IDENTITY using ALTER
TABLE.
STATEMENT: UPDATE tmp_masks SET dateadded = dateadded + INTERVAL '1000
years' WHERE dateadded < '1400-01-01'
(yes, the SQL is a hack to fix typos)
I'm not sure if the temporary table has been added to the publication (which
isn't supported) or if the presence of the FOR ALL TABLES publication alone
(without the table being added to it) is enough to trigger the problem.
I can provide more debug/details etc if required given an idea of what's
needed and how to get it.
Thanks.
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, dan@randomdan.homeip.net
Subject: Re: BUG #15063: Updates to temporary tables fail when there is a publication with FOR ALL TABLES
In-Reply-To: <151855575809.1450.11154539840290583454@wrigleys.postgresql.org>
References: <151855575809.1450.11154539840290583454@wrigleys.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