Re: Check Postgres DB open mode

Поиск
Список
Период
Сортировка
От Ron
Тема Re: Check Postgres DB open mode
Дата
Msg-id 9c1a0cca-c078-6261-5b21-a9fc1009d1c0@gmail.com
обсуждение исходный текст
Ответ на Check Postgres DB open mode  (Goti <aryan.goti@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Holger Jakobs
Дата:
Сообщение: Re: Check Postgres DB open mode
Следующее
От: flatley
Дата:
Сообщение: truncate issue , possibly