summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* postgresql-setup: detect systemd's NeedDaemonReloadprep-1Pavel Raiskup2014-09-182-0/+13
| | | | | | | | | | | 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: leftovers, user feelingPavel Raiskup2014-09-182-7/+14
| | | | | | | | * 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: show the configuration results once donePavel Raiskup2014-09-181-1/+14
| | | | | * configure.ac: Print the basic info about configured postgresql-setup project.
* configury: fix make distcheck errorsPavel Raiskup2014-09-184-6/+9
| | | | | | | | | | | | | * 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.
* configury: generated ChangeLog by make distPavel Raiskup2014-09-183-55/+20
| | | | | | | | 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.
* configury: some steps making the macros more consistentPavel Raiskup2014-09-182-82/+68
|
* man: generate manual page more carefullyPavel Raiskup2014-09-171-5/+24
| | | | | | | 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.
* testsuite: configury & and add first test-casePavel Raiskup2014-09-176-54/+145
| | | | | | | 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.
* sysconfig: remove remaining filesPavel Raiskup2014-09-162-14/+1
|
* NEWS: mention move from /etc/postgresql/* configurationPavel Raiskup2014-09-162-2/+8
| | | | (and bump version to 0.9.2~beta)
* postgresql-check-db-dir: migrate from /etc/postgresql/*Pavel Raiskup2014-09-162-9/+13
|
* README.rpmd-dist: template fixingPavel Raiskup2014-09-164-72/+86
|
* postgresql.service: un-link with postgresql@.servicePavel Raiskup2014-09-162-8/+24
| | | | | | | | 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.
* postgresql-setup: don't expect /etc/postgresql/* existsPavel Raiskup2014-09-162-47/+63
| | | | | | | | 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.
* NEWS: previous commit idea by hhorak, thanksPavel Raiskup2014-07-041-1/+1
|
* service: avoid cryptic failure with old configPavel Raiskup2014-07-043-5/+31
| | | | | | | | | | | | | | | 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.
* postgresql@.service: install this via install-data-hookPavel Raiskup2014-07-031-1/+1
| | | | | .. instead of install-exec-hook, which caused race conditions due to parallelized run of make.
* README.rpm-dist: trim trailing white-spacesPavel Raiskup2014-07-031-16/+16
|
* README.rpm-dist: document recent changesPavel Raiskup2014-07-033-48/+49
| | | | | | Follow the new processes - different options of postgresql-setup, instantiable unit files. Simplify the documentation thanks to the template.
* postgresql-setup: --upgrade std{out,err} adjustedPavel Raiskup2014-07-031-12/+8
| | | | | | | | | | | | 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
* release: 0.9.1Pavel Raiskup2014-07-033-4/+44
| | | | Merge changes with ChangeLog & NEWS files. Bump version.
* upgrade/initdb logs: diverge among service namesPavel Raiskup2014-07-033-30/+26
| | | | | | Generate separate log file for each service. Also, don't configure with INITDB_LOG or UPGRADE_LOG but rather with POSTGRES_HOME.
* postgresql-setup: expect '--port 5432' implictlyPavel Raiskup2014-07-032-15/+30
| | | | | | | | .. 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.
* configure.ac: fix for PG_CTL_BIN & README_DISTPavel Raiskup2014-07-021-5/+3
|
* postgresql.service.in: use %N, not %pPavel Raiskup2014-07-011-1/+1
| | | | | | | | 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.
* configury: install postgresql@.servicePavel Raiskup2014-07-011-0/+5
| | | | | | | | | .. 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.
* postgresql-ctl: use detected PG_CTL_BINPavel Raiskup2014-07-013-6/+32
|
* postgresql-check-db-dir generated alsoPavel Raiskup2014-07-016-23/+56
| | | | | Also generate files using sed as is suggested by autoconf manual (and the autoconf project does so internally).
* Makefile.am: more readable file generationPavel Raiskup2014-07-012-11/+13
|
* generate also README.rpm-distPavel Raiskup2014-07-013-3/+16
|
* Generate postgresql.service and configuration filePavel Raiskup2014-07-017-67/+74
|
* postgresql-ctl, DISTSUFF: introducePavel Raiskup2014-07-016-9/+43
| | | | | | | | | | | | 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.
* docs: update option documentation and generate manPavel Raiskup2014-07-016-11/+50
|
* postgresql-setup: code movementPavel Raiskup2014-07-011-224/+235
| | | | | | 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.
* THANKS: adjust Dietmar KlingPavel Raiskup2014-07-011-0/+1
| | | | See rhbz#1015431, good idea.
* configury: make it non-foreignPavel Raiskup2014-07-017-1/+63
| | | | | This makes us to do some additional documentation, but it should not be so hard.
* configury: prepare for autotoolsPavel Raiskup2014-07-014-23/+160
|
* postgresql-setup: prepare for sysconfigPavel Raiskup2014-07-011-89/+299
|
* Separate postgresql-setup from postgresqlPavel Raiskup2014-07-010-0/+0
| | | | | From now on, postgresql-setup is developed separately from Fedora's PostgreSQL RPM package.
* spec: move html documentation to postgresql-docsPavel Raiskup2014-06-251-2/+2
| | | | | Resolves: #1086420 Version: 9.3.4-8
* service: OOM handling set compatibly with 9.5+Pavel Raiskup2014-06-191-0/+4
| | | | | | | Thanks Tom. Resolves: #1110969 Version: 9.3.4-7
* postgresql-setup: work even if $PATH is unset or emptyPavel Raiskup2014-05-141-1/+3
| | | | | | | | | .. 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
* postgresql-setup: typosPavel Raiskup2014-01-231-6/+7
| | | | Version: 9.3.2-7
* postgresql-setup: add PGSETUP_PGUPGRADE_OPTIONSPavel Raiskup2014-01-211-7/+13
| | | | | | | | 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
* postgresql-setup: handle --version option earlierPavel Raiskup2014-01-201-5/+13
| | | | | | | | | 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
* docu: document postgresql-setup in --help a littlePavel Raiskup2014-01-201-1/+35
| | | | | | Also automatically generate manual page from the help output. Version: 9.3.2-4
* postgresql-setup: do not pretend 'sh' compatibilityPavel Raiskup2014-01-131-1/+1
| | | | | | | At least the way the script is prepared for translation is adopted from bash. Version: 9.3.2-4
* postgresql-setup: add $PGSETUP_INITDB_OPTIONSPavel Raiskup2014-01-131-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
* postgresql-setup: do not stop server when it can't be startedPavel Raiskup2014-01-131-4/+0
| | | | Version: 9.3.2-4
* postgresql-setup: lintPavel Raiskup2013-12-161-108/+97
| | | | | | Rather use the --ignore-space-change when showing differences. Version: 9.3.2-2