Re: Improve logical decoding error message (was wal_level > WAL_LEVEL_LOGICAL)

From: Neha Khatri <nehakhatri5(at)gmail(dot)com>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Improve logical decoding error message (was wal_level > WAL_LEVEL_LOGICAL)
Date: 2017-05-23 00:47:51
Message-ID: CAFO0U+-bPe_fW8Zv0scTf-Y-k+con6MR-+3tDnVyXmGqf4G1ow@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, May 23, 2017 at 10:26 AM, Michael Paquier <michael(dot)paquier(at)gmail(dot)com
> wrote:

> On Tue, May 23, 2017 at 8:08 AM, Neha Khatri <nehakhatri5(at)gmail(dot)com>
> wrote:
> > The Logical Decoding example in the documentation says:
> >
> > "Before you can use logical decoding, you must set wal_level to logical
> > and max_replication_slots to at least 1."
> >
> > But above error message is not exactly consistent with this
> documentation.
> > Would it make sense to keep the error message and the documentation
> > consistent like the attached.
>
> There is no wal_level higher than logical, so the current sense looks
> perfectly fine to me.
>

If there is no wal_level higher than logical, should the following error
message indicate to set it >= logical.

select * from
pg_create_logical_replication_slot('regression_slot','test_decoding');
ERROR: logical decoding requires wal_level >= logical

Regards,
Neha

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2017-05-23 00:55:16 Re: Improve logical decoding error message (was wal_level > WAL_LEVEL_LOGICAL)
Previous Message Alvaro Herrera 2017-05-23 00:28:27 pg_upgrade translation