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: Robert Haas <robertmhaas@gmail.com>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: Euler Taveira de Oliveira <euler@timbira.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: Tue, 07 Jun 2011 10:37:30 -0400
Message-ID: <13021.1307457450@sss.pgh.pa.us> (raw)
In-Reply-To: <1307456529-sup-7240@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>
	<BANLkTikMKmpSdBCLR2YS0d-rbJEjg1c-pA@mail.gmail.com>
	<BANLkTi=OMjVpDtbkRDqJ3FOcYptu+f5ZdA@mail.gmail.com>
	<1307456529-sup-7240@alvh.no-ip.org>

Alvaro Herrera <alvherre@commandprompt.com> writes:
> Excerpts from Robert Haas's message of mar jun 07 08:16:01 -0400 2011:
>> Probably.  I guess the question is whether we want this to fail in (a)
>> the parser, (b) the planner, or (c) the executor.

> Really?  I thought it was the job of the parse analysis phase to figure
> out if table and column names are valid or not, and such.  If that's the 
> case, wouldn't it make sense to disallow usage of a table that doesn't
> "exist" in a certain sense?

If you hope ever to support the proposed UNLOGGED-to-LOGGED or vice
versa table state changes, you don't want to be testing this in the
parser.  It has to be done at plan or execute time.

			regards, tom lane



view thread (23+ messages)  latest in thread

Message-ID: <13021.1307457450@sss.pgh.pa.us>
Permalink:  ../13021.1307457450@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13021.1307457450@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, robertmhaas@gmail.com, simon@2ndquadrant.com, euler@timbira.com, postgres.arg@gmail.com
  Subject: Re: BUG #6041: Unlogged table was created bad in slave node
  In-Reply-To: <13021.1307457450@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> <BANLkTim433vF5HWjbJ0FSWm_-xA8DDaGNg@mail.gmail.com> <BANLkTikMKmpSdBCLR2YS0d-rbJEjg1c-pA@mail.gmail.com> <BANLkTi=OMjVpDtbkRDqJ3FOcYptu+f5ZdA@mail.gmail.com> <1307456529-sup-7240@alvh.no-ip.org> <13021.1307457450@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