Re: HotStandbyActive() issue in postgres

From: Hao Wu <hawu(at)vmware(dot)com>
To: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Cc: Paul Guo <guopa(at)vmware(dot)com>
Subject: Re: HotStandbyActive() issue in postgres
Date: 2021-03-16 03:24:41
Message-ID: CY4PR0501MB390643D8854FF87C52169980A46B9@CY4PR0501MB3906.namprd05.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Yes, I have an extension/UDF that needs to know if the server is currently
running as hot standby. For example, a UDF foo() wants to run on
both the primary and secondary and runs different behaviors for different
roles.
Promoted secondary looks the same as the primary since it's no longer
real hot standby. Does it make sense?

Regards,
Hao Wu

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2021-03-16 03:30:43 Re: subscriptionCheck failures
Previous Message tsunakawa.takay@fujitsu.com 2021-03-16 03:02:41 RE: libpq debug log