Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 722E0B5DBBF for ; Thu, 26 May 2011 14:38:43 -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 63686-08 for ; Thu, 26 May 2011 17:38:35 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.216.181]) by mail.postgresql.org (Postfix) with ESMTP id AC01BB5D832 for ; Thu, 26 May 2011 14:38:35 -0300 (ADT) Received: by qyg14 with SMTP id 14so537324qyg.19 for ; Thu, 26 May 2011 10:38:35 -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 :content-transfer-encoding; bh=kZoHHlx+EzKVlX4mNValBlhF7ewpFy3i/MqHdDMmqmc=; b=dqFb+ip1K0K8b2/LUyZi4hslTKb10gtvFpfpkYnbdJjPSQoSlG541VndnkFAxM1yBs tZ5ZeRthyieEyf33BNqZ7n4kEywMgDS6z/KDcGwe5vK9cNUhpvuoBkuIAViyoKfA2wvj kflVopbCUtM7un2GosX4gFVfv+7yEZyjhj8wk= 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:content-transfer-encoding; b=xxZUmh3+slq0Ij9C1uQArM6C/ds00qfhmBAiagetA8GLDuxFUakZYg+0DEpa+hKPnX vlMyQWynYSfJNtKAVnXmgbqaa9vNsC2OBMOPTfbrRI5xtQvlQl017KTO3MBvvewcbDiM qRcvq2TQpBAT6EPkZQyBw9MigWfGeIfdpQiFc= MIME-Version: 1.0 Received: by 10.229.53.79 with SMTP id l15mr854375qcg.83.1306431514989; Thu, 26 May 2011 10:38:34 -0700 (PDT) Received: by 10.229.250.85 with HTTP; Thu, 26 May 2011 10:38:34 -0700 (PDT) In-Reply-To: <4DDE7905.6050406@timbira.com> References: <201105261137.p4QBbTlt077425@wwwmaster.postgresql.org> <4DDE7905.6050406@timbira.com> Date: Thu, 26 May 2011 19:38:34 +0200 Message-ID: Subject: Re: BUG #6041: Unlogged table was created bad in slave node From: Emanuel Calvo To: Euler Taveira de Oliveira Cc: pgsql-bugs@postgresql.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 201105/192 X-Sequence-Number: 30331 2011/5/26 Euler Taveira de Oliveira : > Em 26-05-2011 08:37, Emanuel escreveu: > >> Description: =C2=A0 =C2=A0 =C2=A0 =C2=A0Unlogged table was created bad i= n slave node >> > Unlogged table contents are not available to slave nodes [1]. > I know it. But the error raised isn't pretty nice for common users. IMHO it could be an empty file with a message of WARNING level, for notify administratros to watch up these tables. >> postgres=3D# select * from voidy ; >> ERROR: =C2=A0could not open file "base/12071/17034": No existe el archiv= o o >> directorio >> > I think we should emit the real cause in those cases, if possible (not to= o > much overhead). The message would be "Unlogged table content is not > available in standby server". > I think that detecting if table is unlogged && file not exists, rise this message. But the problem will comes when the standby is promoted to master, in that case I didn't test what happens (file not exists, i think it will couldn't insert data directly or may force to the dba drop the table from catalog). --=20 -- =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Emanuel Calvo =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Helpame.com