| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
* Makefile.am: Choose better day for ChangeLog begin.
|
|
|
|
|
|
|
|
| |
Issue detected by './configure --with-sysvinit && make check'.
* postgresql.init.in ($PGDOCDIR): Wipe it out.
($README_DIST): Use on appropriate places.
* Makefile.am: Add TODO relevant to this commit.
|
|
|
|
|
|
|
|
|
|
|
|
| |
We use 'su' only for 'postgres' user purposes. So have one,
configure-time-proven command. Also, in the previous commit I
forgot to fix sysvinit file.
* configure.ac (SU_POSTGRES): New variable.
* postgresql-setup.in ($SU_POSTGRES): Use detected @SU_POSTGRES@.
($SU, $SU_L_POSTGRES): Avoid usage of those.
* postgresql.init.in: Likewise.
* .gitignore: Remove typoed ignore.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
Note: Revealed thanks to automake 1.5 rebase.
* configure.ac ($c_s): Use top_builddir.
* tests/Makefile.am (CHECK_DEPS): Use top_builddir.
|
|
|
|
| |
* Makefile.am (GL_GEN): Test the .git exists and exit if not.
|
|
|
|
|
| |
* NEWS: Mention previous commit.
* configure.ac: s/lt/le/.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The --user option still works but we should be rather careful for
the future. Master only.
References:
http://www.postgresql.org/docs/9.4/static/release-9-4.html
* configure.ac (AC_INIT): Bump to 3.0~dev version.
(PG_UPGRADE_BIN_USER_OPT): New variable carrying the right format
of pg_upgrade's username option.
* postgresql-setup.in (upgrade): Use @PG_UPGRADE_BIN_USER_OPT@.
|
|
|
|
|
| |
* NEWS: Mention legacy scripts.
* configure.ac (AC_INIT): Remove beta stamp.
|
|
|
|
|
|
|
| |
.. from targets which are not distributed anyway. Thanks jmlich
to forcing me to catch that mistake.
* Makefile.am: Remove all nodist_ prefixes.
|
|
|
|
|
|
|
|
|
| |
* Makefile.am: (systemdlegacyscriptsdir)
(nodist_systemdlegacyscrupts_DATA): New variables.
(initdb, upgrade): New targets.
* initdb.in: New legacy script template.
* upgrade.in: Likewise.
* .gitignore: Ignore newly generated scripts.
|
|
|
|
| |
* Makefile.am: s|init.d|rc.d/init.d|.
|
|
|
|
| |
* Makefile.am: Make the target postgresql, not postgresql.init.
|
|
|
|
| |
* Makefile.am: s|$(prefix)/etc/init.d|$(sysconfdir)/init.d|.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
Avoid detecting README.rpm-dist as we generate this file and we
know the best where the file is.
* configure.ac: Avoid detecting README path. Also substitute new
variable README_DIST_BASENAME.
* Makefile.am: Use the new $(README_DIST_BASENAME).
* postgres-check-db-dir.in: Use README_DIST instead of PGDOCDIR.
|
|
|
|
|
|
|
| |
Backpatch to REL_001.
* postgresql-check-db-dir.in: Fix drop-in directory to contain
the 'service' string.
|
|
|
|
|
|
| |
* tests/testsuite.at: New test.
* configure.ac (AC_INIT): Bump version. Use only major-minor
versions.
|
|
|
|
|
| |
* NEWS: Adjust.
* configure.ac: Likewise.
|
|
|
|
|
| |
* postgresql-setup.in (USAGE_STRING): Remove brackets around
mandatory option argument.
|
|
|
|
|
| |
* configure.ac: Postpone PREV_POSTGRES_BIN check after
the PREVPGENGINE check.
|
|
|
|
| |
* configure.ac: Bump version.
|
|
|
|
| |
* README.rpm-dist.in: Adjust according to latest changes.
|
|
|
|
|
|
| |
* postgresql-check-db-dir.in: Just fix typos.
* postgresql-setup.in: Reorganize --help.
* TODO: Adjust after some time.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
* configure.ac: Print the basic info about configured
postgresql-setup project.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Makefile.am (EXTRA_DIST): Always use $(srcdir) when referencing
wildcards.
(install-data-hook): Return true even for non-root make install.
(DISTCLEANFILES): Mention ChangeLog.
* configure.ac (TEST_GEN_FILES_LIST): Only use the basename.
* tests/Makefile.am (CHECK_DEPS): Fix reference to
TEST_GEN_FILES_LIST.
(DISTCLEANFILES): Mention also atconfig and atlocal.
* tests/testsuite.at: Fix reference to $TEST_GEN_FILES_LIST, use
always $abs_top_builddir when referencing built files.
|
|
|
|
|
|
|
|
| |
Use the gitlog-to-changelog binary, if exists on the system.
* Makefile.am (dist-hook): Add rules for ChangeLog.
* ChangeLog: Remove file.
* .gitignore: Ignore .gitignore.
|
| |
|
|
|
|
|
|
|
| |
In general, we do not want to distribute help2man binary (to avoid
license confusions, etc.). So if the manual needs to be
re-generated, try to use help2man on system or keep warning about
its non-existence.
|
|
|
|
|
|
|
| |
This required little bit of generalization so I moved the SED_CALL
into configure.ac to have it available for tests/Makefile.am also.
The first testsuite just checks that no un-expanded @pattern@
exists in generated files.
|
| |
|
|
|
|
| |
(and bump version to 0.9.2~beta)
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
We need to create both files separately as (a) the
'postgresql.service' can not .include 'postgresql@.service' for
some reason, /usr/lib/ drop-in breaks things (rhbz#1141824) and
we want to have PGDATA unset for postgresql@.service, unlike the
postgresql.service file.
|
|
|
|
|
|
|
|
| |
That concept was against systemd intentions. From now we
should stop using .include statement in service files and
encourage people using the systemd's drop-in feature. That
complicates things a little, at least until the rhbz#1139148
is not resolved somehow.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
.. instead of install-exec-hook, which caused race conditions due
to parallelized run of make.
|
| |
|
|
|
|
|
|
| |
Follow the new processes - different options of postgresql-setup,
instantiable unit files. Simplify the documentation thanks to
the template.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use the echo wrappers also in --upgrade. Previously, e.g. when
PGDATA pointed to directory without SELinux label, the output from
postgresql-setup --upgrade was broken by warnings from restorecon:
# postgresql-setup --upgrade --service postgresql@SUFFIX
Upgrading database: /sbin/restorecon: Warning no default label
for /tmp/data
/sbin/restorecon: Warning no default label for /tmp/data/pg_log
OK
|
|
|
|
| |
Merge changes with ChangeLog & NEWS files. Bump version.
|
|
|
|
|
|
| |
Generate separate log file for each service. Also, don't
configure with INITDB_LOG or UPGRADE_LOG but rather with
POSTGRES_HOME.
|
|
|
|
|
|
|
|
| |
.. only when '--unit=postgresql'. When user specifies
--unit=postgresql@unitname, the --port is still required.
Also, don't adjust the 'port = ' configuration in postgresql.conf
when not necessary.
|
| |
|
|
|
|
|
|
|
|
| |
The %N expands into postgresql@PATTERN when you run
systemctl start postgresql@PATTERN.service. The %p expanded only
to "postgresql".
Also make the existance of this file optional by dash-prefixing.
|