Re: If an extension library is loaded during pg_upgrade,can it tell? - Mailing list pgsql-hackers

From Chapman Flack
Subject Re: If an extension library is loaded during pg_upgrade,can it tell?
Date
Msg-id 58E3036E.1010105@anastigmatix.net
Whole thread Raw
In response to Re: If an extension library is loaded during pg_upgrade,can it tell?  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
On 04/03/17 22:08, Bruce Momjian wrote:
> On Mon, Apr  3, 2017 at 09:53:34PM -0400, Chapman Flack wrote:
>> Hi,
>>
>> Is there any distinctive state that could be checked by extension code
>> to determine that it has been loaded incidentally during the operation
>> of pg_upgrade rather than under normal conditions?
>> ... 
> You can check the backend global variable IsBinaryUpgrade to check if
> binary upgrade is being performed.  Does that help you?

That sounds like exactly what I'd hoped for. Thanks!

-Chap



pgsql-hackers by date:

Previous
From: "Tsunakawa, Takayuki"
Date:
Subject: Re: wait event documentation
Next
From: Robert Haas
Date:
Subject: Re: [sqlsmith] Failed assertion in _hash_kill_items/MarkBufferDirtyHint