Re: Don'st start streaming after creating a slot in pg_receivexlog - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Don'st start streaming after creating a slot in pg_receivexlog
Date
Msg-id 20150729132522.GC26516@alap3.anarazel.de
Whole thread Raw
In response to Re: Don'st start streaming after creating a slot in pg_receivexlog  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
On 2015-07-29 22:21:04 +0900, Michael Paquier wrote:
> On Wed, Jul 29, 2015 at 10:15 PM, Andres Freund wrote:
> > It's not that uncommon to have replicas only access the primary for
> > replication type connections. So it seems completely sensible to use the
> > replication protocol to manage slots. And that you can't really do with
> > psql.
>
> Actually, you can. CREATE_REPLICATION_SLOT is one of the commands that
> work with psql

I do know that, I wrote the bit in the docs explaining that that's
possible...

But using replication connections that way in psql makes requires it to
be invoked in a different way and makes it it impossible to specify the
database name in a normal way etc. You can also run into commands that
give you 'unexpected result status' errors and such. I don't think
that's a good default interface.



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Don'st start streaming after creating a slot in pg_receivexlog
Next
From: Kouhei Kaigai
Date:
Subject: Re: Parallel Seq Scan