Re: Re: Patch to add functionality to specify ORDER BY in CREATE FUNCTION for SRFs - Mailing list pgsql-hackers

From David G Johnston
Subject Re: Re: Patch to add functionality to specify ORDER BY in CREATE FUNCTION for SRFs
Date
Msg-id CAKFQuwZaQcVeqiO8xKMD0VM4V0TuTEL8Z_SXbw1Vgwx5N79RTw@mail.gmail.com
Whole thread Raw
In response to Re: Patch to add functionality to specify ORDER BY in CREATE FUNCTION for SRFs  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
List pgsql-hackers
Even checking whether the output of the function is in the right order or not, has its cost. I am suggesting that we can eliminate this cost as well. For example, PostgreSQL does not check whether a function is really immutable or not.

Best Wishes,
Ashutosh Bapat


 I imagine if it could be done reliably and cheaply the volatility specifier would be checked.  There are a number of situations where not doing so confuses users and we get complaints.  If we allow a constraint to be specified we should try to error if that constraint is violated - otherwise we probably should not allow it to be defined in the first place.

David J.


View this message in context: Re: [HACKERS] Re: Patch to add functionality to specify ORDER BY in CREATE FUNCTION for SRFs
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.

pgsql-hackers by date:

Previous
From: Atri Sharma
Date:
Subject: Re: Patch to add functionality to specify ORDER BY in CREATE FUNCTION for SRFs
Next
From: Mark Kirkwood
Date:
Subject: Re: Turning recovery.conf into GUCs