| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Its now configurable what software collections will be enabled for
pg_upgrade run, in case it is needed (new 'scls' option).
Similarly, pg_upgrade needs to be told to send
unix_socket_directories instead of unix_socket_directory to
PostgreSQL server built for RHEL.
* etc/postgresql-setup/upgrade/postgresql.conf: Add configuration
examples for new options.
* postgresql-setup.in (parse_upgrade_setup): Parse 'scls' and
'redhat_sockets_hack' options.
(upgrade): Adjust the environment of 'su - postgres' call to
pg_upgrade, optionally.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As we do not consider the postgresql@ unit variants (that would
require libexec/initscripts/legacy-actions/postgresql@CONCRETE
symlink to the default legacy-scripts directory), there is no need
to do run-time checks.
* Makefile.am (upgrade): Create from legacy-sysv-script.in
template.
(initdb): Likewise.
(systemdlegacyscripts_DATA): Substitute with ..
(systemdlegacyscripts_SCRIPTS): .. this to have execute bit after
installation.
(GENERATED_FILES): Add _SCRIPTS variant for systemdlegacyscripts.
* legacy-sysv-script.in: New unified template for legacy scripts.
* initdb.in: Remove.
* upgrade.in: Likewise.
* NEWS: Document.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The setup script was reported to not work if user 'postgres' has
/sbin/nologin in /etc/passwd (explicitly set by administrator).
This configuration does not seem to be terribly useful but there
is no need to fail at all.
Resolves: rhbz#1122143
* postgresql-setup.in ($SU_L_POSTGRES): New wrapping variable,
using '-s /bin/sh' to bypass /sbin/nologin. This option should be
supported both by 'su' and 'runuser'.
* NEWS: Document.
|
|
|
|
|
| |
* NEWS: Mention previous commit.
* configure.ac: s/lt/le/.
|
|
|
|
|
| |
* NEWS: Mention legacy scripts.
* configure.ac (AC_INIT): Remove beta stamp.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
From now, if ./configure --with-sysvinit is done, we install init
script and do not install systemd files. Original patch written
by Jozef MlĂch (jmlich@redhat.com).
* Makefile.am (initscriptsdir, nodist_initscripts_DATA): New
variables. New postgresql.init target.
* configure.ac: Add --with-sysvinit option.
* postgresql.init.in: New sysvinit template.
* .gitignore: Mention postgresql.init.
* NEWS: Document.
|
|
|
|
|
| |
* NEWS: Adjust.
* configure.ac: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
From now, admin may run single command to instantiate secondary
PostgreSQL server.
* postgresql-setup.in: Reorganize a little to avoid processing
of port, datadir, etc. on different places. Process new options.
Also make some warnings more clear.
* postgresql-setup.in (warn_q, info_q): New echo wrappers.
(generate_systemd_dropin): New function.
(USAGE_STRING): Document new options.
* NEWS: Document changes.
|
|
|
|
|
|
|
|
|
|
|
| |
Because we rely on parsing of `systemctl show -p` outuput heavily,
we need to detect whether the service file or some dropin did not
change (or was not added). So from now we rather instruct admin
to do daemon-reload when something changed..
* postgresql-setup.in: Detect the NeedDaemonReload and warn if
yes.
* NEWS: Document.
|
|
|
|
|
|
|
|
| |
* postgresql-setup.in (USAGE_STRING): Mention --port option.
(initdb): Mention in info output the non-standard port, when used.
* postgresql-setup.in: Do not throw the default-port message
always, remved remaining sysconfig leftover.
* NEWS: Mention that env files are now supported.
|
|
|
|
| |
(and bump version to 0.9.2~beta)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If user removes currently provided /etc/postgresql/postgresql
configuration file, PGDATA env variable is not set. The
`systemctl start postgresql` would fail similarly to
`systemctl start postgresql@NOTCONFIGURED` when the configuration
file was not created yet with cryptic message
"Usage: ... "
Stop this behavior rather explicitly with proper error in
check-db-dir script.
Warn also user in similar fashion that the configuration should be
adjusted in case the PGDATA was set directly in service file.
|
|
|
|
|
|
| |
Follow the new processes - different options of postgresql-setup,
instantiable unit files. Simplify the documentation thanks to
the template.
|
|
|
|
| |
Merge changes with ChangeLog & NEWS files. Bump version.
|
|
This makes us to do some additional documentation, but it should
not be so hard.
|