Ticket #617 (closed defect: invalid)

Opened 3 years ago

Last modified 13 months ago

uninstall script get rid of drop cascade

Reported by: robe Owned by: robe
Priority: blocker Milestone: PostGIS 1.5.4
Component: build/upgrade/install Version: 1.5.X
Keywords: Cc:

Description

Can we please get rid of the drop cascade in the uninstall scripts. I was testing and accidentally installed postgis in the wrong schema. When I went to fix the error by using the uninstall script, I blew out all my geometries.

Needless to say I'm a bit irked.

Change History

Changed 3 years ago by robe

  • summary changed from uninstall scrip to uninstall script get rid of drop cascade

Changed 2 years ago by robe

  • priority changed from medium to blocker

Came across someone on IRC who was about to do this. So I'm not the only one who makes this fatal mistake. If we are going to be destroying people's data, I really think we should at least warn them about it. Especially for 2.0.

Changed 2 years ago by robe

  • milestone changed from PostGIS 1.5.3 to PostGIS 2.0.0

Changed 2 years ago by robe

  • milestone changed from PostGIS 2.0.0 to PostGIS 1.5.4

Changed 17 months ago by robe

  • owner changed from pramsey to strk
  • component changed from postgis to build/upgrade/install

Changed 17 months ago by strk

Robe: we can't get rid of drop cascade for types due to circular dependencies: type requires input/output functions while output function needs type. Unless you handle to solve the puzzle the best we could do is add a check for the presence of tables requiring the type (and excluded the ones we install ourselves). Doesn't seem like an easy task, anyway.

Changed 16 months ago by strk

  • owner changed from strk to robe

Changed 13 months ago by pramsey

  • status changed from new to closed
  • resolution set to invalid

Yeah, you're not really uninstalling if you're keeping your data.

Note: See TracTickets for help on using tickets.