Port details |
- postgresql-wal2json JSON output plugin for changeset extraction for PostgreSQL databases
- 2.5 databases =0 2.5Version of this port present on the latest quarterly branch.
- Maintainer: daniel@morante.net
- Port Added: 2023-08-22 08:18:18
- Last Update: 2024-03-02 14:01:25
- Commit Hash: 0654062
- License: BSD3CLAUSE
- WWW:
- https://github.com/getsentry/wal2json/
- Description:
- wal2json is an output plugin for logical decoding. It means that the plugin have
access to tuples produced by INSERT and UPDATE. Also, UPDATE/DELETE old row
versions can be accessed depending on the configured replica identity.
Changes can be consumed using the streaming protocol (logical replication slots)
or by a special SQL API.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- postgresql12-wal2json>0:databases/postgresql-wal2json
- To install the port:
- cd /usr/ports/databases/postgresql-wal2json/ && make install clean
- To add the package, run one of these commands:
- pkg install databases/postgresql-wal2json
- pkg install postgresql12-wal2json
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: postgresql12-wal2json
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1692687620
SHA256 (eulerto-wal2json-wal2json_2_5_GH0.tar.gz) = b516653575541cf221b99cf3f8be9b6821f6dbcfc125675c85f35090f824f00e
SIZE (eulerto-wal2json-wal2json_2_5_GH0.tar.gz) = 91040
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- gmake>=4.3 : devel/gmake
- postgres : databases/postgresql12-server
- Runtime dependencies:
-
- postgres : databases/postgresql12-server
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- databases_postgresql-wal2json
- USES:
- gmake pgsql:11-14
- pkg-message:
- For install:
- You need to set up at least two parameters in postgresql.conf:
wal_level = logical
#
# these parameters only need to set in versions 9.4, 9.5 and 9.6
# default values are ok in version 10 or later
#
max_replication_slots = 10
max_wal_senders = 10
After changing these parameters, a restart is needed.
- Master Sites:
|
Notes from UPDATING |
- These upgrade notes are taken from /usr/ports/UPDATING
- 2023-09-08
Affects: users of databases/postgresql* and other software using PostgreSQL to run Author: kbowling@FreeBSD.org Reason:
The default version of PostgreSQL has been switched from 13 to 15.
The upgrade procedure can use up twice the space the databases
currently needs. If you have a big amount of stored data take a
closer look at the manpage of pg_upgrade for avoidance and/or
speedup of the upgrade.
The upgrade instructions consider a basic usage and do not match
complex scenarios like replication, sharding, or similar.
Upgrade instructions:
First stop your PostgreSQL, create PostgreSQL-binaries and backup your data.
If you have another Version of PostgreSQL installed, for example 13, your
files are named according to this.
# service postgresql stop
# pkg create postgresql13-server postgresql13-contrib
# mkdir /tmp/pg-upgrade
# tar xf postgresql13-server-13.12.pkg -C /tmp/pg-upgrade
# tar xf postgresql13-contrib-13.12.pkg -C /tmp/pg-upgrade
# pkg delete -f databases/postgresql13-server databases/postgresql13-contrib databases/postgresql13-client
Now update PostgreSQL:
pkg user:
# pkg install databases/postgresql15-server databases/postgresql15-contrib
# pkg upgrade
Portmaster users:
# portmaster databases/postgresql15-server databases/postgresql15-contrib
# portmaster -a
Portupgrade users:
# portinstall databases/postgresql15-server databases/postgresql15-contrib
# portupgrade -a
After installing the new PostgreSQL version you need to convert
all your databases to new version:
# su -l postgres -c "/usr/local/bin/initdb --encoding=utf-8 --lc-collate=C -D /var/db/postgres/data15 -U postgres"
# su -l postgres -c "pg_upgrade -b /tmp/pg-upgrade/usr/local/bin/ -d /var/db/postgres/data13/ -B /usr/local/bin/ -D /var/db/postgres/data15/ -U postgres "
Now the migration is finished. You can start PostgreSQL again with:
# service postgresql start
ATTENTION:
1) The default user changed from "pgsql" to "postgres" in 11. The migration steps above now assume
the "postgres" database user and FreeBSD user.
2) See the updating entry 20190829 if you are updating from a release prior to 11.
3) If you use non-default initdb options, you have to adjust the initdb-command accordingly
|
Number of commits found: 2
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
2.5 02 Mar 2024 14:01:25 |
Mathieu Arnold (mat) |
cleanup: (ir)regular GH_TAGNAME cleanup |
2.5 22 Aug 2023 08:16:26 |
Juraj Lutter (otis) Author: Daniel Morante |
databases/postgresql-wal2json: Add new port
Add postgresql-wal2json, an output plugin for logical decoding.
WWW: https://github.com/eulerto/wal2json
PR: 257904 |
Number of commits found: 2
|