Re: Return type of triger functions from OPAQUE to TRIGGER in 7.3 - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Return type of triger functions from OPAQUE to TRIGGER in 7.3
Date
Msg-id 200302251642.35425.josh@agliodbs.com
Whole thread Raw
In response to Return type of triger functions from OPAQUE to TRIGGER in 7.3  (Roberto Mello <rmello@cc.usu.edu>)
Responses Re: Return type of triger functions from OPAQUE to TRIGGER in 7.3
Re: Return type of triger functions from OPAQUE to TRIGGER in 7.3
List pgsql-sql
Roberto,

> We found out a few days ago that in PG 7.3 the return type for trigger
> functions was redefined from OPAQUE to TRIGGER. What's the rationale
> behind this? Is this for standards compliance (forgive my ignorance about
> the standard's details)? Were there other gains to be obtained from this
> move?

Yes.  In < 7.3, OPAQUE actually referred to 3 different types of non-parsable
return values.   Differntiating the different types should be an improvement
in both performance and error prevention.

> So right now we are stuck on either changing the return type of every
> trigger for TRIGGER (which means no 7.2 compatibility) or stay stuck in
> 7.2-land.

Seems to me that this could be done to the whole OpenACS package with a Perl
or Sed script.

--
Josh Berkus
josh@agliodbs.com
Aglio Database Solutions
San Francisco


pgsql-sql by date:

Previous
From: Roberto Mello
Date:
Subject: Return type of triger functions from OPAQUE to TRIGGER in 7.3
Next
From: Tom Lane
Date:
Subject: Re: Return type of triger functions from OPAQUE to TRIGGER in 7.3