2014-12-18  Pavel Raiskup  <praiskup@redhat.com>

	Release 1.0

	* NEWS: Mention legacy scripts.
	* configure.ac (AC_INIT): Remove beta stamp.

2014-12-01  Pavel Raiskup  <praiskup@redhat.com>

	configury: remove redundant nodist_* prefix

	.. from targets which are not distributed anyway.  Thanks jmlich
	to forcing me to catch that mistake.

	* Makefile.am: Remove all nodist_ prefixes.

2014-12-01  Jozef Mlich  <imlich@fit.vutbr.cz>

	systemd: added systemd's legacy scripts

	* 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.

2014-11-15  Jozef Mlich  <imlich@fit.vutbr.cz>

	sysvinit: rhel6 /etc/init.d to /etc/rc.d/init.d

	* Makefile.am: s|init.d|rc.d/init.d|.

2014-11-14  Pavel Raiskup  <praiskup@redhat.com>

	sysvinit: install init script without '.init' suffix

	* Makefile.am: Make the target postgresql, not postgresql.init.

2014-11-13  Jozef Mlích  <jmlich@redhat.com>

	init.d: move init script to sysconfdir

	* Makefile.am: s|$(prefix)/etc/init.d|$(sysconfdir)/init.d|.

2014-10-02  Pavel Raiskup  <praiskup@redhat.com>

	sysvinit: generate init file when needed

	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.

2014-10-02  Pavel Raiskup  <praiskup@redhat.com>

	buildsystem: better handle distro-README

	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.

2014-09-23  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-check-db-dir: fix drop-in directory detection

	Backpatch to REL_001.

	* postgresql-check-db-dir.in: Fix drop-in directory to contain
	the 'service' string.

2014-09-23  Pavel Raiskup  <praiskup@redhat.com>

	tests: add basic bash syntax check

	* tests/testsuite.at: New test.
	* configure.ac (AC_INIT): Bump version.  Use only major-minor
	versions.

2014-09-22  Pavel Raiskup  <praiskup@redhat.com>

	release 1.0.0

	* NEWS: Adjust.
	* configure.ac: Likewise.

2014-09-22  Pavel Raiskup  <praiskup@redhat.com>

	docs: fix typo in postgresql-setup --help

	* postgresql-setup.in (USAGE_STRING): Remove brackets around
	mandatory option argument.

2014-09-22  Pavel Raiskup  <praiskup@redhat.com>

	configury: PREV_POSTGRES_BIN may be unset

	* configure.ac: Postpone PREV_POSTGRES_BIN check after
	the PREVPGENGINE check.

2014-09-19  Pavel Raiskup  <praiskup@redhat.com>

	release 0.9.2

	* configure.ac: Bump version.

2014-09-19  Pavel Raiskup  <praiskup@redhat.com>

	README.rpm-dist: document multiple-postmaster howto

	* README.rpm-dist.in: Adjust according to latest changes.

2014-09-19  Pavel Raiskup  <praiskup@redhat.com>

	docs: adjust --help output and warning hints

	* postgresql-check-db-dir.in: Just fix typos.
	* postgresql-setup.in: Reorganize --help.
	* TODO: Adjust after some time.

2014-09-19  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-setup: opt --new-systemd-unit, --datadir

	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.

2014-09-18  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-setup: detect systemd's NeedDaemonReload

	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.

2014-09-18  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-setup: leftovers, user feeling

	* 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.

2014-09-18  Pavel Raiskup  <praiskup@redhat.com>

	configure: show the configuration results once done

	* configure.ac: Print the basic info about configured
	postgresql-setup project.

2014-09-18  Pavel Raiskup  <praiskup@redhat.com>

	configury: fix make distcheck errors

	* 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.

2014-09-18  Pavel Raiskup  <praiskup@redhat.com>

	configury: generated ChangeLog by make dist

	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.

2014-09-18  Pavel Raiskup  <praiskup@redhat.com>

	configury: some steps making the macros more consistent

2014-09-17  Pavel Raiskup  <praiskup@redhat.com>

	man: generate manual page more carefully

	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.

2014-09-17  Pavel Raiskup  <praiskup@redhat.com>

	testsuite: configury & and add first test-case

	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.

2014-09-16  Pavel Raiskup  <praiskup@redhat.com>

	sysconfig: remove remaining files

2014-09-16  Pavel Raiskup  <praiskup@redhat.com>

	NEWS: mention move from /etc/postgresql/* configuration

	(and bump version to 0.9.2~beta)

2014-09-16  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-check-db-dir: migrate from /etc/postgresql/*

	README.rpmd-dist: template fixing

2014-09-16  Pavel Raiskup  <praiskup@redhat.com>

	postgresql.service: un-link with postgresql@.service

	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.

2014-09-16  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-setup: don't expect /etc/postgresql/* exists

	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.

2014-07-04  Pavel Raiskup  <praiskup@redhat.com>

	NEWS: previous commit idea by hhorak, thanks

2014-07-04  Pavel Raiskup  <praiskup@redhat.com>

	service: avoid cryptic failure with old config

	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.

2014-07-03  Pavel Raiskup  <praiskup@redhat.com>

	postgresql@.service: install this via install-data-hook

	.. instead of install-exec-hook, which caused race conditions due
	to parallelized run of make.

2014-07-03  Pavel Raiskup  <praiskup@redhat.com>

	README.rpm-dist: trim trailing white-spaces

2014-07-03  Pavel Raiskup  <praiskup@redhat.com>

	README.rpm-dist: document recent changes

	Follow the new processes - different options of postgresql-setup,
	instantiable unit files.  Simplify the documentation thanks to
	the template.

2014-07-03  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-setup: --upgrade std{out,err} adjusted

	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

2014-07-03  Pavel Raiskup  <praiskup@redhat.com>

	release: 0.9.1

	Merge changes with ChangeLog & NEWS files.  Bump version.

2014-07-03  Pavel Raiskup  <praiskup@redhat.com>

	upgrade/initdb logs: diverge among service names

	Generate separate log file for each service.  Also, don't
	configure with INITDB_LOG or UPGRADE_LOG but rather with
	POSTGRES_HOME.

2014-07-03  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-setup: expect '--port 5432' implictly

	.. 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.

2014-07-02  Pavel Raiskup  <praiskup@redhat.com>

	configure.ac: fix for PG_CTL_BIN & README_DIST

2014-07-01  Pavel Raiskup  <praiskup@redhat.com>

	postgresql.service.in: use %N, not %p

	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.

2014-07-01  Pavel Raiskup  <praiskup@redhat.com>

	configury: install postgresql@.service

	.. 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.

2014-07-01  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-ctl: use detected PG_CTL_BIN

2014-07-01  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-check-db-dir generated also

	Also generate files using sed as is suggested by autoconf manual
	(and the autoconf project does so internally).

2014-07-01  Pavel Raiskup  <praiskup@redhat.com>

	Makefile.am: more readable file generation

	generate also README.rpm-dist

	Generate postgresql.service and configuration file

2014-07-01  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-ctl, DISTSUFF: introduce

	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.

2014-07-01  Pavel Raiskup  <praiskup@redhat.com>

	docs: update option documentation and generate man

2014-07-01  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-setup: code movement

	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.

2014-07-01  Pavel Raiskup  <praiskup@redhat.com>

	THANKS: adjust Dietmar Kling

	See rhbz#1015431, good idea.

2014-07-01  Pavel Raiskup  <praiskup@redhat.com>

	configury: make it non-foreign

	This makes us to do some additional documentation, but it should
	not be so hard.

2014-07-01  Pavel Raiskup  <praiskup@redhat.com>

	configury: prepare for autotools

	postgresql-setup: prepare for sysconfig

2014-07-01  Pavel Raiskup  <praiskup@redhat.com>

	Separate postgresql-setup from postgresql

	From now on, postgresql-setup is developed separately from
	Fedora's PostgreSQL RPM package.

2014-06-25  Pavel Raiskup  <praiskup@redhat.com>

	spec: move html documentation to postgresql-docs

	Resolves: #1086420
	Version: 9.3.4-8

2014-06-19  Pavel Raiskup  <praiskup@redhat.com>

	service: OOM handling set compatibly with 9.5+

	Thanks Tom.

	Resolves: #1110969
	Version: 9.3.4-7

2014-05-14  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-setup: work even if $PATH is unset or empty

	.. 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

2014-01-23  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-setup: typos

	Version: 9.3.2-7

2014-01-21  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-setup: add PGSETUP_PGUPGRADE_OPTIONS

	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

2014-01-20  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-setup: handle --version option earlier

	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

2014-01-20  Pavel Raiskup  <praiskup@redhat.com>

	docu: document postgresql-setup in --help a little

	Also automatically generate manual page from the help output.

	Version: 9.3.2-4

2014-01-13  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-setup: do not pretend 'sh' compatibility

	At least the way the script is prepared for translation is adopted
	from bash.

	Version: 9.3.2-4

2014-01-13  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-setup: add $PGSETUP_INITDB_OPTIONS

	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

2014-01-13  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-setup: do not stop server when it can't be started

	Version: 9.3.2-4

2013-12-16  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-setup: lint

	Rather use the --ignore-space-change when showing differences.

	Version: 9.3.2-2

2013-12-16  Jozef Mlich  <jmlich@redhat.com>

	postgresql-setup: ignore misconfigure pg_hba.conf when upgrading

	Resolves: #1040364
	Version: 9.3.2-2

2013-09-10  Pavel Raiskup  <praiskup@redhat.com>

	rebase: upgrade to version 9.3.0

	Version: 9.3.0-1

2013-06-20  Pavel Raiskup  <praiskup@redhat.com>

	README.rpm-dist: point user to install postgresql-server

	Resolves: #969050
	Version: 9.2.4-3

2013-06-11  Pavel Raiskup  <praiskup@redhat.com>

	postgresql-setup: fail earlier during bad $PGDATA dir creation

	Related: #972425
	Version: 9.2.4-2

2013-01-04  Tom Lane  <tgl@redhat.com>

	Fix bugs 891531 and 891547
