Optionally don't error out due to preexisting slots in commandline utilities.
Andres Freund <andres@anarazel.de>
Optionally don't error out due to preexisting slots in commandline utilities. pg_receivexlog and pg_recvlogical error out when --create-slot is specified and a slot with the same name already exists. In some cases, especially with pg_receivexlog, that's rather annoying and requires additional scripting. Backpatch to 9.5 as slot control functions have newly been added to pg_receivexlog, and there doesn't seem much point leaving it in a less useful state. Discussion: 20150619144755.GG29350@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/pg_receivexlog.sgml | modified | +10 −0 |
| doc/src/sgml/ref/pg_recvlogical.sgml | modified | +10 −0 |
| src/bin/pg_basebackup/pg_receivexlog.c | modified | +9 −2 |
| src/bin/pg_basebackup/pg_recvlogical.c | modified | +8 −1 |
| src/bin/pg_basebackup/streamutil.c | modified | +19 −25 |
| src/bin/pg_basebackup/streamutil.h | modified | +2 −2 |