Skip site navigation (1) Skip section navigation (2)

Re: Function

From: John DeSoi <desoi(at)pgedit(dot)com>
To: bill house <wchouse(at)bellsouth(dot)net>
Cc: psql-novice Novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Function
Date: 2010-02-20 14:55:52
Message-ID: 443F342B-AF24-4CD3-8CF2-D1D9BAE43933@pgedit.com (view raw or flat)
Thread:
Lists: 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 column references 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.





In response to

pgsql-novice by date

Next:From: bill houseDate: 2010-02-22 02:15:54
Subject: Upgrading to 8.4
Previous:From: Richard HuxtonDate: 2010-02-19 08:43:43
Subject: Re: Not able to access schema functions and table...

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group