pgsql: Warn if wal_level is too low when creating a publication.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Warn if wal_level is too low when creating a publication.
Date: 2019-07-13 01:08:50
Message-ID: E1hm6Ww-0008IG-5b@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Warn if wal_level is too low when creating a publication.

Provide a hint to users that they need to increase wal_level before
subscriptions can work.

Author: Lucas Viecelli, with some adjustments by Thomas Munro
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/CAPjy-57rn5Y9g4e5u--eSOP-7P4QrE9uOZmT2ZcUebF8qxsYhg%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b31fbe852c095a827caade2e0702f8a215053bea

Modified Files
--------------
src/backend/commands/publicationcmds.c | 8 ++++++++
src/test/regress/expected/object_address.out | 3 +++
src/test/regress/expected/publication.out | 13 +++++++++++++
src/test/regress/sql/object_address.sql | 3 +++
src/test/regress/sql/publication.sql | 13 +++++++++++++
5 files changed, 40 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2019-07-13 03:01:35 pgsql: Introduce timed waits for condition variables.
Previous Message Tom Lane 2019-07-12 20:25:13 pgsql: Fix get_actual_variable_range() to cope with broken HOT chains.