pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
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, 8 Feb 2007 08:55:04 -0700
Message-ID: <20070208155504.GA78152@winnie.fuhr.org> (raw)
In-Reply-To: <8064.1170948745@sss.pgh.pa.us>
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>

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:

http://www.postgresql.org/docs/8.2/interactive/spi-spi-execute.html

"You may pass multiple commands in one string. SPI_execute returns
the result for the command executed last. The count limit applies
to each command separately, but it is not applied to hidden commands
generated by rules.

"When read_only is false, SPI_execute increments the command counter
and computes a new snapshot before executing each command in the
string."

Should that documentation be modified?

-- 
Michael Fuhr



view thread (8+ messages)  latest in thread

Message-ID: <20070208155504.GA78152@winnie.fuhr.org>
Permalink:  ../20070208155504.GA78152@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20070208155504.GA78152@winnie.fuhr.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 using the --to and --cc options:
  reply via email

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