From: Shailesh Rangani <shailesh.rangani@yahoo.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: sekharclouddbengineer@gmail.com <sekharclouddbengineer@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: postgres issue
Date: Sat, 13 Jun 2020 22:28:12 +0000 (UTC)
Message-ID: <333903254.446847.1592087292982@mail.yahoo.com> (raw)
In-Reply-To: <d17877c1-076d-c68a-f7e3-7bfc66c92565@aklaver.com>
References: <BY5PR13MB3746F20158FF0A1EC8CEEB0C9C9E0@BY5PR13MB3746.namprd13.prod.outlook.com>
<BN6PR1301MB2098BFF4758C71439A3703D0E49E0@BN6PR1301MB2098.namprd13.prod.outlook.com>
<335825246.427982.1592084341765@mail.yahoo.com>
<1033775714.454752.1592085130615@mail.yahoo.com>
<d17877c1-076d-c68a-f7e3-7bfc66c92565@aklaver.com>
\dn+ public List of schemas Name | Owner | Access privileges | Description-----------------------------+---------------+--------------------------------+-----------------------------------------public rdsadmin dailypay_root=UC/rdsadmin dailypay=U/rdsadmin standard public schema
On Saturday, June 13, 2020, 05:12:32 PM CDT, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
On 6/13/20 2:52 PM, Shailesh Rangani wrote:
> + Community DL.
>
>
>
>
>
> On Saturday, June 13, 2020, 04:39:01 PM CDT, Shailesh Rangani
> <shailesh.rangani@yahoo.com> wrote:
>
>
> Hi Adrian,
>
> Please find the attached sequence.
Please post output of command below as text.
What does \dn+ public show?
>
> Regards
> Shailesh
>
>
>
>
>
> ------ Forwarded message ---------
>
> From: *Adrian Klaver* <adrian.klaver@aklaver.com
> <mailto:adrian.klaver@aklaver.com>>
> Date: Sat, Jun 13, 2020 at 10:43 AM
> Subject: Re: Fwd: not able to give usage access to public schema
> To: sekhar chandra <sekharclouddbengineer@gmail.com
> <mailto:sekharclouddbengineer@gmail.com>>
> Cc: <pgsql-general@postgresql.org <mailto:pgsql-general@postgresql.org>>
>
>
>
> On 6/13/20 10:33 AM, sekhar chandra wrote:
> > Adrian - when I follow the same steps what you did . in my case , the
> > result is false.
> >
> >
> > grant usage on schema public to role_test ;
> > GRANT
> >
> > SELECT rolname, has_schema_privilege('role_test', 'public', 'usage')
> > from pg_roles where rolname = 'role_test';
> > rolname | has_schema_privilege
> > -----------+----------------------
> > role_test | f
>
> Postgres version and where are you running this e.g. cloud service?
>
> What does \dn+ public show before and after you redo commands as asked
> below?
>
> Can you start over and provide complete sequence for above including
> CREATE ROLE and what user you are doing the above as?
>
>
>
> >
> > On Fri, Jun 12, 2020 at 10:11 PM Adrian Klaver
> > <adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> <mailto:adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>>>
> wrote:
> >
> > On 6/12/20 3:56 PM, sekhar chandra wrote:
> > > I am not able to give usage permission to public schema. below
> > are the
> > > steps.
> > >
> > >
> > > Logged in as super user
> > > created a new user as user1
> > > grant usage on public to user1
> >
> > Either the above is a cut and paste error or you got an error:
> >
> > grant usage on public to role_test ;
> > ERROR: relation "public" does not exist
> >
> > grant usage on schema public to role_test ;
> > GRANT
> >
> > SELECT rolname, has_schema_privilege('role_test', 'public', 'usage')
> > from pg_roles where rolname = 'role_test';
> > rolname | has_schema_privilege
> > -----------+----------------------
> > role_test | t
> >
> >
> > >
> > > command completed successfully , but verification statement
> > showing he
> > > doesnt have usage permission.
> > > SELECT rolname, has_schema_privilege(rolname, 'public', 'usage')
> > from
> > > pg_roles;
> > >
> > > this is strage. what could go wrong.
> >
> >
> > --
> > Adrian Klaver
> > adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> <mailto:adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>>
> >
>
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
>
> //Datavail/Internal - Limited External Distribution
>
> This email (including any attachments) is for the use of the intended
> recipient(s) only and may contain confidential or proprietary
> information. If you have received this email in error, please notify the
> sender immediately and then delete it. If you are not the intended
> recipient, you must not keep, use, disclose, copy or distribute this
> email without the author's prior permission. //Datavail/Business -
> Limited External Distribution
--
Adrian Klaver
adrian.klaver@aklaver.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: shailesh.rangani@yahoo.com, adrian.klaver@aklaver.com, sekharclouddbengineer@gmail.com
Subject: Re: postgres issue
In-Reply-To: <333903254.446847.1592087292982@mail.yahoo.com>
References: <BY5PR13MB3746F20158FF0A1EC8CEEB0C9C9E0@BY5PR13MB3746.namprd13.prod.outlook.com> <BN6PR1301MB2098BFF4758C71439A3703D0E49E0@BN6PR1301MB2098.namprd13.prod.outlook.com> <335825246.427982.1592084341765@mail.yahoo.com> <1033775714.454752.1592085130615@mail.yahoo.com> <d17877c1-076d-c68a-f7e3-7bfc66c92565@aklaver.com> <333903254.446847.1592087292982@mail.yahoo.com>
* 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