From: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
---|---|
To: | Stephen Frost <sfrost(at)snowman(dot)net> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Review of GetUserId() Usage |
Date: | 2015-02-13 08:17:17 |
Message-ID: | CAB7nPqQBmSJtF_JDodT4KdzBKhmoXDRBMRkr+P4jeOkh8zZ4LA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Dec 5, 2014 at 11:28 PM, Stephen Frost <sfrost(at)snowman(dot)net> wrote:
> * Stephen Frost (sfrost(at)snowman(dot)net) wrote:
> > * Stephen Frost (sfrost(at)snowman(dot)net) wrote:
> > > > 3. It messes around with pg_signal_backend(). There are currently no
> > > > cases in which pg_signal_backend() throws an error, which is good,
> > > > because it lets you write queries against pg_stat_activity() that
> > > > don't fail halfway through, even if you are missing permissions on
> > > > some things. This patch introduces such a case, which is bad.
> > >
> > > Good point, I'll move that check up into the other functions, which
> will
> > > allow for a more descriptive error as well.
> >
> > Err, I'm missing something here, as pg_signal_backend() is a misc.c
> > static internal function? How would you be calling it from a query
> > against pg_stat_activity()?
> >
> > I'm fine making the change anyway, just curious..
>
> Updated patch attached which move the ereport() out of
> pg_signal_backend() and into its callers, as the other permissions
> checks are done, and includes the documentation changes. The error
> messages are minimally changed to match the new behvaior.
>
Moving to next CF, this patch did not get reviews.
--
Michael
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2015-02-13 08:20:09 | Re: assessing parallel-safety |
Previous Message | Michael Paquier | 2015-02-13 08:14:27 | Re: Patch to support SEMI and ANTI join removal |