| From: | Bruce Momjian <bruce(at)momjian(dot)us> |
|---|---|
| To: | yanliang lei <msdnchina(at)163(dot)com> |
| Cc: | "pgsql-docs(at)lists(dot)postgresql(dot)org" <pgsql-docs(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: about pg14 new parameter in_hot_standby |
| Date: | 2022-05-24 23:57:26 |
| Message-ID: | Yo1w5gFqxlo2Ohip@momjian.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-docs |
On Sun, May 22, 2022 at 11:59:15AM +0800, yanliang lei wrote:
> in the pg14 document(https://www.postgresql.org/docs/14/
> runtime-config-preset.html)
>
> in_hot_standby parameter:
>
> Reports whether the server is currently in hot standby mode.
>
> When this is on, all transactions are forced to be read-only.
>
> Within a session, this can change only if the server is promoted to be primary.
> See Section 27.4 for more information.
>
>
> "Within a session, this can change only if the server is promoted to be
> primary"--- I can not understand this statement.
It means when the server is in read/write mode, called "primary" mode vs
"standby" mode.
--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com
Indecision is a decision. Inaction is an action. Mark Batterson
| From | Date | Subject | |
|---|---|---|---|
| Next Message | jian he | 2022-05-26 14:30:09 | collation.html natural sort |
| Previous Message | Bruce Momjian | 2022-05-24 12:36:18 | Re: Documentation Suggestion |