pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #15063: Updates to temporary tables fail when there is a publication with FOR ALL TABLES
6+ messages / 3 participants
[nested] [flat]
* BUG #15063: Updates to temporary tables fail when there is a publication with FOR ALL TABLES
@ 2018-02-13 21:02 PG Bug reporting form <noreply@postgresql.org>
0 siblings, 1 reply; 6+ messages in thread
From: PG Bug reporting form @ 2018-02-13 21:02 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: dan@randomdan.homeip.net
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.
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: BUG #15063: Updates to temporary tables fail when there is a publication with FOR ALL TABLES
@ 2018-02-13 21:11 David G. Johnston <david.g.johnston@gmail.com>
parent: PG Bug reporting form <noreply@postgresql.org>
0 siblings, 2 replies; 6+ messages in thread
From: David G. Johnston @ 2018-02-13 21:11 UTC (permalink / raw)
To: dan@randomdan.homeip.net <dan@randomdan.homeip.net>; pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
On Tuesday, February 13, 2018, PG Bug reporting form <noreply@postgresql.org>
wrote:
> 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...
>
> [...]
>
> 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.
>
A similar report regarding materialized views came through the other week
and though I haven't seen a patch as of yet I believe the cause is at least
understood. Unfortunately a minor release just came out so it will be a
couple of months proabaly before a fix is released - unless you can compile
from source (for production if not just for testing purposes).
For now, "for all tables" mode is broken unless all you really have are
normal tables.
David J.
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: BUG #15063: Updates to temporary tables fail when there is a publication with FOR ALL TABLES
@ 2018-02-13 21:18 Dan Goodliffe <dan@randomdan.homeip.net>
parent: David G. Johnston <david.g.johnston@gmail.com>
1 sibling, 0 replies; 6+ messages in thread
From: Dan Goodliffe @ 2018-02-13 21:18 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Thanks David, I'm a Gentoo user... so actually I do... I can test (for
my use case at least) any candidate fixes etc.... just need to know
what/where they are.
I'm a C/C++ developer by profession... so I don't mind get my hands a
little dirty there if I can be of some help.
Regards
Dan
On 13/02/18 21:11, David G. Johnston wrote:
> On Tuesday, February 13, 2018, PG Bug reporting form
> <noreply@postgresql.org <mailto:noreply@postgresql.org>> wrote:
>
> The following bug has been logged on the website:
>
> Bug reference: 15063
> Logged by: Dan Goodliffe
> Email address: dan@randomdan.homeip.net
> <mailto: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...
>
> [...]
>
> 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.
>
>
> A similar report regarding materialized views came through the other
> week and though I haven't seen a patch as of yet I believe the cause
> is at least understood. Unfortunately a minor release just came out
> so it will be a couple of months proabaly before a fix is released -
> unless you can compile from source (for production if not just for
> testing purposes).
>
> For now, "for all tables" mode is broken unless all you really have
> are normal tables.
>
> David J.
>
--
Dan Goodliffe
dan@randomdan.homeip.net
07970 523693
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: BUG #15063: Updates to temporary tables fail when there is a publication with FOR ALL TABLES
@ 2018-02-13 21:20 David G. Johnston <david.g.johnston@gmail.com>
parent: David G. Johnston <david.g.johnston@gmail.com>
1 sibling, 2 replies; 6+ messages in thread
From: David G. Johnston @ 2018-02-13 21:20 UTC (permalink / raw)
To: Dan Goodliffe <dan@randomdan.homeip.net>; +Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
On Tue, Feb 13, 2018 at 2:15 PM, Dan Goodliffe <dan@randomdan.homeip.net>
wrote:
> Thanks David, I'm a Gentoo user... so actually I do... I can test (for my
> use case at least) any candidate fixes etc.... just need to know what/where
> they are.
>
> I'm a C/C++ developer by profession... so I don't mind get my hands a
> little dirty there if I can be of some help.
>
The convention here is to inline or bottom-post responses (and trimming
unnecessary quoted material).
Anyway, a patch was proffered on the thread I was referring to but hasn't
been acted upon that I recall.
Here is a link to the online thread:
https://www.postgresql.org/message-id/5754c88e-0ea5-ee34-5b4b-e50a6c66822f%402ndquadrant.com
David J.
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: BUG #15063: Updates to temporary tables fail when there is a publication with FOR ALL TABLES
@ 2018-02-13 21:34 Dan Goodliffe <dan@randomdan.homeip.net>
parent: David G. Johnston <david.g.johnston@gmail.com>
1 sibling, 0 replies; 6+ messages in thread
From: Dan Goodliffe @ 2018-02-13 21:34 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
> Anyway, a patch was proffered on the thread I was referring to but
> hasn't been acted upon that I recall.
Awesome, I'll give it a try over the next few days. Thanks.
> The convention here is to inline or bottom-post responses (and
> trimming unnecessary quoted material).
Noted.
--
Dan Goodliffe
dan@randomdan.homeip.net
07970 523693
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: BUG #15063: Updates to temporary tables fail when there is a publication with FOR ALL TABLES
@ 2018-02-15 19:24 Dan Goodliffe <dan@randomdan.homeip.net>
parent: David G. Johnston <david.g.johnston@gmail.com>
1 sibling, 0 replies; 6+ messages in thread
From: Dan Goodliffe @ 2018-02-15 19:24 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
> Anyway, a patch was proffered on the thread I was referring to but
> hasn't been acted upon that I recall.
>
Tried the patch, but I'm afraid it made no difference in the temporary
tables case. Tried adding a check that relation persistence was logged
that was in the same vein to the one in the patch (figured the problem
could also occur for non-temporary tables that were unlogged, but
haven't checked) but that made no difference either. I stopped tinkering
at that point cos I don't really know what I'm doing.
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2018-02-15 19:24 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-02-13 21:02 BUG #15063: Updates to temporary tables fail when there is a publication with FOR ALL TABLES PG Bug reporting form <noreply@postgresql.org>
2018-02-13 21:11 ` David G. Johnston <david.g.johnston@gmail.com>
2018-02-13 21:18 ` Dan Goodliffe <dan@randomdan.homeip.net>
2018-02-13 21:20 ` David G. Johnston <david.g.johnston@gmail.com>
2018-02-13 21:34 ` Dan Goodliffe <dan@randomdan.homeip.net>
2018-02-15 19:24 ` Dan Goodliffe <dan@randomdan.homeip.net>
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