Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 1823CB5F623 for ; Tue, 7 Jun 2011 12:50:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 91970-04 for ; Tue, 7 Jun 2011 15:50:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id E860AB5F4CF for ; Tue, 7 Jun 2011 12:50:27 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p57FoNbP014417; Tue, 7 Jun 2011 11:50:23 -0400 (EDT) To: Robert Haas cc: Alvaro Herrera , Euler Taveira de Oliveira , Emanuel , pgsql-bugs Subject: Re: BUG #6041: Unlogged table was created bad in slave node In-reply-to: References: <201105261137.p4QBbTlt077425@wwwmaster.postgresql.org> <4DDE7905.6050406@timbira.com> <1306427067-sup-7622@alvh.no-ip.org> <25332.1306427674@sss.pgh.pa.us> <1307120363-sup-3085@alvh.no-ip.org> Comments: In-reply-to Robert Haas message dated "Mon, 06 Jun 2011 22:29:02 -0400" Date: Tue, 07 Jun 2011 11:50:23 -0400 Message-ID: <14416.1307461823@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/69 X-Sequence-Number: 30448 Robert Haas writes: > Patch along these lines attached. Frankly, I find this quite ugly, and much prefer the general approach of your previous patch in . However, I don't like where you put the execution-time test there. I'd put it in ExecOpenScanRelation instead, so that it covers both seqscan and indexscan accesses. regards, tom lane