PostgreSQL Logical Replication Guide

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 มิ.ย. 2024
  • 0:00 - Content of this video
    0:22 - What is Logical Replication in Postgres?
    5:54 - Step by step Logical Replication setup
    Setting up the servers for Logical Replication
    10:38 - Selective Copy of the Data
    13:53 - Create the Publication
    14:41 - Create the Subscription
    17:43 - Postgres Limitations of Logical Replication
    20:06 - Monitoring Logical Replication
    23:16 - Best use-cases
    🐘 Want to find out MORE about Scaling PostgreSQL?
    Use the link below to get 60% OFF on the Entire Course.
    www.udemy.com/course/postgres...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 27

  • @scottspitlerII
    @scottspitlerII 3 หลายเดือนก่อน +4

    God you made such a good video! Seriously no one has put anything as good as this up!

    • @mrmik82
      @mrmik82 2 หลายเดือนก่อน

      That is true! Theo best tutoriale what I've ever seen. Thank you.

  • @habbex
    @habbex ปีที่แล้ว +2

    Thank you for the great explanation on the topic of logical replication, keep up the good work!

  • @agoodmuffin9905
    @agoodmuffin9905 2 ปีที่แล้ว +4

    Very good content.
    The video is well structured,
    illustrations are straightforward & pleasant to look at,
    and you are speaking very clearly. Keep it up
    +1

  • @artemiypyatakov5438
    @artemiypyatakov5438 11 หลายเดือนก่อน

    You are so good in a teaching. Please keep going.

  • @kalyaninagul8678
    @kalyaninagul8678 3 หลายเดือนก่อน

    Thank you so much for this video. Very detailed and with good examples.

  • @clouddeep3687
    @clouddeep3687 2 ปีที่แล้ว

    Very nice and clear guide, thank you.

  • @radhikaganesan
    @radhikaganesan ปีที่แล้ว

    Great explanation!

  • @DanutSoare
    @DanutSoare ปีที่แล้ว

    Hi. Very good presentation of logical replication! One thing I want to mention is that schema is not the same as the database. In this case, the schema used was Public and the database name was Pub.

  • @gabrielosorio4908
    @gabrielosorio4908 หลายเดือนก่อน

    This is amazing content, thank you very much, won another subscriber

  • @veerareddy6723
    @veerareddy6723 2 ปีที่แล้ว +1

    Very good explanation. If possible please provide upgrade using logical replication. How to ignore Deletes or update in logical replication.

  • @seetharamavadhanam3462
    @seetharamavadhanam3462 ปีที่แล้ว

    Thank you very much. great video

  • @martindominikus8825
    @martindominikus8825 ปีที่แล้ว

    Great video! By the way, is there a way to store the replication log? I need to know the timestamp when the DML operation occurs, or if I can write a code that pull the timestamp and store it back to the table, is there a way to see these logs stream?

  • @anton-r
    @anton-r ปีที่แล้ว

    so match senk you , great explanation
    for docker users that using psql 11 wal lvl ->
    command:
    - "postgres"
    - "-c"
    - "wal_level=logical"

  • @adib-enc
    @adib-enc หลายเดือนก่อน

    Good content, thank you very much

  • @decipheringthematrix56
    @decipheringthematrix56 2 ปีที่แล้ว

    Great content

  • @utkarshshukla4505
    @utkarshshukla4505 10 หลายเดือนก่อน

    Nice explanation sir , can you please make video on BDR (Bi directional replication)

  • @MarkJones
    @MarkJones 3 หลายเดือนก่อน

    DDL statements seem to flow thru on PGv14. At least our replica has changes that were made to the schema from our prod db.

  • @AuthorReviews
    @AuthorReviews 2 ปีที่แล้ว +1

    Thanks for the video. But I'm facing some issues. First of all I'm running both servers in Docker containers. I use Dbeaver to connect to database and manage it. When i create Database everything works fine. Once I change postgresql.conf file and restart postgres in container I can't connect to it using Dbeaver, although I can manage database in docker container. Another issue is with dumping and restoring at the same time - never works like in your video. I don;t know what am I doing wrong. Coudn't find any solution.

  • @utkarshshukla2448
    @utkarshshukla2448 10 หลายเดือนก่อน

    sir please make video on BDR replicational also

  • @ravulapallivenkat8640
    @ravulapallivenkat8640 ปีที่แล้ว

    Hi everything is good but iam not able to get replicated the tables which are generated from11 to 20 please provide answer for this error.

  • @tuoikien602
    @tuoikien602 5 หลายเดือนก่อน

    Can this logical replication use for other databases like mongodb?

  • @hinhnguyeninh7610
    @hinhnguyeninh7610 2 ปีที่แล้ว

    I got an error could not connect to the publisher: connection to server at "ip host", port 5432 failed: fe_sendauth: no password supplied , How should I deal with it, help me, please.

  • @davidzeng3807
    @davidzeng3807 24 วันที่ผ่านมา

    pg_ctl: could not open PID file "/tmp/publication_db/postmaster.pid": Permission denied
    i changing owner to postgres already but still have errors

  • @ander172
    @ander172 ปีที่แล้ว +1

    Ok, and what if subscriber has outage - not connected some time...( Hours,days...) And then connected back, how will be then sql data replicated in what order ?

    • @seamusmcdonald6310
      @seamusmcdonald6310 ปีที่แล้ว +1

      I believe you will need to reinitialize the stream with the last processed LSN (log sequence number) which can be stored in a shared, persistent state.
      If you have more than one consumer, more logic and data will be required.

  • @user-qe9su7tj1m
    @user-qe9su7tj1m 5 หลายเดือนก่อน

    I will like to talk to you, I really like your lectures on Postgres. Please send me your email address, I will like to talk about my interest of becoming DBA