Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 9A6CEB5F47A for ; Tue, 7 Jun 2011 11:37:46 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 31799-05 for ; Tue, 7 Jun 2011 14:37:39 +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 65AD2B5F690 for ; Tue, 7 Jun 2011 11:37:39 -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 p57EbUcr013022; Tue, 7 Jun 2011 10:37:30 -0400 (EDT) To: Alvaro Herrera cc: Robert Haas , Simon Riggs , Euler Taveira de Oliveira , Emanuel , pgsql-bugs Subject: Re: BUG #6041: Unlogged table was created bad in slave node In-reply-to: <1307456529-sup-7240@alvh.no-ip.org> References: <201105261137.p4QBbTlt077425@wwwmaster.postgresql.org> <4DDE7905.6050406@timbira.com> <1306427067-sup-7622@alvh.no-ip.org> <25332.1306427674@sss.pgh.pa.us> <1307456529-sup-7240@alvh.no-ip.org> Comments: In-reply-to Alvaro Herrera message dated "Tue, 07 Jun 2011 10:24:12 -0400" Date: Tue, 07 Jun 2011 10:37:30 -0400 Message-ID: <13021.1307457450@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/64 X-Sequence-Number: 30443 Alvaro Herrera writes: > Excerpts from Robert Haas's message of mar jun 07 08:16:01 -0400 2011: >> Probably. I guess the question is whether we want this to fail in (a) >> the parser, (b) the planner, or (c) the executor. > Really? I thought it was the job of the parse analysis phase to figure > out if table and column names are valid or not, and such. If that's the > case, wouldn't it make sense to disallow usage of a table that doesn't > "exist" in a certain sense? If you hope ever to support the proposed UNLOGGED-to-LOGGED or vice versa table state changes, you don't want to be testing this in the parser. It has to be done at plan or execute time. regards, tom lane