pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Euler Taveira de Oliveira <euler@timbira.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Emanuel <postgres.arg@gmail.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #6041: Unlogged table was created bad in slave node
Date: Thu, 26 May 2011 12:34:34 -0400
Message-ID: <25332.1306427674@sss.pgh.pa.us> (raw)
In-Reply-To: <1306427067-sup-7622@alvh.no-ip.org>
References: <201105261137.p4QBbTlt077425@wwwmaster.postgresql.org>
	<4DDE7905.6050406@timbira.com>
	<1306427067-sup-7622@alvh.no-ip.org>

Alvaro Herrera <alvherre@commandprompt.com> writes:
> Excerpts from Euler Taveira de Oliveira's message of jue may 26 12:00:05 -0400 2011:
>> 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 guess what it should do is create an empty file in the slave.

Probably it should, because won't the table malfunction after the slave
is promoted to master, if there's no file at all there?  Or will the
process of coming live create an empty file even if there was none?

But Euler is pointing out a different issue, which is usability.  If the
slave just acts like the table is present but empty, we are likely to
get bug reports about that too.  An error telling you you aren't allowed
to access such a table on slaves would be more user-friendly, if we can
do it without too much pain.

			regards, tom lane



view thread (23+ messages)  latest in thread

Message-ID: <25332.1306427674@sss.pgh.pa.us>
Permalink:  ../25332.1306427674@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25332.1306427674@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, alvherre@commandprompt.com, euler@timbira.com, robertmhaas@gmail.com, postgres.arg@gmail.com
  Subject: Re: BUG #6041: Unlogged table was created bad in slave node
  In-Reply-To: <25332.1306427674@sss.pgh.pa.us>
  References: <201105261137.p4QBbTlt077425@wwwmaster.postgresql.org> <4DDE7905.6050406@timbira.com> <1306427067-sup-7622@alvh.no-ip.org> <25332.1306427674@sss.pgh.pa.us>

* 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