SPI_exec does not return!

From: Markus Wagner <wagner(at)imsd(dot)uni-mainz(dot)de>
To: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: SPI_exec does not return!
Date: 2001-07-18 08:10:03
Message-ID: 3B55445B.36E16A4@imsd.uni-mainz.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bhuvan A 2001-07-18 09:23:04 Re: CAST(ipaddress as text) -- HOW?
Previous Message Josh Berkus 2001-07-18 05:35:15 Re: PL/PGSQL and external (flat ASCII) files - Urgent ... :)