pgsh clone: allow overwriting current database
Closed this issue · 1 comments
nafg commented
$ pgsh --version
0.10.0
$ pgsh ls
* lrbcol
[...]
lrbcol_v6.5.6
lrbcol_v6.7.2
lrbcol_v6.8.0
lrbcol_v8.0.0
[...]
$ pgsh clone -f lrbcol_v8.0.0 lrbcol
Cannot clone to lrbcol; that's the current database!
The workaround is to first pgsh switch
to the source database but pgsh could be smarter
sastraxi commented
I'll release 0.10.1
tonight to fix this, thanks for the bug report :)