Starting from Fedora 22 (rawhide now), the downstream files postgresql-setup, postgresql.service, README.rpm-dist and some others will be packaged from separate tarball. This results in non-trivial change in spec file and it is worth having special bug for this change. Possibly, some discussions or Q/A may be done here. Maintaining of those files is closely tight together (among all rpm packages distributing PostgreSQL in RHEL/Fedora/RHSCL/PGDG) and fixing/enhancing of all those files makes unnecessary traffic in Fedora's master git branch. As the new postgresql-setup generating is now done separately, Fedora users (and mainly developers of this script) may now easily run deafult Fedora postgresql-* packages and install/test git version of postgresql-setup (and relatives) via: $ ./configure --prefix=/usr $ make && make check $ sudo make install This should be more comfortable. Also, other systemd-using distributions may use this code more easily which should result in better stability.
The (temporary) git repository and release directory: https://fedorapeople.org/cgit/praiskup/public_git/postgresql-setup.git/ https://praiskup.fedorapeople.org/proj/postgresql-setup/
http://pkgs.fedoraproject.org/cgit/postgresql.git/commit/?id=c88f76d54084d
Some changes which come with this bug: * when changing the default configuration, users should not use .include statement in /etc/systemd/system/postgresql.service but rather use systemd drop-in feature (documented directly in postgresql.service file) * we now distribute postgresql.service (the default, pre-configured instance of PostgreSQL server) and postgresql@.service, which allows users create another instance of PostgreSQL very easily by: postgresql-setup --initdb --unit=postgresql@secondary --new-systemd-unit \ --port XXXX --datadir /var/lib/pgsql/data-secondary (documented in README.rpm-dist) * postgresql-setup now recognizes now what is set by EnvironmentFile=