Загрузка видео...

Не удалось загрузить видео

На главную

postgres is the best database

383,362 просмотров • 9 месяцев назад •via X (Twitter)

Комментарии: 45

Фото профиля thibauld
thibauld9 месяцев назад

"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
Sam Meech Ward9 месяцев назад

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

Фото профиля Tristan Rhodes
Tristan Rhodes9 месяцев назад

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

Фото профиля Sam Meech Ward
Sam Meech Ward9 месяцев назад

Yes

Фото профиля Horncle Ola
Horncle Ola9 месяцев назад

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

Фото профиля Sam Meech Ward
Sam Meech Ward9 месяцев назад

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

Фото профиля Horncle Ola
Horncle Ola9 месяцев назад

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

Фото профиля Roman
Roman9 месяцев назад

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

Фото профиля Sam Pullara
Sam Pullara9 месяцев назад

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

Фото профиля MyPayIndia
MyPayIndia9 месяцев назад

Tried this on my database it didnt work

Фото профиля Sam Meech Ward
Sam Meech Ward9 месяцев назад

time to switch to postgres

Фото профиля MyPayIndia
MyPayIndia9 месяцев назад

How do i get my tables back theres nothing

Фото профиля Eniola | FullStack Developer
Eniola | FullStack Developer9 месяцев назад

@Meech_Ward Eyaaaaaa pele 🤣🤣🤣🤣🤣

Фото профиля MyPayIndia
MyPayIndia9 месяцев назад

@Meech_Ward Eyaaaaaaaaaaa

Фото профиля MyPayIndia
MyPayIndia9 месяцев назад

@Meech_Ward nya

Фото профиля Kimmo Tamio
Kimmo Tamio9 месяцев назад

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

Фото профиля 6ix
6ix9 месяцев назад

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

Фото профиля ninken
ninken9 месяцев назад

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

Фото профиля Andrei
Andrei9 месяцев назад

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
Samir9 месяцев назад

What if you commit it can you roll back? 🤣

Фото профиля Esteban Puerta
Esteban Puerta9 месяцев назад

postgres is basically the everything app

Фото профиля throwabull
throwabull9 месяцев назад

lol, wtf.

Фото профиля rishav.js
rishav.js9 месяцев назад

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

Фото профиля Niwin Kumar
Niwin Kumar9 месяцев назад

“Try this out on your database” 😂😂

Фото профиля Noma
Noma9 месяцев назад

How about supabase?

Фото профиля Sam Meech Ward
Sam Meech Ward9 месяцев назад

Supabase is the best way to use Postgres

Фото профиля AL Bot 🇦🇱🇽🇰🇪🇺
AL Bot 🇦🇱🇽🇰🇪🇺9 месяцев назад

Oracle FLASHBACK says hold my beer! 🤣🤣

Фото профиля Huibert-Jan Nieuwkamer
Huibert-Jan Nieuwkamer9 месяцев назад

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
Richard Oliver Bray9 месяцев назад

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

Фото профиля ArtosPortos
ArtosPortos9 месяцев назад

@supabase and cheaper than Oracle and SQL Server

Фото профиля K12
K129 месяцев назад

Not today 😂

Фото профиля Gindi4711
Gindi47119 месяцев назад

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
Marco Pfeiffer9 месяцев назад

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
Cire Jr9 месяцев назад

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
Lee Penkman9 месяцев назад

Also remember to take backups people!!

Фото профиля Sobieski 🇵🇱
Sobieski 🇵🇱9 месяцев назад

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

Фото профиля Blhe
Blhe9 месяцев назад

I didnt work i will sue you.

Фото профиля Mathis Burger
Mathis Burger9 месяцев назад

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

Фото профиля __ken17th__
__ken17th__9 месяцев назад

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

Фото профиля Kok Uyto
Kok Uyto9 месяцев назад

No thanks 😂

Фото профиля SA Football Players Abroad 🇿🇦
SA Football Players Abroad 🇿🇦9 месяцев назад

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

Фото профиля Rajan
Rajan9 месяцев назад

Should i try on the Production Database ??🥲

Фото профиля InfraNext
InfraNext9 месяцев назад

Absolutely!

Фото профиля Chocobo
Chocobo9 месяцев назад

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
Devansh9 месяцев назад

indeed

Похожие видео