Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eli9x-00081H-O2 for pgsql-bugs@arkaria.postgresql.org; Tue, 13 Feb 2018 21:30:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eli9w-00018D-GR for pgsql-bugs@arkaria.postgresql.org; Tue, 13 Feb 2018 21:30:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1elhyI-0001kG-B8 for pgsql-bugs@lists.postgresql.org; Tue, 13 Feb 2018 21:18:38 +0000 Received: from avasout04.plus.net ([212.159.14.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1elhyE-0005pp-Gz for pgsql-bugs@lists.postgresql.org; Tue, 13 Feb 2018 21:18:36 +0000 Received: from defiant.random.lan ([195.166.151.214]) by smtp with ESMTP id lhy8em26ns83dlhy9eL3mh; Tue, 13 Feb 2018 21:18:29 +0000 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.3 cv=GcE5YzfL c=1 sm=1 tr=0 a=FfyGxV12nOpD86ZNqIx6vg==:117 a=FfyGxV12nOpD86ZNqIx6vg==:17 a=Op4juWPpsa0A:10 a=r77TgQKjGQsHNAKrUKIA:9 a=epTmVMiNAAAA:8 a=fNlInCjIAAAA:8 a=bm0Z3-AuV16PcPnWLD4A:9 a=QEXdDO2ut3YA:10 a=FpEseR7QwGUA:10 a=pGLkceISAAAA:8 a=ltOIrrlEOZjBiHqcXXUA:9 a=4B0pTMoYIqW_cY5a:21 a=_W_S_7VecoQA:10 a=ndEWmUVY6Yapc0oHF_P4:22 a=59uHJe82Ev9OruEF6Y7e:22 Received: from akira.random.lan ([10.10.0.145]) by defiant.random.lan with esmtp (Exim 4.90_1) (envelope-from ) id 1elhy7-00019T-Fq; Tue, 13 Feb 2018 21:18:28 +0000 From: Dan Goodliffe Subject: Re: BUG #15063: Updates to temporary tables fail when there is a publication with FOR ALL TABLES To: "David G. Johnston" , "pgsql-bugs@lists.postgresql.org" References: <151855575809.1450.11154539840290583454@wrigleys.postgresql.org> Message-ID: <76afb74e-21c0-3815-cb6d-480e59a4a3cb@randomdan.homeip.net> Date: Tue, 13 Feb 2018 21:18:27 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------1FADFD40F65B8CE73FC2FC00" Content-Language: en-GB X-Spam-Score: -2.9 (--) X-Spam-Report: Spam detection software, running on the system "defiant.random.lan", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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. Content analysis details: (-2.9 points, 4.4 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 HTML_MESSAGE BODY: HTML included in message X-CMAE-Envelope: MS4wfG8wvpP9KUz4BSFPCbNnOfm4KWc8ZQG9pfzJnX/oUQ0TUlaVIy8/B7t81A7UIrdhHlcGCO+2w5mHmbHB6aLwcO61OEhm87ZfvAOfY3Hnol1yE2rwf8+8 nEhcTSfF6J2QRiBaRDFNQHQ/Q3+XofZ5JrcRcAMX11mSSz/4VBteDA1QOMZ4LJ2+TmhK99efSPz/nkbJJEa4xRytjIa2XBUHF5k= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------1FADFD40F65B8CE73FC2FC00 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 > > 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. > -- Dan Goodliffe dan@randomdan.homeip.net 07970 523693 --------------1FADFD40F65B8CE73FC2FC00 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

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> 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.


-- 
Dan Goodliffe
dan@randomdan.homeip.net
07970 523693
--------------1FADFD40F65B8CE73FC2FC00--