My production system uses Postgres 9.3 and Perl; I have a test Postgres 10.3 database that I'd like to run the same Perl scripts against to make sure that everything works.
I'm using Perl DBI
and DBD::Pg
to connect to the databases. I'm logging client and server versions in the scripts so that I always know what's being used.
On the production system, my log will say something like:
lib_version=90310, server_version=90310
When I run the same script against the test version, it says:
lib_version=90310, server_version=100300
How do I get DBD::Pg
to use the Postgres 10 libraries? I remember having to configure DBD::Pg
with some Postgres libraries when I first installed it; can I have multiple configurations for DBD::Pg
? I'm using Perlbrew, so I could use that to set up a different version of Perl and then reinstall all of my modules to the different version; that would be a pain, but it's possible.
Edited: The point here is that I want to test a pure Postgres 10.3 environment without messing up the test system that needs to be in sync with the production Postgres 9.3 system. If it's not possible to have one machine use different clients, then I will have to set up a new test system.