From: Emanuel Calvo <postgres.arg@gmail.com>
To: Euler Taveira de Oliveira <euler@timbira.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6041: Unlogged table was created bad in slave node
Date: Thu, 26 May 2011 19:38:34 +0200
Message-ID: <BANLkTikQBAFAEFRAu0jaPGP_UOaC30DeAQ@mail.gmail.com> (raw)
In-Reply-To: <4DDE7905.6050406@timbira.com>
References: <201105261137.p4QBbTlt077425@wwwmaster.postgresql.org>
<4DDE7905.6050406@timbira.com>
2011/5/26 Euler Taveira de Oliveira <euler@timbira.com>:
> Em 26-05-2011 08:37, Emanuel escreveu:
>
>> Description: Unlogged table was created bad in 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=# select * from voidy ;
>> ERROR: could not open file "base/12071/17034": No existe el archivo o
>> directorio
>>
> I think we should emit the real cause in those cases, if possible (not too
> 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).
--
--
Emanuel Calvo
Helpame.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: postgres.arg@gmail.com, euler@timbira.com
Subject: Re: BUG #6041: Unlogged table was created bad in slave node
In-Reply-To: <BANLkTikQBAFAEFRAu0jaPGP_UOaC30DeAQ@mail.gmail.com>
References: <201105261137.p4QBbTlt077425@wwwmaster.postgresql.org> <4DDE7905.6050406@timbira.com> <BANLkTikQBAFAEFRAu0jaPGP_UOaC30DeAQ@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox