Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6C79F4760BD for ; Mon, 9 Dec 2002 15:36:41 -0500 (EST) Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (Postfix) with ESMTP id 7C169476064 for ; Mon, 9 Dec 2002 15:36:40 -0500 (EST) Received: from [66.219.92.2] (HELO chocolate-mousse) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 2273608; Mon, 09 Dec 2002 12:36:42 -0800 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: "Ian Harding" Subject: Re: Rules/Trigges Trade-offs Date: Mon, 9 Dec 2002 12:40:09 -0800 X-Mailer: KMail [version 1.4] References: In-Reply-To: Cc: pgsql-sql MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200212091240.09199.josh@agliodbs.com> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/102 X-Sequence-Number: 10690 Ian, You're welcome. Replying to the list for the edification of other users. -Josh > I just figgered it out. I declared the function as=20 >=20 > create function some_func(test) returns int ... >=20 > where test is the name of a table. The values are passed as a tcl array.= I=20 will see if RECORD works too. I wonder if that would eliminate the problem= I=20 ran into where I had dropped and recreated the table. The function barfed= =20 since the OID for the user defined type "test" did not exist. >=20 > This will work slick. Thanks! >=20 > >>> Josh Berkus 12/09/02 12:29PM >>> > Ian, >=20 > > That makes sense! Is that psuedo code, or is there a way to send a=20 function=20 > the entire NEW array without specifying each column name and datatype=20 > specifically. > >=20 > > I am using pltcl, if that matters.. >=20 > Not sure about pltcl. I'd say, try it, declare the function as: >=20 > CREATE FUNCTION some_func (RECORD) and see how things go. >=20 > --=20 > -Josh Berkus >=20 > ______AGLIO DATABASE SOLUTIONS___________________________ > Josh Berkus > Complete information technology josh@agliodbs.com=20 > and data management solutions (415) 565-7293 > for law firms, small businesses fax 621-2533 > and non-profit organizations. San Francisco >=20 >=20 >=20 --=20 -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