From: Julien Rouhaud <rjuju123@gmail.com>
To: Marian Pompura <marian.pompura@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: PostgreSQL extensions during switchover
Date: Mon, 14 Feb 2022 18:27:15 +0800
Message-ID: <20220214102715.6ozlrp52ciukus4f@jrouhaud> (raw)
In-Reply-To: <CAKL=_sjUR6F3DUd9xGD6DNfEtVx=4H8YHGupztyiMVXTFQ3_qw@mail.gmail.com>
References: <CAKL=_sjUR6F3DUd9xGD6DNfEtVx=4H8YHGupztyiMVXTFQ3_qw@mail.gmail.com>
Hi,
On Mon, Feb 14, 2022 at 11:16:24AM +0100, Marian Pompura wrote:
>
> Let's say:
>
> postgresql.conf configuration file on primary server:
>
> shared_preload_libraries = 'pg_stat_statements,xxxx'
>
> *Contrib package is installed on primary and replication server too.
>
> postgresql.conf configuratioj file on replication server
>
> shared_preload_libraries = '' is empty on replication server.
>
> In case some scenario which will include switchover or failover to
> replication server.
> How it will act ? Switchover will be successful but new primary node will
> fail at startup process because shared_preload_libraries is empty but
> extensions are created in database? Or it's better to pre-configure same
> extensions into shared_preload_libraries parameter on replication server?
Having some extension installed without the required shared_preload_libraries
setting won't prevent postgres from starting. The only thing that won't work
is using at least part of what the extension created on the database.
So the question is whether you want to make sure you have the same feature
available after a switchover, and if you do then yes you should make sure that
you have a consistent configuration across all your nodes.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: rjuju123@gmail.com, marian.pompura@gmail.com
Subject: Re: PostgreSQL extensions during switchover
In-Reply-To: <20220214102715.6ozlrp52ciukus4f@jrouhaud>
References: <CAKL=_sjUR6F3DUd9xGD6DNfEtVx=4H8YHGupztyiMVXTFQ3_qw@mail.gmail.com> <20220214102715.6ozlrp52ciukus4f@jrouhaud>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox