powa-team / powa

PostgreSQL Workload Analyzer
http://powa.readthedocs.io/
PostgreSQL License
768 stars 57 forks source link

Keep dropped databases #63

Closed marco44 closed 5 years ago

marco44 commented 8 years ago

Currently, when a database is dropped, we lose its data in the GUI: everything is stored with the dbid.

We should have a powa_pg_database_history to keep track of all seen databases:

rjuju commented 8 years ago

We should also explicitly show on the UI that the database has been dropped. Would you like to keep track of when approximatively the database has been dropped, of the end of any activity is enough?

Also, obvisouly a lot of features won't work, like doing explain of related queries, but there's nothing we can do about it.

marco44 commented 8 years ago

End of activity is enough, I think. But storing the date when the database has been dropped in a table won't kill performance :)

rjuju commented 8 years ago

Some preliminary work has been done :

Some work is still needed for some corner cases, like if a database is renamed and a snapshot didn't occur for instance.

rjuju commented 5 years ago

The limitations I was mentioning are probably not critical, and we already keep track of deleted and renamed database. I'm closing this issue. If you think more could be done, please open a new issue in powa-archivist project!