<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Thiagowfx</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Thiagowfx"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Thiagowfx"/>
	<updated>2026-05-10T04:47:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Postgresql&amp;diff=29960</id>
		<title>Postgresql</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Postgresql&amp;diff=29960"/>
		<updated>2025-05-24T14:41:23Z</updated>

		<summary type="html">&lt;p&gt;Thiagowfx: add newer guide&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;PostgreSQL is a well known opensource database that scales well and is easy to use.&lt;br /&gt;
&lt;br /&gt;
== PostgreSQL 16 ==&lt;br /&gt;
&lt;br /&gt;
To install, configure, and use PostgreSQL 16, which is the latest release, please refer to the [https://wiki.alpinelinux.org/wiki/Postgresql_16 PostgreSQL 16 Alpine Wiki page]. It will also create a system user called postgres.&lt;br /&gt;
&lt;br /&gt;
== PostgreSQL 15 ==&lt;br /&gt;
&lt;br /&gt;
To install PostgreSQL 15,&lt;br /&gt;
{{Cmd|apk add postgresql15 postgresql15-contrib postgresql15-openrc}}&lt;br /&gt;
{{Cmd|rc-update add postgresql}}&lt;br /&gt;
{{Cmd|rc-service postgresql start}}&lt;br /&gt;
&lt;br /&gt;
This will start the postgresql 15 server and perform some initial configuration. It will also create a system user called postgres.&lt;br /&gt;
&lt;br /&gt;
To configure and use PostgreSQL, please refer to the [https://wiki.alpinelinux.org/wiki/Postgresql_16 PostgreSQL 16 Alpine Wiki page] as the usage is the same.&lt;br /&gt;
&lt;br /&gt;
== PostgreSQL 14 ==&lt;br /&gt;
&lt;br /&gt;
To install PostgreSQL 14,&lt;br /&gt;
{{Cmd|apk add postgresql14 postgresql14-contrib postgresql14-openrc}}&lt;br /&gt;
{{Cmd|rc-update add postgresql}}&lt;br /&gt;
{{Cmd|rc-service postgresql start}}&lt;br /&gt;
&lt;br /&gt;
This will start the postgresql 14 server and perform some initial configuration. It will also create a system user called postgres.&lt;br /&gt;
&lt;br /&gt;
To configure and use PostgreSQL, please refer to the [https://wiki.alpinelinux.org/wiki/Postgresql_16 PostgreSQL 16 Alpine Wiki page] as the usage is the same.&lt;br /&gt;
&lt;br /&gt;
== Switching between PostgreSQL versions ==&lt;br /&gt;
&lt;br /&gt;
On Alpine Linux, you can use the command `pg_versions` to switch between PostgreSQL versions. This is very helpful when upgrading the version you are using.&lt;br /&gt;
&lt;br /&gt;
== Upgrading PostgreSQL ==&lt;br /&gt;
&lt;br /&gt;
Please follow along with [https://perrotta.dev/2025/05/postgresql-major-version-upgrade-on-alpine-linux/ this guide] and adjust the version you are moving from and the version you are upgrading to.&lt;br /&gt;
&lt;br /&gt;
There&#039;s also [https://beune.dev/posts/upgrade-alpine-postgresql/ this older guide].&lt;br /&gt;
&lt;br /&gt;
[[Category:Database]]&lt;/div&gt;</summary>
		<author><name>Thiagowfx</name></author>
	</entry>
</feed>