From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Robins Tharakan <tharakan@gmail.com>
Cc: pgsql-docs@postgresql.org
Subject: Re: CREATE OPERATOR query
Date: Tue, 21 May 2013 21:42:49 -0400
Message-ID: <20130522014249.GA15045@eldon.alvh.no-ip.org> (raw)
In-Reply-To: <CAEP4nAws7hm0xxgcd2MUEFZAvaw-stzcZ0RbnxA4=u0O2O-x=w@mail.gmail.com>
References: <CAEP4nAw83qOywTH9STYCGxcGEZ+pjvSLN8Hyz_f-tZYODxVfHQ@mail.gmail.com>
<CAEP4nAws7hm0xxgcd2MUEFZAvaw-stzcZ0RbnxA4=u0O2O-x=w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>
Robins Tharakan escribió:
> Further, I seem to have a similar problem with the EXECUTE check
> requirement as well.
> Sample SQL given below.
>
> BEGIN TRANSACTION;
> CREATE ROLE rol_op3;
> CREATE TYPE type_op3 AS ENUM ('new', 'open', 'closed');
> CREATE FUNCTION fn_op3(type_op3, type_op3)
> RETURNS type_op3 AS $$
> SELECT NULL::type_op3;
> $$ LANGUAGE sql IMMUTABLE;
> REVOKE EXECUTE ON FUNCTION fn_op3(type_op3, type_op3) FROM rol_op3;
Doesn't PUBLIC still have EXECUTE permissions on this function?
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: alvherre@2ndquadrant.com, tharakan@gmail.com
Subject: Re: CREATE OPERATOR query
In-Reply-To: <20130522014249.GA15045@eldon.alvh.no-ip.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox