pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feedWhat are the minimum required permissions for pg_isready
2+ messages / 2 participants
[nested] [flat]
* What are the minimum required permissions for pg_isready
@ 2024-03-12 15:09 PG Doc comments form <noreply@postgresql.org>
0 siblings, 1 reply; 2+ messages in thread
From: PG Doc comments form @ 2024-03-12 15:09 UTC (permalink / raw)
To: pgsql-docs@lists.postgresql.org; +Cc: ieugen@netdava.com
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/16/app-pg-isready.html
Description:
Hello,
The documentation does not specify what are the minimum required permissions
for setting up pg_isready .
I was wondering if this could be added so devops teams know how to create a
user that is used only for monitoring postgresql.
I assume this user will need to connect and nothing else ?
I also assume we would need to drop public access for that user ?
Thanks,
Eugen
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: What are the minimum required permissions for pg_isready
@ 2024-03-13 14:33 Tom Lane <tgl@sss.pgh.pa.us>
parent: PG Doc comments form <noreply@postgresql.org>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2024-03-13 14:33 UTC (permalink / raw)
To: ieugen@netdava.com; +Cc: pgsql-docs@lists.postgresql.org
PG Doc comments form <noreply@postgresql.org> writes:
> The documentation does not specify what are the minimum required permissions
> for setting up pg_isready .
There are none. Per the documentation:
It is not necessary to supply correct user name, password, or
database name values to obtain the server status; however, if
incorrect values are provided, the server will log a failed
connection attempt.
If you don't want log spam about failed connections, you'd need
a user with privilege to connect to the mentioned database.
Otherwise, not.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2024-03-13 14:33 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-03-12 15:09 What are the minimum required permissions for pg_isready PG Doc comments form <noreply@postgresql.org>
2024-03-13 14:33 ` Tom Lane <tgl@sss.pgh.pa.us>
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