Re: If an extension library is loaded during pg_upgrade, can it tell?

From: Chapman Flack <chap(at)anastigmatix(dot)net>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: If an extension library is loaded during pg_upgrade, can it tell?
Date: 2017-04-04 02:22:38
Message-ID: 58E3036E.1010105@anastigmatix.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2017-04-04 02:29:26 Re: [sqlsmith] Failed assertion in _hash_kill_items/MarkBufferDirtyHint
Previous Message Tsunakawa, Takayuki 2017-04-04 02:19:42 Re: wait event documentation