Re: [GENERAL] PL/pgSQL syntax/usage question - Mailing list pgsql-general

From Adriaan Joubert
Subject Re: [GENERAL] PL/pgSQL syntax/usage question
Date
Msg-id 3897DBD6.2EB9736E@albourne.com
Whole thread Raw
In response to PL/pgSQL syntax/usage question  (Henk van Lingen <henkvl@cs.uu.nl>)
List pgsql-general
>
> Second, IIRC, you cannot pass in a string representing the tablename
> and then use it as a tablename in the select (though it would be quite
> handy).  Not sure how to do it, though.

I went through this a while ago: no way to pass a table name in. Only possibility
is to write a C routine using SPI and then anything is possible.

Adriaan


pgsql-general by date:

Previous
From: "Jackson Ching"
Date:
Subject: How to compile postgres JDBC in win95 cygwin-b20
Next
From: Sevo Stille
Date:
Subject: Re: [GENERAL] Linking in sin() as a C function