Skip navigation
postgres is the best database
0:00 / 0:43

postgres is the best database

Sam Meech Ward

@Meech_Ward4.9K followers

Visit on X
5,064 likesDownloadOriginal post

383,477 views

postgres is the best database

45 Comments

Comments from the original post on X (Twitter)

  • thibauld's profile picture

    @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

  • Sam Meech Ward's profile picture

    @Meech_Ward

    Make sure it’s on the production machine. I forgot to mention that

    90 likes

  • Tristan Rhodes's profile picture

    @tristanbob

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

    24 likes

  • Sam Meech Ward's profile picture

    @Meech_Ward

    Yes

    4 likes

  • Horncle Ola's profile picture

    @horlaarsco

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

    21 likes

  • Sam Meech Ward's profile picture

    @Meech_Ward

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

    20 likes

  • Horncle Ola's profile picture

    @horlaarsco

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

    17 likes

  • Roman's profile picture

    @Pshichenko

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

    15 likes

  • Sam Pullara's profile picture

    @sampullara

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

    12 likes

  • MyPayIndia's profile picture

    @MyPayIndia

    Tried this on my database it didnt work

    7 likes

  • Sam Meech Ward's profile picture

    @Meech_Ward

    time to switch to postgres

    14 likes

  • MyPayIndia's profile picture

    @MyPayIndia

    How do i get my tables back theres nothing

    6 likes

  • Eniola | FullStack Developer's profile picture

    @eniola_dev

    @Meech_Ward Eyaaaaaa pele 🤣🤣🤣🤣🤣

  • MyPayIndia's profile picture

    @MyPayIndia

    @Meech_Ward Eyaaaaaaaaaaa

    3 likes

  • MyPayIndia's profile picture

    @MyPayIndia

    @Meech_Ward nya

    3 likes

  • Kimmo Tamio's profile picture

    @kimmotamio

    Thanks brother, I'll try this on my clients prod DB 🙏

    5 likes

  • 6ix's profile picture

    @6ixxwins

    Yeah, I’ll quickly try this on Prod, I’ll get back to you. Thanks. 🙏🏽

    5 likes

  • ninken's profile picture

    @ninken

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

    3 likes

  • Andrei's profile picture

    @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's profile picture

    @samir_zadran

    What if you commit it can you roll back? 🤣

    2 likes