pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pavel Luzanov <p.luzanov@postgrespro.ru>
To: Dominique Devienne <ddevienne@gmail.com>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Lok P <loknath.73@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: Users and object privileges maintenance
Date: Sun, 18 Feb 2024 18:33:57 +0300
Message-ID: <4d9f0928-950c-401d-b2d3-f11faf39a1fb@postgrespro.ru> (raw)
In-Reply-To: <CAFCRh-_-x0Xg--hdKMuTa=x1XqVkVJuPEMY2vdGXFwsd5ipf2Q@mail.gmail.com>
References: <CAKna9VbjA+2t-st_cxBMhXbAes6HXOR7z=x3Y9QFdkB9VdE8ww@mail.gmail.com>
	<CAFCRh--DFkh0YaUZ=0c+BRQPHy8Z4Bzvd9B7cBTR-r05=EfJLA@mail.gmail.com>
	<f0f9df4899792379b78e1348a6a876a54d3b4f25.camel@cybertec.at>
	<CAFCRh--s3nN+dUtbCQJQpVg8CZY+TK718AqPO5YZSExd0zacOQ@mail.gmail.com>
	<459ef527-5d83-4bed-90d5-4bbabc1da91c@postgrespro.ru>
	<CAFCRh-_-x0Xg--hdKMuTa=x1XqVkVJuPEMY2vdGXFwsd5ipf2Q@mail.gmail.com>

On 18.02.2024 17:40, Dominique Devienne wrote:
> Well, membership in a role mean you can "become that role", no? Thus 
> this seems logical,
> and not confusing to me, that you can act as the owner, since you SET 
> ROLE to the owner.

They may acts as the owner even without explicit SET ROLE to the owner.
It wasn't obvious to me when I came to postgres from oracle.

-- 
Pavel Luzanov
Postgres Professional:https://postgrespro.com

view thread (11+ messages)  latest in thread

Message-ID: <4d9f0928-950c-401d-b2d3-f11faf39a1fb@postgrespro.ru>
Permalink:  ../4d9f0928-950c-401d-b2d3-f11faf39a1fb@postgrespro.ru/
Also on:    postgresql.org/message-id/4d9f0928-950c-401d-b2d3-f11faf39a1fb@postgrespro.ru

 · 

reply

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: p.luzanov@postgrespro.ru, ddevienne@gmail.com, laurenz.albe@cybertec.at, loknath.73@gmail.com
  Subject: Re: Users and object privileges maintenance
  In-Reply-To: <4d9f0928-950c-401d-b2d3-f11faf39a1fb@postgrespro.ru>
  References: <CAKna9VbjA+2t-st_cxBMhXbAes6HXOR7z=x3Y9QFdkB9VdE8ww@mail.gmail.com> <CAFCRh--DFkh0YaUZ=0c+BRQPHy8Z4Bzvd9B7cBTR-r05=EfJLA@mail.gmail.com> <f0f9df4899792379b78e1348a6a876a54d3b4f25.camel@cybertec.at> <CAFCRh--s3nN+dUtbCQJQpVg8CZY+TK718AqPO5YZSExd0zacOQ@mail.gmail.com> <459ef527-5d83-4bed-90d5-4bbabc1da91c@postgrespro.ru> <CAFCRh-_-x0Xg--hdKMuTa=x1XqVkVJuPEMY2vdGXFwsd5ipf2Q@mail.gmail.com> <4d9f0928-950c-401d-b2d3-f11faf39a1fb@postgrespro.ru>

* 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