Re: Check Postgres DB open mode

Поиск
Список
Период
Сортировка
От Holger Jakobs
Тема Re: Check Postgres DB open mode
Дата
Msg-id 2646aa97-c183-59e5-fa69-43532da700a2@jakobs.com
обсуждение исходный текст
Ответ на Check Postgres DB open mode  (Goti <aryan.goti@gmail.com>)
Список pgsql-admin
Am 14.07.22 um 06:13 schrieb Goti:
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.

Thanks,

Goti

Hi Goti,

The PostgreSQL database isn't "opened", but the clients connect to it.

Whether the connection is read-only can be found out by executing the command

    show transaction_read_only

Unless you are connected to a standby server, connections will be read-write.

Regards,

Holger


-- 
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012
Вложения

В списке pgsql-admin по дате отправления:

Предыдущее
От: Goti
Дата:
Сообщение: Check Postgres DB open mode
Следующее
От: Ron
Дата:
Сообщение: Re: Check Postgres DB open mode