<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/libs/postgresql/files, branch master</title>
<subtitle>Mirror of packages feed</subtitle>
<id>https://git.openwrt.org/feed/packages/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/feed/packages/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/'/>
<updated>2025-10-25T05:37:54Z</updated>
<entry>
<title>postgresql: fix fails to start on mounted data directories</title>
<updated>2025-10-25T05:37:54Z</updated>
<author>
<name>Peiying Huang</name>
</author>
<published>2025-08-12T06:12:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=74172f6c54ba8ace36d974d4e1743a4db313f9ee'/>
<id>urn:sha1:74172f6c54ba8ace36d974d4e1743a4db313f9ee</id>
<content type='text'>
This commit resolves a bug where the PostgreSQL service failed to start
during the boot process when its data directory ($pgdata) was on a
partition mounted via `/etc/fstab`.
Because the filesystem is already mounted, no hotplug event is ever
triggered, and the PostgreSQL service mistakenly waits for an event
that will never happen.
This fix adds a check to ensure the script does not skip starting the
service if the data directory is on a mount point.

Signed-off-by: Peiying Huang &lt;eiying0517@gmail.com&gt;
</content>
</entry>
<entry>
<title>postgresql: improve init script</title>
<updated>2021-08-12T02:11:09Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-08-10T23:48:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=f518cfb2502b746b8e392a295e81ff551e2295e0'/>
<id>urn:sha1:f518cfb2502b746b8e392a295e81ff551e2295e0</id>
<content type='text'>
Use newly introduced procd_add_restart_mount_trigger to make sure
postmaster gets started only once PGDATA becomes available.
Relocate socket directory to /var/lib/postgresql to make it possible
to run postgresql inside a ujail.
Use signal for shutdown, so it works nicely with jail.
Allow multiple script in UCI 'config postgres-db' to be a list and
run them in order listed.
User more silent methods to check for db or role existence and make
it easy to create several databases owned by the same user by passing
the same credentials multiple times.
Remove disfunctional reload handler.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>treewide: fix service status command in procd compatible services</title>
<updated>2019-11-18T05:28:57Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2019-09-21T08:53:48Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=8383c19b908c17dce8b5572c171e7937f4310748'/>
<id>urn:sha1:8383c19b908c17dce8b5572c171e7937f4310748</id>
<content type='text'>
Fix breaking change introduced in the main tree with a commit
7519a36774ca ("base-files,procd: add generic service status") where the
old service `status` callback function doesn't work anymore and needs to
be renamed to `status_service`.  This name was chosen for consistency
with start and stop function callbacks, which are using `start_service`
and `stop_service` naming schemes.

While at it, fix whitespace issues in the status_service as well.

Ref: http://lists.infradead.org/pipermail/openwrt-devel/2019-September/019035.html
Reported-by: Dirk Brenken &lt;dev@brenken.org&gt;
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>postgresql: allow populating required DB using script</title>
<updated>2017-07-02T17:57:31Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2017-07-02T17:38:30Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=c709189de4c2e525f1dc07e80fd7055ad63d865b'/>
<id>urn:sha1:c709189de4c2e525f1dc07e80fd7055ad63d865b</id>
<content type='text'>
Extend UCI mechanics to allow pre-populating a newly created
database by executing SQL statements from a scripts file.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>postgresql: properly stop service</title>
<updated>2016-10-10T23:03:27Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2016-09-30T11:55:14Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=ce46b633e24930e72c4f2ab959723d24c6b1e663'/>
<id>urn:sha1:ce46b633e24930e72c4f2ab959723d24c6b1e663</id>
<content type='text'>
postmaster always detaches from procd, work around by using
pg_ctl to stop the server.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>postgresql: update to version 9.5.4 and major rework</title>
<updated>2016-09-23T18:03:05Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2016-09-23T14:41:49Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=63120640e68829419d41b782669ec049110957ac'/>
<id>urn:sha1:63120640e68829419d41b782669ec049110957ac</id>
<content type='text'>
 * 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 &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>postgresql: update source to 9.4.4 and refresh scripts</title>
<updated>2015-08-12T15:30:20Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2015-06-29T14:40:06Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=714a408a6e872d7e478ed297c73e3812971d22df'/>
<id>urn:sha1:714a408a6e872d7e478ed297c73e3812971d22df</id>
<content type='text'>
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>postgresql: import from oldpackages, add myself as maintainer, add license information, update to v9.0.17</title>
<updated>2014-07-02T10:42:33Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2014-07-02T10:42:28Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=022ce861771a60cf7444cf615b51bb702c175fd3'/>
<id>urn:sha1:022ce861771a60cf7444cf615b51bb702c175fd3</id>
<content type='text'>
Signed-off-by: Jo-Philipp Wich &lt;jow@openwrt.org&gt;
</content>
</entry>
</feed>
