Live data from Hacker News

Show HN: Stellar – Git for PostreSQL and MySQL

github.com

1–10 of 79 posts

Re: Show HN: Stellar – Git for PostreSQL and MySQL

#3
This is a nice project. I used to have my database dump tracked by git (in binary mode). anytime my db changes I'll have to overwrite the file with the new database dump and include it with the commit.

I'm just wondering if this project offers anything special/better than the method I described.

Re: Show HN: Stellar – Git for PostreSQL and MySQL

#7

This sort of thing is useful, but already supported by Postgres through transactional DDL. Migrations that fail will have their transaction reverted.

Transaction is only reverted if the migration fails. Stellar helps you if your migration succeeds but does the wrong thing (deleting wrong column, missing WHERE in UPDATE statement).

Re: Show HN: Stellar – Git for PostreSQL and MySQL

#9

This sort of thing is useful, but already supported by Postgres through transactional DDL. Migrations that fail will have their transaction reverted.

What if you're writing a migration that includes DML, and it fails partway through? Wouldn't it be good to be able to restore the DB state automatically and try again?
Post reply on HN