Re: Function - Mailing list pgsql-novice

From John DeSoi
Subject Re: Function
Date
Msg-id 443F342B-AF24-4CD3-8CF2-D1D9BAE43933@pgedit.com
Whole thread Raw
In response to Function  (bill house <wchouse@bellsouth.net>)
List pgsql-novice
On Feb 20, 2010, at 9:33 AM, bill house wrote:

>> You can't build SQL statements like this. If you want to build a statement dynamically (where the table name and
columnreferences are not known when the function is defined) you need to use EXECUTE. See 
>> http://www.postgresql.org/docs/8.4/interactive/plpgsql-statements.html#PLPGSQL-STATEMENTS-EXECUTING-DYN
>>
> Thanks for the help.  Having reread that part of the manual, I see what you are talking about.
>
> I am running 8.3, I see all of the documentary references are referring to 8.4.
>
> My attempt to upgrade to 8.4 did not go smoothly.  Is this the right forum to ask about this issue?

Yes, this is the right forum. Be sure to reply-all so that your responses go back to the list.

The 8.3 documentation is online as well:

http://www.postgresql.org/docs/8.3/interactive/plpgsql-statements.html#PLPGSQL-STATEMENTS-EXECUTING-DYN




John DeSoi, Ph.D.





pgsql-novice by date:

Previous
From: dipti shah
Date:
Subject: Re: [GENERAL] Not able to access schema functions and table...
Next
From: bill house
Date:
Subject: Upgrading to 8.4