From: Josh Berkus <josh@agliodbs.com>
To: Ian Harding <ianh@tpchd.org>
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Rules/Trigges Trade-offs
Date: Mon, 9 Dec 2002 12:40:09 -0800
Message-ID: <200212091240.09199.josh@agliodbs.com> (raw)
In-Reply-To: <sdf48ddc.052@mail.tpchd.org>
References: <sdf48ddc.052@mail.tpchd.org>
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
>
> create function some_func(test) returns int ...
>
> where test is the name of a table. The values are passed as a tcl array. I
will see if RECORD works too. I wonder if that would eliminate the problem I
ran into where I had dropped and recreated the table. The function barfed
since the OID for the user defined type "test" did not exist.
>
> This will work slick. Thanks!
>
> >>> Josh Berkus <josh@agliodbs.com> 12/09/02 12:29PM >>>
> Ian,
>
> > That makes sense! Is that psuedo code, or is there a way to send a
function
> the entire NEW array without specifying each column name and datatype
> specifically.
> >
> > I am using pltcl, if that matters..
>
> Not sure about pltcl. I'd say, try it, declare the function as:
>
> CREATE FUNCTION some_func (RECORD) and see how things go.
>
> --
> -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
>
>
>
--
-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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, ianh@tpchd.org
Subject: Re: Rules/Trigges Trade-offs
In-Reply-To: <200212091240.09199.josh@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox