| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
.. as a hardlink to postgresql.service. This allows us to
instantiate postgresql@PATTERN units which will be easily
configurable in /etc/postgresql/postgresql@PATTERN conf file.
We may install separate service file with '.include' statement but
that does not seem to be necessary ATM.
|
| |
|
|
|
|
|
| |
Also generate files using sed as is suggested by autoconf manual
(and the autoconf project does so internally).
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
We need postgresql-ctl for to keep backward compatibility with
clients setting "PGPORT" directly in service file.
DISTSUFF variable (which is read by ./configure) may be used to
generated namespaced binary names -- e.g. DISTSUFF=93 results in
postgresql93-setup is generated instead of postgresql-setup.
This commit also adjusts autotools build system to not generate
scripts by ./configure, but rather by make.
|
| |
|
|
|
|
|
|
| |
This commit just moves the function at the top of
postgresqk.setup.in file. Sorry for breaking history a little,
juse "git blame -C" for analysing.
|
|
|
|
| |
See rhbz#1015431, good idea.
|
|
|
|
|
| |
This makes us to do some additional documentation, but it should
not be so hard.
|
| |
|
| |
|
|
|
|
|
| |
From now on, postgresql-setup is developed separately from
Fedora's PostgreSQL RPM package.
|
|
|
|
|
| |
Resolves: #1086420
Version: 9.3.4-8
|
|
|
|
|
|
|
| |
Thanks Tom.
Resolves: #1110969
Version: 9.3.4-7
|
|
|
|
|
|
|
|
|
| |
.. by setting $PATH to default value. Also check for command
existence by 'command' built-in instead of checking for file
existence.
Version: 9.3.4-2
Resolves: #1097317
|
|
|
|
| |
Version: 9.3.2-7
|
|
|
|
|
|
|
|
| |
This allows user to use something like
PGSETUP_PGUPGRADE_OPTIONS="-o '-B 5MB'" to work-around badly set
kernel.shmax value.
Version: 9.3.2-6
|
|
|
|
|
|
|
|
|
| |
This generated the manual page badly before as the output of
--version option depended on system's postgresql.service (not
available at a build time). So handle options rather at the
beginning of the script.
Version: 9.3.2-5
|
|
|
|
|
|
| |
Also automatically generate manual page from the help output.
Version: 9.3.2-4
|
|
|
|
|
|
|
| |
At least the way the script is prepared for translation is adopted
from bash.
Version: 9.3.2-4
|
|
|
|
|
|
|
|
|
| |
Users may now specify by this variable parameters passed to initdb
run. See `man initdb(1)`. This may help if user gets stacked
with bug #1007802.
Related: #1007802
Version: 9.3.2-4
|
|
|
|
| |
Version: 9.3.2-4
|
|
|
|
|
|
| |
Rather use the --ignore-space-change when showing differences.
Version: 9.3.2-2
|