pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Subject: Re: [BUGS] BUG #6041: Unlogged table was created bad in slave node
Date: Tue, 07 Jun 2011 00:30:57 -0400
Message-ID: <1307421013-sup-7855@alvh.no-ip.org> (raw)
In-Reply-To: <BANLkTi=XvTzD0MVpHedkaHjnWQi-C8Xtpw@mail.gmail.com>
References: <201105261137.p4QBbTlt077425@wwwmaster.postgresql.org>
	<4DDE7905.6050406@timbira.com>
	<1306427067-sup-7622@alvh.no-ip.org>
	<25332.1306427674@sss.pgh.pa.us>
	<BANLkTim433vF5HWjbJ0FSWm_-xA8DDaGNg@mail.gmail.com>
	<BANLkTi=e7+0aXyoLoZENsNeBWX7n9Q+4Pw@mail.gmail.com>
	<1307120363-sup-3085@alvh.no-ip.org>
	<BANLkTinuA4fFnGtPYVrFvW0GssXYkOUGiQ@mail.gmail.com>
	<1307419156-sup-5893@alvh.no-ip.org>
	<BANLkTi=XvTzD0MVpHedkaHjnWQi-C8Xtpw@mail.gmail.com>

Excerpts from Robert Haas's message of mar jun 07 00:07:06 -0400 2011:
> Did you intentionally fail to copy the list?

No, I noticed after I sent it ...


> On Tue, Jun 7, 2011 at 12:03 AM, Alvaro Herrera
> <alvherre@commandprompt.com> wrote:
> > Excerpts from Robert Haas's message of lun jun 06 22:29:02 -0400 2011:
> >> On Fri, Jun 3, 2011 at 1:01 PM, Alvaro Herrera
> >> <alvherre@commandprompt.com> wrote:
> >> > Excerpts from Robert Haas's message of vie jun 03 12:44:45 -0400 2011:
> >> >> On Wed, Jun 1, 2011 at 2:28 PM, Robert Haas <robertmhaas@gmail.com> wrote:
> >> >
> >> >> > (4) It strikes me that it might be possible to address this problem a
> >> >> > bit more cleanly by allowing mdnblocks() and smgrnblocks() and
> >> >> > RelationGetNumberOfBlocksInFork() to take a boolean argument
> >> >> > indicating whether or not an error should be thrown if the underlying
> >> >> > physical file happens not to exist.  When no error is to be signaled,
> >> >> > we simply return 0 when the main fork doesn't exist, rather than
> >> >> > throwing an error.
> >> >>
> >> >> If we don't want to gum this with the above-mentioned cruft, the other
> >> >> obvious alternative here is to do nothing, and live with the
> >> >> non-beauty of the resulting error message.
> >> >
> >> > Option 4 seems reasonable to me ... can you get rid of the dupe
> >> > smgrnblocks call simultaneously?
> >>
> >> What dup smgrnblocks call?
> >
> > Err, weren't you saying in option (3) that mdnblocks was being called
> > twice during query planning?  If I'm talking nonsense feel free to
> > ignore me.
> 
> Oh.  It is, but there's no way to avoid that...
> 
> >> Patch along these lines attached.
> >
> > The declaration vs. definition of these functions seem contradictory --
> > is the third arg "missing_ok" or "fail_if_missing"?
> 
> Woops.  I started with it as fail_if_missing and then decided it
> should be missing_ok.  I can fix that...
> 

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support



view thread (23+ messages)  latest in thread

Message-ID: <1307421013-sup-7855@alvh.no-ip.org>
Permalink:  ../1307421013-sup-7855@alvh.no-ip.org/
Also on:    postgresql.org/message-id/1307421013-sup-7855@alvh.no-ip.org

 · 

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: alvherre@commandprompt.com, robertmhaas@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [BUGS] BUG #6041: Unlogged table was created bad in slave node
  In-Reply-To: <1307421013-sup-7855@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> <BANLkTim433vF5HWjbJ0FSWm_-xA8DDaGNg@mail.gmail.com> <BANLkTi=e7+0aXyoLoZENsNeBWX7n9Q+4Pw@mail.gmail.com> <1307120363-sup-3085@alvh.no-ip.org> <BANLkTinuA4fFnGtPYVrFvW0GssXYkOUGiQ@mail.gmail.com> <1307419156-sup-5893@alvh.no-ip.org> <BANLkTi=XvTzD0MVpHedkaHjnWQi-C8Xtpw@mail.gmail.com> <1307421013-sup-7855@alvh.no-ip.org>

* 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