Re: How to determine field names in a trigger? - Mailing list pgsql-general

From Tom Lane
Subject Re: How to determine field names in a trigger?
Date
Msg-id 28508.1088516468@sss.pgh.pa.us
Whole thread Raw
In response to Re: How to determine field names in a trigger?  (Justin Clift <jc@telstra.net>)
List pgsql-general
Justin Clift <jc@telstra.net> writes:
> PL/TCL does seem to provide that extra bit of info to functions/triggers
> that I need, whereas PL/pgSQL doesn't.

It's not so much that there's more info available as that pltcl is
better suited for working with dynamically generated queries.  plpgsql
is handicapped by the fact that it wants to precompute and cache query
plans.  That's a performance win when you're working with known tables
but it really gets in the way for dynamically addressing columns.

> I'd prefer not to have to load
> further PL's into the database, but it's worth looking at anyway.

Different needs, different tools.

            regards, tom lane

pgsql-general by date:

Previous
From: Carlos Ojea Castro
Date:
Subject: Re: Query using kylix (delphi)
Next
From: Együd Csaba
Date:
Subject: Re: Performance problem on RH7.1