Re: incorrect error message, while dropping PROCEDURE - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: incorrect error message, while dropping PROCEDURE
Date
Msg-id 38addf0d-8c5c-fbb0-2aad-fafd57f21e0a@2ndquadrant.com
Whole thread Raw
In response to incorrect error message, while dropping PROCEDURE  (Rushabh Lathia <rushabh.lathia@gmail.com>)
Responses Re: incorrect error message, while dropping PROCEDURE
List pgsql-hackers
On 12/13/17 23:31, Rushabh Lathia wrote:
> Currently if some one try to drop the PROCEDURE and
> it don't have privilege or it's not an owner, than error message
> still indicate object as FUNCTION.

Yes, that is actually something that is fixed by the patches proposed in
the thread "replace GrantObjectType with ObjectType".

> PFA patch, where introduced new AclObjectKind (ACL_KIND_PROCEDURE),
> msg for the new AclObjectKind, and passed it through at
> appropriate places.

Yeah, that's a way to do it, but having both ACL_KIND_PROC and
ACL_KIND_PROCEDURE is clearly confusing.  The above-mentioned patch
cleans that up more thoroughly, I think.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: access/parallel.h lacks PGDLLIMPORT
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] Custom compression methods