Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

postgres is the best database

383,362 görüntüleme • 9 ay önce •via X (Twitter)

45 Yorum

thibauld profil fotoğrafı
thibauld9 ay önce

"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 🙏

Sam Meech Ward profil fotoğrafı
Sam Meech Ward9 ay önce

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

Tristan Rhodes profil fotoğrafı
Tristan Rhodes9 ay önce

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

Sam Meech Ward profil fotoğrafı
Sam Meech Ward9 ay önce

Yes

Horncle Ola profil fotoğrafı
Horncle Ola9 ay önce

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

Sam Meech Ward profil fotoğrafı
Sam Meech Ward9 ay önce

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

Horncle Ola profil fotoğrafı
Horncle Ola9 ay önce

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

Roman profil fotoğrafı
Roman9 ay önce

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

Sam Pullara profil fotoğrafı
Sam Pullara9 ay önce

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

MyPayIndia profil fotoğrafı
MyPayIndia9 ay önce

Tried this on my database it didnt work

Sam Meech Ward profil fotoğrafı
Sam Meech Ward9 ay önce

time to switch to postgres

MyPayIndia profil fotoğrafı
MyPayIndia9 ay önce

How do i get my tables back theres nothing

Eniola | FullStack Developer profil fotoğrafı
Eniola | FullStack Developer9 ay önce

@Meech_Ward Eyaaaaaa pele 🤣🤣🤣🤣🤣

MyPayIndia profil fotoğrafı
MyPayIndia9 ay önce

@Meech_Ward Eyaaaaaaaaaaa

MyPayIndia profil fotoğrafı
MyPayIndia9 ay önce

@Meech_Ward nya

Kimmo Tamio profil fotoğrafı
Kimmo Tamio9 ay önce

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

6ix profil fotoğrafı
6ix9 ay önce

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

ninken profil fotoğrafı
ninken9 ay önce

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

Andrei profil fotoğrafı
Andrei9 ay önce

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.

Samir profil fotoğrafı
Samir9 ay önce

What if you commit it can you roll back? 🤣

Esteban Puerta profil fotoğrafı
Esteban Puerta9 ay önce

postgres is basically the everything app

throwabull profil fotoğrafı
throwabull9 ay önce

lol, wtf.

rishav.js profil fotoğrafı
rishav.js9 ay önce

True! it really save so many time and setup and so easier to maintain

Niwin Kumar profil fotoğrafı
Niwin Kumar9 ay önce

“Try this out on your database” 😂😂

Noma profil fotoğrafı
Noma9 ay önce

How about supabase?

Sam Meech Ward profil fotoğrafı
Sam Meech Ward9 ay önce

Supabase is the best way to use Postgres

AL Bot 🇦🇱🇽🇰🇪🇺 profil fotoğrafı
AL Bot 🇦🇱🇽🇰🇪🇺9 ay önce

Oracle FLASHBACK says hold my beer! 🤣🤣

Huibert-Jan Nieuwkamer profil fotoğrafı
Huibert-Jan Nieuwkamer9 ay önce

Transactional ddl statements are great. It's the one big thing that I miss in Oracle. Specifically for drop table there is flashback, but HERE BE DRAGONS.

Richard Oliver Bray profil fotoğrafı
Richard Oliver Bray9 ay önce

I remember seeing a similar video from you in Insta years back. Such a great tip 👍

ArtosPortos profil fotoğrafı
ArtosPortos9 ay önce

@supabase and cheaper than Oracle and SQL Server

K12 profil fotoğrafı
K129 ay önce

Not today 😂

Gindi4711 profil fotoğrafı
Gindi47119 ay önce

As you instructed I tried it on my production database. Turned out my database does not support rollback after deleting a table. Now what is the next step?

Marco Pfeiffer profil fotoğrafı
Marco Pfeiffer9 ay önce

True, but how often do you need that? What I need a lot more often is fast connection initialization. And yes, you can use connection pooling with Postgres with a reverse proxy, but it's just more complexity. I'm not saying Postgres is a bad database, but I think MySQL is still a valid choice for many projects. even though it does not have transactional DDL queries.

Cire Jr profil fotoğrafı
Cire Jr9 ay önce

Any specific use case for this ? I know it looks cool, but most of the times, we don't drop tables knowingly, or with the intent of getting it back. So any specific use case would be appreciated

Lee Penkman profil fotoğrafı
Lee Penkman9 ay önce

Also remember to take backups people!!

Sobieski 🇵🇱 profil fotoğrafı
Sobieski 🇵🇱9 ay önce

@grok , write a prompt that serves as a blocking guideline so that all transactions in postgres start with a BEGIN;

Blhe profil fotoğrafı
Blhe9 ay önce

I didnt work i will sue you.

Mathis Burger profil fotoğrafı
Mathis Burger9 ay önce

It’s in the SQL Standard language… almost any good RDBMS should support transactions. It’s an core concept

__ken17th__ profil fotoğrafı
__ken17th__9 ay önce

This is similar to ACID transactions but Postgres don't fully comply with the ACID framework for transactions

Kok Uyto profil fotoğrafı
Kok Uyto9 ay önce

No thanks 😂

SA Football Players Abroad 🇿🇦 profil fotoğrafı
SA Football Players Abroad 🇿🇦9 ay önce

I tried it in Prod and it didn’t work😭💔

Rajan profil fotoğrafı
Rajan9 ay önce

Should i try on the Production Database ??🥲

InfraNext profil fotoğrafı
InfraNext9 ay önce

Absolutely!

Chocobo profil fotoğrafı
Chocobo9 ay önce

The intern who's gonna see this, run "begin" and 2 commands on the main table, never run rollback and go home for the weekend. In for a surprise Monday morning.

Devansh profil fotoğrafı
Devansh9 ay önce

indeed

Benzer Videolar