Re: Should shared_preload_libraries be loaded during binary upgrade? - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Should shared_preload_libraries be loaded during binary upgrade?
Date
Msg-id aBN7gqSuVVZZtoKD@momjian.us
Whole thread Raw
In response to Should shared_preload_libraries be loaded during binary upgrade?  (Dilip Kumar <dilipbalaut@gmail.com>)
Responses Re: Should shared_preload_libraries be loaded during binary upgrade?
List pgsql-hackers
On Thu, May  1, 2025 at 11:05:56AM +0530, Dilip Kumar wrote:
> Does it make sense to load "shared_preload_libraries" during binary
> upgrade mode?
> 
> An extension might unintentionally interfere with pg_upgrade, for
> example, by connecting to the 'postgres' database, which can cause the
> upgrade to fail as the restore needs to drop that database. While it's
> true that extensions should ideally handle this themselves, wouldn't
> it be safer if we could avoid loading them at all during the binary
> upgrade mode?

Well, the library might be required to load the data.  Why would we
avoid it with no known error reports?

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Do not let urgent matters crowd out time for investment in the future.



pgsql-hackers by date:

Previous
From: Japin Li
Date:
Subject: Re: Fix outdated comments for IndexInfo
Next
From: Tom Lane
Date:
Subject: Re: Should shared_preload_libraries be loaded during binary upgrade?