Re: [HACKERS] New error code to track unsupported contexts

2015-04-08 Thread Michael Paquier
2015-04-09 3:45 GMT+09:00 Alvaro Herrera : > Pushed this. Thanks! -- Michael -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] New error code to track unsupported contexts

2015-04-08 Thread Alvaro Herrera
Pushed this. -- Álvaro Herrerahttp://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-h

Re: [HACKERS] New error code to track unsupported contexts

2015-04-07 Thread Michael Paquier
On Wed, Apr 8, 2015 at 10:21 AM, Alvaro Herrera wrote: > Jim Nasby wrote: >> On 11/28/14 11:41 PM, Michael Paquier wrote: >> >Hi all, >> > >> >When pg_event_trigger_dropped_objects is run in a context that is not >> >the one of an event trigger, currently the error code >> >ERRCODE_FEATURE_NOT_SUP

Re: [HACKERS] New error code to track unsupported contexts

2015-04-07 Thread Alvaro Herrera
Jim Nasby wrote: > On 11/28/14 11:41 PM, Michael Paquier wrote: > >Hi all, > > > >When pg_event_trigger_dropped_objects is run in a context that is not > >the one of an event trigger, currently the error code > >ERRCODE_FEATURE_NOT_SUPPORTED is returned. Wouldn't it be better to > >have an error to

Re: [HACKERS] New error code to track unsupported contexts

2015-04-07 Thread Jim Nasby
On 11/28/14 11:41 PM, Michael Paquier wrote: Hi all, When pg_event_trigger_dropped_objects is run in a context that is not the one of an event trigger, currently the error code ERRCODE_FEATURE_NOT_SUPPORTED is returned. Wouldn't it be better to have an error to define an out-of-context instead?