Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id AA612B5E074 for ; Tue, 7 Jun 2011 23:17:56 -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 61795-10 for ; Wed, 8 Jun 2011 02:17:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pz0-f46.google.com (mail-pz0-f46.google.com [209.85.210.46]) by mail.postgresql.org (Postfix) with ESMTP id 5DBC9B5DD7B for ; Tue, 7 Jun 2011 23:17:49 -0300 (ADT) Received: by pzk9 with SMTP id 9so29251pzk.19 for ; Tue, 07 Jun 2011 19:17:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=iCig0NcwkthQ3ylFx+NJlSqMVNRsOPz325qe3cat5Xg=; b=VuagDqk+5T4W+KF2FkrhOwT72X2vor8LBeHF5WOwEoU7VY24A52Ns1dUVtzCyN+Gg5 wyoJeX8SjsF8JiGrSsIvD8iBfxwoOysAuG3SK8NBNX5KCRLQULoMoqMbYzVFRpoeUL02 Tfv8jJJWU7kAfBhFvycD3S8iJXUhehPrxTlrE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=sPJI9VAd65ZOHWGpRG0eruElng9C+G7582jqWNnaR4Xc0r5U0L0QX5DbJpb6WO9INE v/rmXsg+BzYt6P60ld+tSqLZdYScSwPlBVQd0xr49fMpfbPeynZXVVq836A2Gl+CfxnA 5tQnBbtejGjusfNWUDJZYSx59BGeUI390hUNE= MIME-Version: 1.0 Received: by 10.68.7.66 with SMTP id h2mr529663pba.513.1307499469354; Tue, 07 Jun 2011 19:17:49 -0700 (PDT) Received: by 10.68.56.70 with HTTP; Tue, 7 Jun 2011 19:17:49 -0700 (PDT) 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> <14416.1307461823@sss.pgh.pa.us> <19171.1307476439@sss.pgh.pa.us> <20427.1307480706@sss.pgh.pa.us> Date: Tue, 7 Jun 2011 22:17:49 -0400 Message-ID: Subject: Re: BUG #6041: Unlogged table was created bad in slave node From: Robert Haas To: Tom Lane Cc: Alvaro Herrera , Euler Taveira de Oliveira , Emanuel , pgsql-bugs Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.898 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201106/81 X-Sequence-Number: 30460 On Tue, Jun 7, 2011 at 6:06 PM, Robert Haas wrote: >> But for the planner, why not just put the same kind of test in >> get_relation_info, just after it does heap_open? > > OK, let me try that. Seems to work beautifully, so committed that way. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company