From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Check Postgres DB open mode
Date: Thu, 14 Jul 2022 07:01:07 -0500
Message-ID: <9c1a0cca-c078-6261-5b21-a9fc1009d1c0@gmail.com> (raw)
In-Reply-To: <CAOzfMupiY3kXE9zQ-V_9OLwbdCVn4g5vdHRuA4nSKNZriWzHBw@mail.gmail.com>
References: <CAOzfMupiY3kXE9zQ-V_9OLwbdCVn4g5vdHRuA4nSKNZriWzHBw@mail.gmail.com>
On 7/13/22 23:13, Goti wrote:
> Hi Listers,
>
> I am new to postgres and would like to know how to check whether the DB is
> opened in read write mode or read-only mode.
Pedantically, /databases/ are not opened; the /postmaster/ is running or
not. We of course colloquially /say/ that "the database is open" when the
postmaster is running.
Locally, you can run the command "pg_ctl status", and systemctl probably
also has a status option.
--
Angular momentum makes the world go 'round.
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: pgsql-admin@postgresql.org
Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Check Postgres DB open mode
In-Reply-To: <9c1a0cca-c078-6261-5b21-a9fc1009d1c0@gmail.com>
* 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