Check for existing replication slot in pg_createsubscriber - Mailing list pgsql-hackers

From Zane Duffield
Subject Check for existing replication slot in pg_createsubscriber
Date
Msg-id CACMiCkWB=4OaQUQEBs5MhiFXeSmTGgkNcWSimiwH05JFaF=ERw@mail.gmail.com
Whole thread Raw
List pgsql-hackers
Hackers,

I noticed in testing and usage that pg_createsubscriber doesn't check for an existing replication slot before attempting to create one, whereas it *does* check for existing publications.
If it were to check for an existing replication slot, then the --dry-run mode would be able to detect the issue.

If this seems like a good feature, I'm happy to try and put together a patch for it.

Thanks,
Zane

pgsql-hackers by date:

Previous
From: Andrei Lepikhov
Date:
Subject: Re: Removing unneeded self joins
Next
From: jian he
Date:
Subject: Re: ALTER TABLE ALTER CONSTRAINT misleading error message