From: | Tomas Vondra <tomas(dot)vondra(at)enterprisedb(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Can we have a new SQL callable function to get Postmaster PID? |
Date: | 2021-02-03 21:13:11 |
Message-ID: | 90a486a6-4a56-dc51-8680-6ad99b2f72ae@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2/3/21 4:08 PM, Tom Lane wrote:
> Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com> writes:
>> Can we have a new function, say pg_postgres_pid(), to return
>> postmaster PID similar to pg_backend_pid()?
>
> I'm disinclined to think that this is a good idea from a security
> perspective. Maybe if it's superuser-only it'd be ok (since a
> superuser would have other routes to discovering the value anyway).
>
Is the postmaster PID really sensitive? Users with OS access can just
list the processes, and for users without OS access / privileges it's
mostly useless, no?
regards
--
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2021-02-03 21:19:19 | Re: Tid scan improvements |
Previous Message | Tomas Vondra | 2021-02-03 21:09:47 | Re: Can we have a new SQL callable function to get Postmaster PID? |