Re: Proposal: make "opaque" obsolete - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: Proposal: make "opaque" obsolete
Date
Msg-id GNELIHDDFBOCMGBFGEFOKEMMCDAA.chriskl@familyhealth.com.au
Whole thread Raw
In response to Proposal: make "opaque" obsolete  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> Trigger functions will now be expected to take no arguments and return
> either tuple (or trigger if we call it that) or opaque.  It would also be
> sensible to allow VOID in the case of AFTER triggers, but I'm inclined not
> to do so: I think it's better that a trigger function be declared in a way
> that makes it clear it's supposed to be a trigger.  If CREATE
> TRIGGER accepts
> functions returning void then I think you lose some useful error checking.
>
> Should we throw a NOTICE stating that opaque is deprecated if a trigger
> is declared with opaque?  Or should we wait a release or two for that?

I think a NOTICE at creation time is fine.

> Comments?

Sounds really good.

Chris



pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: backpatch of datetime fixes
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in PostgreSQL (fwd)