Just a few hours I blogged about some new cool features in
pgenv config migrate
pgenv, I completed the work about configuration in one place.
pgenvwill keep all configuration files into a single directory, named
config. This is useful because it allows you to backup and/or migrate all the configuration from one machine to another easily.
But it’s not all: since the configuration is now under a single directory, the single configuration file name has changed. Before this release, a configuration file was named like
.pgenv.PGVERSION.conf, with the
.pgenvprefix that both made the file hidden and stated to which application such file belongs to. Since the configuration files are now into a subdirectory, the prefix has been dropped, so that every configuration file is now simply named as
PGVERSION.conf, like for example
And since we like to make things easy, there is a
config migratecommand that helps you move your existing configuration from the old naming scheme to the new one:
% pgenv config migrate Migrated 3 configuration file(s) from previous versions (0 not migrated) Your configuration file(s) are now into [~/git/misc/PostgreSQL/pgenv/config]
Let’s have fun with