Commit graph

5 commits

Author SHA1 Message Date
Daniel Golle
c709189de4
postgresql: allow populating required DB using script
Extend UCI mechanics to allow pre-populating a newly created
database by executing SQL statements from a scripts file.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-07-02 19:57:31 +02:00
Daniel Golle
ce46b633e2 postgresql: properly stop service
postmaster always detaches from procd, work around by using
pg_ctl to stop the server.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-10-11 01:03:27 +02:00
Daniel Golle
63120640e6 postgresql: update to version 9.5.4 and major rework
* convert package build to use host-build for ecpg, pg_config and zic
 * introduce /lib/functions/postgresql.sh to be used by packages
   requiring a postgres database to exist as well as postgres' init
 * no longer require shadow-su, patch pg_ctl to setuid() ifself instead
 * auto-create database directory if there is enough free space
 * auto-create databases configured in UCI
 * remove some dead uci config options
 * grab maintainership

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-09-23 20:03:05 +02:00
Daniel Golle
714a408a6e postgresql: update source to 9.4.4 and refresh scripts
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-08-12 17:30:20 +02:00
Jo-Philipp Wich
022ce86177 postgresql: import from oldpackages, add myself as maintainer, add license information, update to v9.0.17
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-07-02 12:42:33 +02:00