pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Fuhr <mike@fuhr.org>
Cc: Greg Wittel <gwittel@proofpoint.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Odd PL/PgSQL Error -- relation "X" does not exist when using index expression
Date: Thu, 08 Feb 2007 10:59:16 -0500
Message-ID: <8487.1170950356@sss.pgh.pa.us> (raw)
In-Reply-To: <20070208155504.GA78152@winnie.fuhr.org>
References: <45CA5601.1090007@proofpoint.com>
	<20070208112331.GA75899@winnie.fuhr.org>
	<20070208141433.GD24069@alvh.no-ip.org>
	<20070208150746.GA77230@winnie.fuhr.org>
	<8064.1170948745@sss.pgh.pa.us>
	<20070208155504.GA78152@winnie.fuhr.org>

Michael Fuhr <mike@fuhr.org> writes:
> On Thu, Feb 08, 2007 at 10:32:25AM -0500, Tom Lane wrote:
>> My advice is not to try to execute multiple commands in the same EXECUTE
>> string --- if we were going to do anything to "fix" this, I think it
>> would be along the lines of enforcing that advice.  Trying to make the
>> world safe for it doesn't sound productive.

> The SPI_execute() documentation does mention that multiple commands
> are allowed:

Well, the point here is that there's one pass of parsing and one of
execution, and you won't get far if the parsing pass requires an earlier
command to have already been executed.  So maybe the appropriate warning
is something about not using interdependent DDL commands.  Feel free to
draft up a docs patch.

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <8487.1170950356@sss.pgh.pa.us>
Permalink:  ../8487.1170950356@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8487.1170950356@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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mike@fuhr.org, gwittel@proofpoint.com
  Subject: Re: Odd PL/PgSQL Error -- relation "X" does not exist when using index expression
  In-Reply-To: <8487.1170950356@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