Open fdr opened 10 years ago
Ha ha ha ha ha... :disappointed:
I think I can block this on the client easily enough. We may want to block it on the server as well, but I don't think we can relay a nice error message very easily given the current inerface.
I've since changed the instructions to hopefully call out the magical default DATABASE_URL
interaction, but yeah, there are probably zero situations where this is good, by default or fat finger.
Null opinion on where the blocking should happen, as I'm not convinced I am in a position to handle it right now.
Maciek's both ends call seems reasonable. Measure twice, cut once.
On Thu, Aug 14, 2014 at 4:20 PM, Daniel Farina notifications@github.com wrote:
I've since changed the instructions to hopefully call out the magical default DATABASE_URL interaction, but yeah, there are probably zero situations where this is good, by default or fat finger.
Null opinion on where the blocking should happen, as I'm not convinced I am in a position to handle it right now.
— Reply to this email directly or view it on GitHub https://github.com/heroku/heroku/issues/1181#issuecomment-52257670.
Reported by a user who happened to not be using
DATABASE_URL
in the normal way -- it was pointing to a new, blank database -- and on account of positive feedback from toolbelt about the transfer wound up deprovisioning the database with all the data (while following the upgrade instructions).This was because as the instructions indicated (and assuming a regular full-of-data
DATABASE_URL
) runningheroku pgbackups:transfer NEWDATABASE
would put data fromDATABASE_URL
intoNEWDATABASE
. In this instance the two were the same.Demonstration setup:
The following completes without protest to self-clean and restore. This is probably dangerous even without a misstep of how the defaults are intended to be used account of the "clean" option in
pg_dump
.@heroku/department-of-data