public inbox for [email protected]
help / color / mirror / Atom feedFrom: Matthias Apitz <[email protected]>
To: Ian Lawrence Barwick <[email protected]>
Cc: [email protected]
Subject: Re: mystery with postgresql.auto.conf
Date: Wed, 10 Apr 2024 14:40:37 +0200
Message-ID: <ZhaIxarPqJXXwq4Q@pureos> (raw)
In-Reply-To: <CAB8KJ=jtwkQ+a8UB7gtnMbvQeEWfgGmA9iOGdKFR9s11OSaBMg@mail.gmail.com>
References: <ZhZzfLUm2QtqOURc@pureos>
<CAB8KJ=jtwkQ+a8UB7gtnMbvQeEWfgGmA9iOGdKFR9s11OSaBMg@mail.gmail.com>
El día miércoles, abril 10, 2024 a las 09:08:56 +0900, Ian Lawrence Barwick escribió:
> > # cat postgresql151/data/postgresql.auto.conf
> > # Do not edit this file manually!
> > # It will be overwritten by the ALTER SYSTEM command.
> > shared_preload_libraries = 'pg_tde'
> >
> > How is this possible? I only used in the 16.2 server the SQL commands:
> >
> > sisis=# CREATE EXTENSION pg_tde;
> > sisis=# SELECT pg_tde_add_key_provider_file('file','/tmp/pgkeyring');
> > sisis=# SELECT pg_tde_set_master_key('my-master-key','file');
>
> The simplest explanation is that you (or someone), when configuring pg_tde,
> accidentally executed (as per the instructions [*]):
>
> ALTER SYSTEM SET shared_preload_libraries = 'pg_tde';
>
> in the 15.1 instance, rather than the 16.2 instance. This will have
> resulted in the
> entry in the 15.1 postgresql.auto.conf.
Here are my notes from the testing pg_tde:
Install sisis-pap v73 and create a PostgreSQL 16.2 cluster the
usual way, load a database dump into it (all done on
srap21dxr1.dev.oclc.org)
I followed exactly https://github.com/Percona-Lab/pg_tde?tab=readme-ov-file
psql -Usisis sisis
psql (16.2)
Type "help" for help.
sisis=# ALTER SYSTEM SET shared_preload_libraries = 'pg_tde';
(PostgreSQL restart)
...
The notes have been done by cut&paste into a text file. The psql
was fired up against the 16.2 server as it says above. And we also
have never two servers up at the same time.
Maybe later I did it accidently against the 15.1 server from the psql
history. I just tested it in the 15.1 server: it does not give any
error:
psql -Usisis sisis
psql (15.1)
Type "help" for help.
sisis=# ALTER SYSTEM SET shared_preload_libraries = 'pg_tde';
ALTER SYSTEM
sisis=#
and the file gets modified :-(
Why it does not give an error because the shared lib isn't there?
matthias
--
Matthias Apitz, ✉ [email protected], http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
view thread (6+ messages) latest in thread
reply
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: mystery with postgresql.auto.conf
In-Reply-To: <ZhaIxarPqJXXwq4Q@pureos>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox