Check PostgreSQL 19 Logical Replication Without a Restart (`wal_level` / `effective_wal_level`) from a Desktop GUI
On PostgreSQL 19, when wal_level is replica, creating the first logical replication slot raises effective_wal_level to logical without a restart. Check both settings in HiDataLinker's SQL editor — the app does not edit postgresql.conf or restart the server.
正文目前为英文。
On 19 November 2026 the PostgreSQL Global Development Group announced PostgreSQL 19. The 19.0 release notes state that logical replication can now be enabled without a server restart when wal_level is set to replica. The official feature description is short: when wal_level is replica, PostgreSQL automatically raises the effective WAL level to logical when the first logical replication slot is created, and the WAL level in use is reported by effective_wal_level.
The configured wal_level is still a server-start parameter. What changed is the operational level, which you can inspect with the preset effective_wal_level setting. This guide shows how to check both values — and, if you actually need logical decoding, create a first logical slot — from HiDataLinker, a free MIT PostgreSQL desktop GUI (MySQL in the same client): local-first credentials, URL paste, Dump / same-engine migrate, and no seat, connection, or tab freemium wall.
These statements require a PostgreSQL 19+ server. Confirm with SELECT version();. On older majors, effective_wal_level is not a documented preset, and creating a logical slot still required wal_level = logical (plus a restart if you were on replica).
This page is about the no-restart WAL-level change. It is not a walkthrough of CREATE PUBLICATION, FOR ALL SEQUENCES, or subscriptions.
What HiDataLinker actually ships
HiDataLinker v1.3.0 includes a SQL editor and a result grid. Paste a postgresql:// URL or DATABASE_URL, keep the profile on your machine, and run SHOW, pg_create_logical_replication_slot(), and pg_replication_slots queries yourself.
It does not ship a postgresql.conf or GUC editor, a server restart, or a control that changes wal_level. It has no slot or publication wizard and no continuous slot-management UI. The PostgreSQL 19 server raises or lowers the effective WAL level; the desktop client only sends the SQL and displays the result.
1. Connect to a PostgreSQL 19 server
- Install from hidatalinker.onesolo.app.
- Open New Connection — paste the URI or fill host, port, user, password, and database. See paste a DATABASE_URL.
- Test, then connect. Profiles stay on your machine — local-first, no hosted workspace.
- In the SQL editor, run
SELECT version();and confirm you are on PostgreSQL 19 or newer.
2. Compare wal_level and effective_wal_level
In the SQL editor (⌘/Ctrl+Enter):
SHOW wal_level;
SHOW effective_wal_level;
SELECT slot_name, plugin, slot_type, active, temporary, wal_status
FROM pg_replication_slots
WHERE slot_type = 'logical';
Read the two SHOW results together:
- If
wal_levelis alreadylogical, the effective level should also belogical. This PostgreSQL 19 change is not what you need; logical decoding was already configured at server start. - If
wal_levelisminimal, the no-restart path does not apply. Official docs still requirereplicaor higher for replication-related WAL, andwal_levelcan only be set at server start. HiDataLinker cannot editpostgresql.confor restart the instance. - If
wal_levelisreplicaandeffective_wal_levelis alsoreplica, no valid logical slot is in effect yet. Ifeffective_wal_levelis alreadylogical, a logical slot already exists — check thepg_replication_slotsrows before creating another one.
On a standby, official docs say effective_wal_level matches the value from the most upstream server in the replication chain. The local SHOW wal_level on that standby is not the whole story.
3. Create the first logical slot only if you need logical decoding
Creating the first logical replication slot is what raises the effective WAL level. Use a replication management function in the SQL editor, and only do this on a server where you intend to decode changes. You still need privileges to create a slot.
SELECT * FROM pg_create_logical_replication_slot('hdl_demo_logical', 'pgoutput');
SHOW wal_level;
SHOW effective_wal_level;
wal_level should stay replica. effective_wal_level should now show logical. That is the PostgreSQL 19 behavior: the configured setting did not change, and the server did not restart.
Unused replication slots persist and retain WAL (and catalog rows) even when nothing is consuming them. The official logical decoding concepts page warns that this can consume storage, and in extreme cases risk shutdown to prevent transaction ID wraparound. If this was only a check, drop the slot you created:
SELECT pg_drop_replication_slot('hdl_demo_logical');
Do not drop a slot you did not create, or one that a subscriber still uses.
Official limits
wal_levelcan still only be set at server start. PostgreSQL 19 does not let youSET wal_level = logicalin a session.- The automatic raise to
logicalapplies whenwal_levelisreplicaand the first valid logical slot is created. It does not apply atminimal. - When
wal_levelisreplica, dropping or invalidating the last logical slot returns the effective level toreplica. Official docs note that this deactivation can take some time because the checkpointer does it asynchronously — so aSHOWimmediately afterpg_drop_replication_slotmay still readlogical. - The same docs caution that dropping or invalidating the last logical slot on the primary disables logical decoding there and invalidates logical slots on standbys.
- The 19.0 release notes also record that
pg_controldataandpg_control_checkpoint()report the effective WAL level. You can run the SQL function in the editor if you have privileges; HiDataLinker has no separate control-data screen. - Creating a slot is not the same as creating a publication or subscription. There is no in-app wizard for those either.
HiDataLinker is a thin Tauri desktop app for PostgreSQL and MySQL — paste DATABASE_URL, keep creds local, and avoid seat / connection / tab freemium walls. Honest v1: MySQL + PostgreSQL as marketed; not a logical-replication console, GUC editor, or slot manager. Overview: /db-client.
Soft next step
Need a desktop GUI that can run SHOW wal_level, SHOW effective_wal_level, and pg_create_logical_replication_slot() in a SQL editor on PostgreSQL 19, without a freemium wall?
- Download: https://hidatalinker.onesolo.app/
- Source: https://github.com/henrybit/HiDataLinker