postgres is the best database
@Meech_Ward4.9K followers
383,477 views
45 Comments
Comments from the original post on X (Twitter)

@thibauld
"try this out on your database" LOOOL Don't forget to try this out with `sudo rm -fr /` too and let me know if it works for you 🙏
212 likes

@Meech_Ward
Make sure it’s on the production machine. I forgot to mention that
90 likes

@tristanbob
Thanks, I learned something. Soo.... your initial example was after a "begin;" command, right?
24 likes

@Meech_Ward
Yes
4 likes

@horlaarsco
@supabase This is not specific to only Postgres, available on MySQL and most other RDBMS systems
21 likes

@Meech_Ward
@supabase Try this out on MySQL and let me know how it goes
20 likes

@horlaarsco
@supabase Oh DDL don’t work in transactions in MYSQL my bad. Thought it was transaction specific
17 likes

@Pshichenko
“Try this out on your database and let me know if that works for you” 😭🥴😂😂😂
15 likes

@sampullara
very few databases have transactional ddl, one of my favorite things about postgresql. snowflake does have undrop though :)
12 likes

@MyPayIndia
Tried this on my database it didnt work
7 likes

@Meech_Ward
time to switch to postgres
14 likes

@MyPayIndia
How do i get my tables back theres nothing
6 likes

@eniola_dev
@Meech_Ward Eyaaaaaa pele 🤣🤣🤣🤣🤣

@MyPayIndia
@Meech_Ward Eyaaaaaaaaaaa
3 likes

@MyPayIndia
@Meech_Ward nya
3 likes

@kimmotamio
Thanks brother, I'll try this on my clients prod DB 🙏
5 likes

@6ixxwins
Yeah, I’ll quickly try this on Prod, I’ll get back to you. Thanks. 🙏🏽
5 likes

@ninken
I tried it on my company’s database and found out we don’t have rollback enabled. 🤣
3 likes

@altf4andrei
I mean on MySQL you can revert a "DELETE FROM" if you are in a transaction. Most mistakes are done with a DELETE missing a where, not directly dropping a database. But when I deleted a 1M+ user database using DELETE FROM without a where many years ago. I did not use a transaction anyways, and even if I did, I would have committed the transaction. Transactions are not really made to fix mistakes, but more to fix code failures.
3 likes

@samir_zadran
What if you commit it can you roll back? 🤣
2 likes























