PostgreSQL vs MySQL

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ • 50

  • @oefzdegoeggl
    @oefzdegoeggl Рік тому +26

    using postgres since late 2000. in those 23 years, i had exatly 0 data losses due to the db making a fault. it was always "operator error". scalability is a bit harder to do with postgres maybe, but it's doable (like partitioning tables and distributing partitions over several machines), with additional read replicas to separate read/write load, although your application of course has to send read and write queries to separate instances then. one more interesting fact is that afaik the SQLite project does something called "wwpd" in their test cycles. this reads "what-would-postgres-do", so basically they completely ignore what sqlserver or mysql are doing and instead fix their code until the output is 1:1 that of postgres 😄

  • @DaddyGotBase
    @DaddyGotBase Рік тому +3

    Your video broadened my understanding of both databases.
    Thank you!

  • @FamilyKgpg
    @FamilyKgpg 10 місяців тому +2

    Question:
    You said MySQL supports pluggable storage engines - INNODB (ACID compliant) & MyISAM (non-ACID compliant) where Postgres supports only MyISAM
    In the explaination of Postgres you said, its full ACID Complient
    Isn't that contradicting?

  • @TravisTennies
    @TravisTennies Рік тому +6

    Good job! This is the 4th video I've seen on this and the first one to mention the licensing. Which is mainly what i wanted to hear. Amazing how hard it is to find the info you want. Thanks for being smarter than average. (Yes i could have read up on current licences for both....but i get tured of reading)

  • @gasfeesofficial3557
    @gasfeesofficial3557 9 місяців тому +2

    make it simple - MySQL is table based relational db... Posgres is more "object" based relational db.

  • @it-kachalka
    @it-kachalka Рік тому +3

    Saying “speed”, “scalability” or “easy to use” without et least mentioning what gives this characteristics in compare is really harmful for the whole industry
    Because people will spread this knowledge to one another and this will create and develop technologies that does not deserve to be evolved

  • @nicholasbicholas
    @nicholasbicholas Рік тому

    Great breakdown, very useful! I don't know why but I thought postgres was much newer. Had no idea how mature it really was

  • @AirbyteHQ
    @AirbyteHQ  Рік тому +2

    When considering data migration between these systems, your ultimate ally is Airbyte. As the leading open-source ELT tool, Airbyte simplifies the migration process, transforming a complex procedure into an intuitive task for engineers.

  • @truesightgrabber
    @truesightgrabber 9 місяців тому

    I wish to use PostGreSQL more, but MySQL is more advanced, suits to more products (like WordPress) and more documented and supported.

    • @thombrown
      @thombrown 8 місяців тому +3

      Why would you think MySQL is more advanced? 🤨

  • @sujayxaradhya
    @sujayxaradhya Рік тому +4

    Hey what about scalability if using PostgreSQL?

    • @sentzeu
      @sentzeu Рік тому +3

      It is every bit as easy to scale a PostgreSQL server as a MySQL server.

  • @anonymeister123
    @anonymeister123 10 місяців тому

    Very good and relevant video, thank you

  • @asaf1506
    @asaf1506 Рік тому

    Nice explanations !! Thank you for the content!

  • @PauloSantosk
    @PauloSantosk Рік тому +1

    Postgres embrace the concept of schemas, that are basically bd's inside a singular DB.

    • @esdegan7176
      @esdegan7176 9 місяців тому

      what "bd's" mean?

    • @PauloSantosk
      @PauloSantosk 9 місяців тому

      ​@@esdegan7176 Sorry, I mean DataBase, because in portuguese we use the short "BD" for "Banco de Dados".

  • @k3dare
    @k3dare 10 місяців тому +4

    Just a few things :
    - Both MySQL and PostgreSQL are fully ACID compliant. (as you should use InnoDB on MySQL)
    - PostgreSQL doesn't actually have anything bundled for H.A, you have replication but nothing that would trigger and automatic failover for example like would InnoDB clusters (you have to rely on external tool that Stolon that may or may not work or be supported for long)
    - You have extensibility on MySQL too (via plugins)
    - MySQL is superior in some of the core security topics like TDE (Transparent Data Encryption) or credential/password management (with password policies, multiple passwords per user for rotations, etc...)
    - PostgreSQL MVCC is not an advantage actually, it causes TONS of write amplifications and required maintenance (normally automated with autovacuum), InnoDB is vastly superior on this case.
    A few issues with MySQL still today :
    - No UUID type
    - Triggers would not execute on foreign tables modifications (big issue for some case if you rely a lot on triggers)

    • @Lightbeerer
      @Lightbeerer 8 місяців тому

      Great points. I think maybe where Postgres is more ACID compliant is with DDL statements as Postgres supports transactional DDL. Also, MariaDB could be a great MySQL alternative if a UUID datatype is required (and for other reasons as well, although there are trade-offs).

  • @andrewjedi
    @andrewjedi Рік тому

    Great video! I remember this guy on his other channel, what was his name again? Thanks :)

  • @timavilla
    @timavilla 8 місяців тому +3

    I regret spending 10 min on this video, 0 useful technical information, only broad statements, and some of them are not even entirely truthful

  • @nomenetasaili8598
    @nomenetasaili8598 Рік тому +2

    Thankyou this is really helpful

  • @ahmedhdeawy
    @ahmedhdeawy Рік тому +1

    nice explanation, thanks

  • @sadbuttrue666
    @sadbuttrue666 7 місяців тому

    Thank you bro. Very helpfull.

  • @yellowboat8773
    @yellowboat8773 10 місяців тому +1

    Engineers always telling the world they are engineers. "As an engineer, everyone needs to know I'm an engineer"

  • @rembautimes8808
    @rembautimes8808 10 місяців тому

    Thanks for this video - joined as a sub

  • @jay_wright_thats_right
    @jay_wright_thats_right Рік тому

    It's safe to say Airbyte is slowly going out of business.

  • @Divy91311
    @Divy91311 Рік тому +1

    Hey Airbyte, really nice video! I was wondering if I could help you edit your videos and also make a highly engaging Thumbnail which will help your video to reach to a wider audience

  • @agashamercy8205
    @agashamercy8205 Рік тому

    I only hate the importing features in postgres. Very devastating.
    If someone could tell me how to import a very large csv file in Postgres without typing out all the columns, i will be greatful

    • @brayanclavijo5458
      @brayanclavijo5458 Рік тому

      It has a lot of columns tho? 'cause you can use COPY, but I guess you already know this command and looking for another answer,

    • @agashamercy8205
      @agashamercy8205 Рік тому

      @@brayanclavijo5458
      I've tried to use this copy command but I always get errors

  • @hemantpanchal8087
    @hemantpanchal8087 Рік тому

    Can someone pls guide me, which database is preferable for core banking domain between mssql and postgresql?
    apart from Oracle.

  • @codybass8873
    @codybass8873 5 місяців тому

    👍

  • @scottfrost317
    @scottfrost317 Рік тому +2

    You should have mentioned MySQL was forked over to Maria db and that oracle will end of life it soon.

    • @MrSnivvel
      @MrSnivvel Рік тому

      @@berrybush6545 I think he's confused on the difference between ending a product entirely and declaring that older versions are EOL. Oracle is not ending MySQL.

    • @esdegan7176
      @esdegan7176 9 місяців тому

      i hear "soon" from day 1 mariadb was born :D

  • @andikaibnumubarok3893
    @andikaibnumubarok3893 Рік тому

    Makasih, Video nya sangat bermanfaat bagi saya, ini akan lebih membantu saya jika anda menambahkan subtitle bahasa Indonesia di video mu

  • @sentzeu
    @sentzeu Рік тому +14

    Yeah I’ll have to downvote this, just saying that MySQL is in general more performant is highly misleading and harmful to the industry.

  • @chrishabgood8900
    @chrishabgood8900 Рік тому

    mysql is easier to manage.