pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Wagner <wagner@imsd.uni-mainz.de>
To: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: SPI_exec does not return!
Date: Wed, 18 Jul 2001 10:10:03 +0200
Message-ID: <3B55445B.36E16A4@imsd.uni-mainz.de> (raw)

Hi,

if I do a SELECT on a non-existing table, SPI_exec won't return.
I get, e. g. in pgaccess, an error message "<table> does not exist",
and my code below the function call is never reached.

So why return error codes for SPI_exec when you cannot evaluate them?

The background:

I need to distinguish different client connections within a trigger
function.
To do this, I create a temporary table within a "login" function.
My trigger must check for the existence of this function.
I cannot think of any other method, since there is no "connection id" or
something like that!

This would also be an application for checking the existance of a
temporary table,
as was asked for in another thread in this list before.

How can I check for the existence of a temporary table without getting
interuppted?????

Thanks,

Markus



view thread (2+ messages)  latest in thread

Message-ID: <3B55445B.36E16A4@imsd.uni-mainz.de>
Permalink:  ../3B55445B.36E16A4@imsd.uni-mainz.de/
Also on:    postgresql.org/message-id/3B55445B.36E16A4@imsd.uni-mainz.de

 · 

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: wagner@imsd.uni-mainz.de
  Subject: Re: SPI_exec does not return!
  In-Reply-To: <3B55445B.36E16A4@imsd.uni-mainz.de>

* 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