Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f166HCx25787 for ; Tue, 6 Feb 2001 01:17:12 -0500 (EST) (envelope-from josh@agliodbs.com) Received: from [63.195.55.98] (HELO agliodbs.com) by davinci.ethosmedia.com (CommuniGate Pro SMTP 3.3) with ESMTP id 1187080 for pgsql-sql@postgresql.org; Mon, 05 Feb 2001 22:17:10 -0800 Message-ID: <3A7F95F8.CC0DACBA@agliodbs.com> Date: Mon, 05 Feb 2001 22:13:12 -0800 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions X-Mailer: Mozilla 4.73 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: sqllist Subject: Re: PL/PGSQL function with parameters References: <7F124BC48D56D411812500D0B747251480F3CB@FILESERVER002> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/72 X-Sequence-Number: 1245 Mike, Jan, > Michael Ansley wrote: > > With the latest release, I think you can do: > > EXEC ''SELECT * FROM '' || $1; > > or > > DECLARE SQL VARCHAR; > ... > SQL = ''SELECT * FROM '' || $1; > EXEC SQL; > > or something similar (it may be EXECUTE), which uses the dynamic sql > elements of plpgsql. I think. Is this true, Jan? Does anyone have more specific documentation? -Josh Berkus -- ______AGLIO DATABASE SOLUTIONS___________________________ Josh Berkus Complete information technology josh@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco