From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ted Toth <txtoth@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: table inheritance and privileges
Date: Wed, 28 Sep 2022 15:49:56 -0400
Message-ID: <4031154.1664394596@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFPpqQEvdhkpNjbDF61jGJSJ_tj1Z-mZJOEROK_5petOFVtFRw@mail.gmail.com>
References: <CAFPpqQEvdhkpNjbDF61jGJSJ_tj1Z-mZJOEROK_5petOFVtFRw@mail.gmail.com>
Ted Toth <txtoth@gmail.com> writes:
> I'm dynamically creating tables that inherit from another table but
> they don't inherit the access privileges. Is there a way to have the
> new tables inherit their parent tables access privileges?
No, but do you need that? When accessing the parent table, there's
no need for privileges on individual children --- we only check
tables(s) directly named in the query.
regards, tom lane
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: tgl@sss.pgh.pa.us, txtoth@gmail.com
Subject: Re: table inheritance and privileges
In-Reply-To: <4031154.1664394596@sss.pgh.pa.us>
References: <CAFPpqQEvdhkpNjbDF61jGJSJ_tj1Z-mZJOEROK_5petOFVtFRw@mail.gmail.com> <4031154.1664394596@sss.pgh.pa.us>
* 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