Re: Check Postgres DB open mode - Mailing list pgsql-admin

From Ron
Subject Re: Check Postgres DB open mode
Date
Msg-id 9c1a0cca-c078-6261-5b21-a9fc1009d1c0@gmail.com
Whole thread Raw
In response to Check Postgres DB open mode  (Goti <aryan.goti@gmail.com>)
List pgsql-admin
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.

pgsql-admin by date:

Previous
From: Holger Jakobs
Date:
Subject: Re: Check Postgres DB open mode
Next
From: flatley
Date:
Subject: truncate issue , possibly