Package: postgresql-common Version: 215 Severity: normal
Hi, i do have to occasionally copy a production cluster to a development cluster. In that setup, i copy /var/lib/postgresql/12/prod to /var/lib/postgresql/12/dev and also /etc/postgresql/12/prod/* to /var/lib/postgresql/12/dev (the datadir, on purpose). pg_createcluster shows its kindness (or rather, the kindness of the debian maintainer) by copying the configuration files to /etc/postgresql/12/dev. But, and i believe it's a bug, it does not copy the files i've put in /var/lib/postgresql/12/dev/conf.d It would be nice if it did ! Jérémy -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 5.6.0-1-amd64 (SMP w/4 CPU cores) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE=fr_FR.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages postgresql-common depends on: ii adduser 3.118 ii debconf [debconf-2.0] 1.5.74 ii lsb-base 11.1.0 ii perl 5.30.0-10 ii postgresql-client-common 215 ii ssl-cert 1.0.39 ii ucf 3.0039 Versions of packages postgresql-common recommends: ii e2fsprogs 1.45.6-1 ii logrotate 3.16.0-3 Versions of packages postgresql-common suggests: ii libjson-perl 4.02000-2 -- Configuration Files: /etc/apt/apt.conf.d/01autoremove-postgresql changed: // NO NOT EDIT! // File maintained by /usr/share/postgresql-common/pg_updateaptconfig. // // Mark all PostgreSQL packages as NeverAutoRemove for which PostgreSQL // clusters exist. This is especially important when the "postgresql" meta // package changes its dependencies to a new version, which might otherwise // trigger the old postgresql-NN package to be automatically removed, rendering // the old database cluster inaccessible. APT { NeverAutoRemove { "^postgresql.*-12"; }; }; /etc/postgresql-common/createcluster.conf changed: ssl = on cluster_name = '%v/%c' stats_temp_directory = '/var/run/postgresql/%v-%c.pg_stat_tmp' log_line_prefix = '%%m [%%p] %%q%%u@%%d ' add_include_dir = 'conf.d' include_dir '/etc/postgresql-common/createcluster.d' -- debconf information: * postgresql-common/obsolete-major: postgresql-common/catversion-bump: postgresql-common/ssl: true