public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Ahmed Ibrahim <[email protected]>
Cc: [email protected]
Subject: Re: Check used privilege in a statment
Date: Tue, 10 Sep 2024 02:08:18 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAKfRk1uCwdmMckxQ_W0aU0e8Uq5ZgMM86jsHcQTidatrJmZXfw@mail.gmail.com>
References: <CAKfRk1uCwdmMckxQ_W0aU0e8Uq5ZgMM86jsHcQTidatrJmZXfw@mail.gmail.com>
Ahmed Ibrahim <[email protected]> writes:
> I am trying to know which privileges are used in a specific query but I am
> facing problems when I have nested queries. Where is the best place/hook I
> can check for all needed permissions for a query in the source? Currently,
> trying it in the exectuter start but the nested queries are problematic.
Nested queries are irrelevant, because the query is flat (or at least
the rangetable is) by the time it gets to the executor. See
ExecCheckPermissions.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Check used privilege in a statment
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox