SlideShare una empresa de Scribd logo
1 de 20
Descargar para leer sin conexión
PostgreSQL
               Replication Solutions

                       BRUCE MOMJIAN,
                        ENTERPRISEDB

                        December, 2008




                             Abstract
Replication is a complex feature. POSTGRESQL supports a variety
of replication options.

                                            http://momjian.us/presentations
Uses for Replication




                                     Theolotech.com


PostgreSQL Replication Solutions                 1
2
              ©¨ ©¨           §¦ §¦ §¦ §¦              
              ©¨ ©¨           §¦ §¦ §¦ §¦               
            ¨©¨© §§    
                 § ¦¦§ ¦¦               
                                  
              ©¨ ©¨           §¦ §¦ §¦ §¦                
              ©¨ ©¨           §¦ §¦ §¦ §¦                 
Fail Over




             ¡  ¡          £¢ £¢   £¢ £¢           ¤ ¥¤       ¥¤ ¥¤   ¥¤ ¥¤   ¥¤ ¥¤   ¥¤
             ¡  ¡          £¢ £¢   £¢ £¢            ¤ ¥¤      ¥¤ ¥¤   ¥¤ ¥¤   ¥¤ ¥¤   ¥¤




                                                                                           PostgreSQL Replication Solutions
             ¡  ¡          £¢ £¢   £¢ £¢             ¤ ¥¤     ¥¤ ¥¤   ¥¤ ¥¤   ¥¤ ¥¤   ¥¤
             ¡  ¡          £¢ £¢   £¢ £¢              ¤ ¥¤    ¥¤ ¥¤   ¥¤ ¥¤   ¥¤ ¥¤   ¥¤
             ¡  ¡          £¢ £¢   £¢ £¢               ¤ ¥¤   ¥¤ ¥¤   ¥¤ ¥¤   ¥¤ ¥¤   ¥¤
3
                 ©¨ ©¨             §¦ §¦ §¦ §¦                    
                 ©¨ ©¨             §¦ §¦ §¦ §¦                     
                 ©¨ ©¨             §¦ §¦ §¦ §¦                      
                 ©¨ ©¨             §¦ §¦ §¦ §¦                       
                 ¨© ¨© §§§§ 
                        ¦ ¦ ¦ ¦                 
                                       
Load Balancing




                 ¡  ¡               £¢ £¢ £¢ £¢             ¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤
                 ¡  ¡                                        ¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤




                                                                                          PostgreSQL Replication Solutions
                                    £¢ £¢ £¢ £¢
                  ¡  ¡ ££££¤¥¤¥¤¥¤¥¤¥¤¥¤¥¤ 
                        ¢ ¢ ¢ ¢                 
                                       
                 ¡  ¡               £¢ £¢ £¢ £¢               ¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤
                  ¡  ¡ ££££¤¥¤¥¤¥¤¥¤¥¤¥¤¥¤ 
                         ¢ ¢ ¢ ¢
4
                                ©¨ ©¨ ©¨ ©¨            ¦ §¦ §¦ §¦ §¦ §¦ §¦ §¦ §¦
                                ©¨ ©¨ ©¨ ©¨             ¦ §¦ §¦ §¦ §¦ §¦ §¦ §¦ §¦
                                ©¨ ©¨ ©¨ ©¨              ¦ §¦ §¦ §¦ §¦ §¦ §¦ §¦ §¦
                                ©¨ ©¨ ©¨ ©¨               ¦ §¦ §¦ §¦ §¦ §¦ §¦ §¦ §¦
                    ©©©©§§¦ §¦ §§§§¦ ¦  § ¦
                         ¨ ¨¨¨   ¦  ¦  ¦  ¦ 
                                                
Data Warehousing




                    ¥¤ ¥¤            £¢ £¢ £¢ £¢              ¡  ¡  ¡  ¡  ¡  ¡  ¡  ¡ 
                    ¥¤ ¥¤            £¢ £¢ £¢ £¢               ¡  ¡  ¡  ¡  ¡  ¡  ¡  ¡ 
                   ¤¥¤¥ ££££¡¡  ¡  ¡¡¡¡     ¡  




                                                                                                PostgreSQL Replication Solutions
                         ¢ ¢¢¢              
                                                 
                    ¥¤ ¥¤            £¢ £¢ £¢ £¢                ¡  ¡  ¡  ¡  ¡  ¡  ¡  ¡ 
                   ¤¥¤¥ ££££¡¡  ¡  ¡¡¡¡     ¡  
                          ¢ ¢¢¢             
©¨ ©¨          ¡  ¡    ¡  ¡                               5
                  ©¨ ©¨          ¡  ¡    ¡  ¡                            
                  ©¨ ©¨          ¡  ¡    ¡  ¡                            
                  ©¨ ©¨          ¡  ¡    ¡  ¡                            
                  ©¨ ©¨          ¡  ¡    ¡  ¡                            
Remote Servers




                 £¢ £¢           ¥¤ ¥¤ ¥¤ ¥¤         §¦ §¦ §¦ §¦ §¦ §¦ §¦
                 £¢ £¢           ¥¤ ¥¤ ¥¤ ¥¤         §¦ §¦ §¦ §¦ §¦ §¦ §¦




                                                                                          PostgreSQL Replication Solutions
                 ¢£ ¢£¥¥¥¥¦§¦§¦§¦§ ¦§¦§¦§ 
                     ¤ ¤¤ ¤            
                                  
                 £¢ £¢           ¥¤ ¥¤ ¥¤ ¥¤         §¦ §¦ §¦ §¦ §¦ §¦ §¦
                 £¢ £¢           ¥¤ ¥¤ ¥¤ ¥¤         §¦ §¦ §¦ §¦ §¦ §¦ §¦
6
Mobile Servers




                                                                                              PostgreSQL Replication Solutions
                    ¡  ¡              ¥¤ ¥¤ ¥¤ ¥¤                  £¢ £¢ £¢ £¢ £¢ £¢ £¢
                     ¡  ¡             ¥¤ ¥¤ ¥¤ ¥¤                  £¢ £¢ £¢ £¢ £¢ £¢ £¢
                      ¡  ¡            ¥¤ ¥¤ ¥¤ ¥¤                  £¢ £¢ £¢ £¢ £¢ £¢ £¢
                       ¡  ¡           ¥¤ ¥¤ ¥¤ ¥¤                  £¢ £¢ £¢ £¢ £¢ £¢ £¢
                 §§ ¡¨ ¦ §§ ¡¨ §§§§¥§¥§¥§¥§§§§§§¢£§§¢£§§¢£§§¢£§§¢£§§¢£§§¢£§¨ ¦
                       ¦ ¦ ¨ §¨ §¨ §¨ ¤§¨ ¤§¨ ¤§¨ ¤§¨ §¨ §¨ §¨ §¨ ¦ ¨ ¦ ¨ ¦ ¨ ¦ ¨ ¦ ¨ ¦ ¨ ¦
                                ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦
Replication Solutions




                                   Taotaomona Computing

PostgreSQL Replication Solutions                     7
8
                                                           Slave cannot execute queries
                               No data loss on fail-over
                 No overhead
Shared Storage




                                                                           




                                                                                                                                            Network−Attached
                                                                                                                                              Storage (NAS)
                                                                                             ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦
                                                                                             ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦
                                                                                          ¨© ¨© ¨©  §  ¦
                                                                                                      §  §  §  § 
                                                                                                             ¦ ¦ ¦ ¦ ¦
                                                                                              ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦




                                                                                                                                                               PostgreSQL Replication Solutions
                                                                                           ¥¤ ¥¤ £¢ £¢ £¢   ¡  ¡  ¡  ¡  ¡ 
                                                                                           ¥¤ ¥¤ £¢ £¢ £¢   ¡  ¡  ¡  ¡  ¡ 
                                                                                          ¢£ ¢£ ¢£  ¡   
                                                                                           ¥  ¥         ¡  ¡  ¡  ¡ 
                                                                                             ¤ ¤                        
                                                                                            ¥¤ ¥¤ £¢ £¢ £¢   ¡  ¡  ¡  ¡  ¡ 
                                                                                                                        ¡  ¡  ¡  ¡  ¡ 
9
                                            Synchronous or asynchronous

                                                                          Possible data loss on fail-over


                                                                                                                     Slave cannot execute queries
                                                                          when using asynchronous
                    No overhead on master
Storage Mirroring




                                                                                                                                    
                                                                                                     ©¨ ©¨ ©¨              §¦ §¦ §¦ §¦ §¦
                                                                                                     ©¨ ©¨ ©¨              §¦ §¦ §¦ §¦ §¦
                                                                                                  ¨© ¨© ¨© § ¦
                                                                                                             § § § § 
                                                                                                                     ¦ ¦ ¦ ¦
                                                                                                      ©¨ ©¨ ©¨             §¦ §¦ §¦ §¦ §¦




                                                                                                                                                           PostgreSQL Replication Solutions
                                                                                                                                                    DRBD
                                                                                                   ¤¥ ¥ ¤ £ ¢ £ ¢ £ ¢            ¡  ¡  ¡  ¡  ¡ 
                                                                                                   ¥¤ ¥¤ £¢ £¢ £¢                ¡  ¡  ¡  ¡  ¡ 
                                                                                                        ¡ ¡ ¡ ¡ 
                                                                                                   ¥  ¥            
                                                                                                     ¤ ¤   ¢£¢£ ¢£ ¡  
                                                                                                    ¥¤ ¥¤ £¢ £¢ £¢               ¡  ¡  ¡  ¡  ¡ 
                                                                                                                                 ¡  ¡  ¡  ¡  ¡ 
10
                                                                                                                                               Allowing slaves to execute queries
                                                                                                 Synchronous and auto-fail-over
                                                        Possible data loss on fail-over




                                                                                                 modes under development
                                                        when using asychonous
                                No overhead on master




                                                                                                                                               is under development
Point-In-Time Recovery (PITR)




                                                                                                                                                      
                                                                                               ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦
                                                                                                  ¨© © ¨ © ¨ ¦ § ¦ § ¦ § ¦ § ¦ § ¦
                                                                                                 § §  § § 
                                                                                           
                                                                                            ¨¨¨ §  ¦
                                                                                                
                                                                                              © © © 
                                                                                                                  ¦ ¦ ¦ ¦ ¦
                                                                                               ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦
                                                                                                                      ¦ §¦ §¦ §¦ §¦ §¦




                                                                                                                                  Ahead

                                                                                                                                  (WAL)
                                                                                                                                   Write




                                                                                                                                                                                    PostgreSQL Replication Solutions
                                                                                                                                   Log
                                                                                          ¥¤ ¥¤ £¢ £¢ £¢   ¡  ¡  ¡  ¡  ¡ 
                                                                                          ¥¤ ¥¤ £¢ £¢ £¢   ¡  ¡  ¡  ¡  ¡ 
                                                                                          ¥ ¥ ¡ ¡ ¡ ¡ ¡   
                                                                                             ¤  ¤  £ ¢ £ ¢ £ ¢                 
                                                                                           ¥¤ ¥¤ £¢ £¢ £¢   ¡  ¡  ¡  ¡  ¡ 
11
                                                                         Replication possible even over
                                       Possible data loss on fail-over




                                                                                                                                                                                     Table-level granularity allows
        Triggers add overhead to the




                                                                                                                          Slave can execute read-only



                                                                                                                                                                                     complex data partitioning
                                                                                                                                                                                     configurations
                                                                         slow links


                                                                                                                          queries
        master
Slony




                                                                                                                                                                                            
                                                                                                          ¨ ©¨ ©¨                ¡  ¡  ¡  ¡                        
                                                                                                           ¨ ©¨ ©¨               ¡  ¡  ¡  ¡                        
                                                                                                            ¨ ¨© ¨© ¡¡¡¡ 
                                                                                                                                               
                                                                                                                                    
                                                                                                             ¨ ©¨ ©¨             ¡  ¡  ¡  ¡                        
                                                                                                              ¨ ¨©¨©¡¡¡¡ 
                                                                                                                              
                                                                                                                                     
                                                                                                                                 ¡  ¡  ¡  ¡ 




                                                                                                                                                                                 Asynchronous




                                                                                                                                                                                                                      PostgreSQL Replication Solutions
                                                                                                          ¢ £¢ £¢                  ¥¤ ¥¤ ¥¤ ¥¤                §¦ §¦ §¦ §¦ §¦ §¦ §¦
                                                                                                           ¢ £¢ £¢                 ¥¤ ¥¤ ¥¤ ¥¤                §¦ §¦ §¦ §¦ §¦ §¦ §¦
                                                                                                            ¢ ¢£ ¢£ ¥¥¥¥§¦§¦§¦§¦§¦§¦§¦ 
                                                                                                                       ¤ ¤ ¤ ¤                 
                                                                                                                                      
                                                                                                             ¢ £¢ £¢               ¥¤ ¥¤ ¥¤ ¥¤                §¦ §¦ §¦ §¦ §¦ §¦ §¦
                                                                                                              ¢ ¢£ ¢£ ¥¥¥¥§¦§¦§¦§¦§¦§¦§¦ 
                                                                                                                        ¤ ¤ ¤ ¤
12
Slony - Cascading Slaves




                                                                                       54 54 32 32 32              10 10 10 10 10        )( )(  ' ' ' $ %$ %$ %$ %$ %$
                                                                                       54 54 32 32 32              10 10 10 10 10        )( )(  ' ' ' $ %$ %$ %$ %$ %$
                                                                                    @ 5 7@ 5 7@ 79 9 9 @ 7@ 7@ 7@ 1 7@ 1 71 97@ 1 7
                                                                                     777723@ 7723@ 7723@ 777777@77@ 1 9 0
                                                                                        94 94 9           9 9 9 90 90 0 90            8 ) 7) 67 6 6 678 78 7% 678 % 78 % 78 % 7
                                                                                                                                       78787677'8 77'8 787'678777877778 % 6 $
                                                                                                                                          6( (                     6 6$ $ 6$ 6$ 6$
                                                                                       54 54 32 32 32              10 10 10 10 10        )( )(  ' ' ' $ %$ %$ %$ %$ %$
                              # # ! ! !                           
                              # # ! ! !                           
                           7777777777777P  I 
                           P # 7P # 7P 7P !7P !7P !7P 7P 7P 7P  7P  7P  7P  7
                               I  I  I I I I I I I I I I I
                              # # ! ! !                                                                                       ¨ ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦
                                                                                                                                ¨ ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦
                                                                                                                                      C77 G7C 7C 7BG77H7H77H7H7H7
                                                                                                                                       H7HC7HC7¨B77¨©H77¨©H7HC7¨©7HC777HC7777HC § BG ¦
                                                                                                                                         7 BG7 BG BG BG7C 7C 7§ BG7C § 7C § 7C § 7
                                                                                                                                          BG                       BG BG ¦ ¦ BG ¦ BG ¦ BG ¦
                                                                                                                                           ¨ ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦
                                                                                                                                                                            ¦ §¦ §¦ §¦ §¦ §¦
                                                                                    ¥¤ ¥¤ £¢ £¢ £¢                    
                                                                                    ¥¤ ¥¤ £¢ £¢ £¢                    
                                                                                    ¥ 7¥ 77£7£7£7777 7 7 A7 7 A 
                                                                                      A ¤ A ¤ A A ¢ A ¢ A ¢ A A A A A  A
                                                                                     ¥¤ ¥¤ £¢ £¢ £¢                   
                                                                                                                                       ¡  ¡           
                                                                                                                                       ¡  ¡           
                                                                                                                                      F7F7F7DE77F 77F 7F7DE7F777F7777F  DE 
                                                                                                                                       ¡ 7¡ DE77D7D77DE7F 7F 7 DE7F  7F  7F  7
                                                                                                                                         E   
                                                                                                                                         D77 E E 7D7D77D7D7D7        E E  E E E
                                                                                                                                        ¡  ¡           
                                                                                                                                                                              




                                                                                                                                                                                                PostgreSQL Replication Solutions
13
                                                                                                        Subscribers
                                                        Other
                   Subscriber




                                                                                                    ¥       ¥       ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥       ¥       ¥
                                                                                        ¤               ¤       ¤       ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤       ¤       ¤
                                                                                                    ¥       ¥       ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥       ¥       ¥
                                                                                        ¤               ¤       ¤       ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤       ¤       ¤
                                                                sl_log




                                                                                                    ¥       ¥       ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥       ¥       ¥
                                                                                        ¤               ¤       ¤       ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤       ¤       ¤
                                                                                                    ¥       ¥       ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥       ¥       ¥
                                                                                        ¤               ¤       ¤       ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤       ¤       ¤
                                                                                                    ¥       ¥       ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥       ¥       ¥
                                                                                        ¤               ¤       ¤       ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤       ¤       ¤
                                                                                                    ¥       ¥       ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥       ¥       ¥
                                                                                        ¤               ¤       ¤       ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤       ¤       ¤
                                                                                                    ¥       ¥       ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥       ¥       ¥
                                                                                        ¤               ¤       ¤       ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤       ¤       ¤
                                                                                                    ¥       ¥       ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥       ¥       ¥
                                                                                        ¤               ¤       ¤       ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤       ¤       ¤
                                                                                                                                                                                                                                                                                                                                            modifications
                                                                                                                                                                                                                                                                                                                                               CREATE
                                                                                                                                                                                                                                                                                                                                              TRIGGER
                                                                                                                                                                                                                                                                                                                                             prevents
Slony Internals




                                    %       %       %       %       %       %       %           %                               #               #               #               #               #               #               #               #                                                                                
                                    $       $       $       $       $       $       $           $                                                                                                                                                                                                                        
                                ©       ©       ©       ©       ©       ©       ©           ©                               §               §               §               §               §               §               §               §                                                                                
                                    ¨       ¨       ¨       ¨       ¨       ¨       ¨           ¨                               ¦               ¦               ¦               ¦               ¦               ¦               ¦               ¦                                                                                
                                    %       %       %       %       %       %       %           %                               #               #               #               #               #               #               #               #                                                                                
                                    $       $       $       $       $       $       $           $                                                                                                                                                                                                                        
                                ©       ©       ©       ©       ©       ©       ©           ©                               §               §               §               §               §               §               §               §                                                                                
                                    ¨       ¨       ¨       ¨       ¨       ¨       ¨           ¨                               ¦               ¦               ¦               ¦               ¦               ¦               ¦               ¦                                                                                
                                    %       %       %       %       %       %       %           %                               #               #               #               #               #               #               #               #                                                                                
                                    $       $       $       $       $       $       $           $                                                                                                                                                                                                                        
                                ©       ©       ©       ©       ©       ©       ©           ©                               §               §               §               §               §               §               §               §                                                                                
                                    ¨       ¨       ¨       ¨       ¨       ¨       ¨           ¨                               ¦               ¦               ¦               ¦               ¦               ¦               ¦               ¦                                                                                
                  User




                                ©       ©       ©       ©       ©       ©       ©           ©                               §               §               §               §               §               §               §               §                                                                                
                                    ¨       ¨       ¨       ¨       ¨       ¨       ¨           ¨                               ¦               ¦               ¦               ¦               ¦               ¦               ¦               ¦                                                                                
                                ©       ©       ©       ©       ©       ©       ©           ©                               §               §               §               §               §               §               §               §                                                                                
                                    ¨       ¨       ¨       ¨       ¨       ¨       ¨           ¨                               ¦               ¦               ¦               ¦               ¦               ¦               ¦               ¦                                                                                
                                ©       ©       ©       ©       ©       ©       ©           ©                               §               §               §               §               §               §               §               §                                                                                
                                    ¨       ¨       ¨       ¨       ¨       ¨       ¨           ¨                               ¦               ¦               ¦               ¦               ¦               ¦               ¦               ¦                                                                                
                                ©       ©       ©       ©       ©       ©       ©           ©                               §               §               §               §               §               §               §               §                                                                                
                                    ¨       ¨       ¨       ¨       ¨       ¨       ¨           ¨                               ¦               ¦               ¦               ¦               ¦               ¦               ¦               ¦                                                                                
                                ©       ©       ©       ©       ©       ©       ©           ©                               §               §               §               §               §               §               §               §                                                                                
                                    ¨       ¨       ¨       ¨       ¨       ¨       ¨           ¨                               ¦               ¦               ¦               ¦               ¦               ¦               ¦               ¦                                                                                
                                ©       ©       ©       ©       ©       ©       ©           ©                               §               §               §               §               §               §               §               §                                                                                
                                    ¨       ¨       ¨       ¨       ¨       ¨       ¨           ¨                               ¦               ¦               ¦               ¦               ¦               ¦               ¦               ¦                                                                                




                                                                                                                                                                                                                                                                                                                                                                          Slonik
                                                                                                                                                                                                                                                                                                                                                  fills sl_log
                                                                                                                                                                                                                                                                                                                                               TRIGGER
                                                                                                                                                                                                                                                                                                                                            CREATE
                                                                                                    ¡       ¡       ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡       ¡       ¡
                                                                                                                                                                                                                                                                         
                                                                                                    ¡       ¡       ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡       ¡       ¡
                                                                                                                                                                                                                                                                         
                                                                sl_log



                                                                                                    ¡       ¡       ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡       ¡       ¡
                                                                                                                                                                                                                                                                         
                   Origin




                                                                                                    ¡       ¡       ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡       ¡       ¡
                                                                                                                                                                                                                                                                         
                                                                                                    ¡       ¡       ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡       ¡       ¡
                                                                                                                                                                                                                                                                         




                                                                                                                                                                                                                                                                                                                                                                 CREATE
                                                                                                    ¡       ¡       ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡       ¡       ¡
                                                                                                                                                                                                                                                                         




                                                                                                                                                                                                                                                                                                                                                                           TABLE




                                                                                                                                                                                                                                                                                                                                                                                         PostgreSQL Replication Solutions
                                                                                                    ¡       ¡       ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡       ¡       ¡
                                                                                                                                                                                                                                                                         




                                                                                                                                                                                                                                                                                                                                                                                   ...
                                                                                                    ¡       ¡       ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡       ¡       ¡
                                                                                                                                                                                                                                                                         
                                                                                                    ¡       ¡       ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡       ¡       ¡
                                                                                                                                                                                                                                                                         
                                                                                                                    !               !               !               !               !               !               !               !                               '       '       '       '       '       '       '       '
                                                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                            £       £       £       £       £       £       £       £
                                                                                                                                                                                                                                                                ¢       ¢       ¢       ¢       ¢       ¢       ¢       ¢
                                                                                                                    !               !               !               !               !               !               !               !                               '       '       '       '       '       '       '       '
                                                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                            £       £       £       £       £       £       £       £
                                                                                                                                                                                                                                                                ¢       ¢       ¢       ¢       ¢       ¢       ¢       ¢
                                                                                                                                                                                                                                                            £       £       £       £       £       £       £       £
                                                                                                                                                                                                                                                                ¢       ¢       ¢       ¢       ¢       ¢       ¢       ¢




                  User
                                                                                                                                                                                                                                                            £       £       £       £       £       £       £       £
                                                                                                                                                                                                                                                                ¢       ¢       ¢       ¢       ¢       ¢       ¢       ¢
                                                                                                                                                                                                                                                            £       £       £       £       £       £       £       £
                                                                                                                                                                                                                                                                ¢       ¢       ¢       ¢       ¢       ¢       ¢       ¢
                                                                                                                                                                                                                                                            £       £       £       £       £       £       £       £
                                                                                                                                                                                                                                                                ¢       ¢       ¢       ¢       ¢       ¢       ¢       ¢
                                                                                                                                                                                                                                                            £       £       £       £       £       £       £       £
                                                                                                                                                                                                                                                                ¢       ¢       ¢       ¢       ¢       ¢       ¢       ¢
                                                                                                                                                                                                                                                            £       £       £       £       £       £       £       £
                                                                                                                                                                                                                                                                ¢       ¢       ¢       ¢       ¢       ¢       ¢       ¢
                                                                                                                                                                                                                                                            £       £       £       £       £       £       £       £
                                                                                                                                                                                                                                                                ¢       ¢       ¢       ¢       ¢       ¢       ¢       ¢
14
                     Subscriber




                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                      sl_log




                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                      @        @        @        @        @        @        @        @
                                      @A       @A       @A       @A       @A       @A       @A       @A                               %               %               %               %               %               %               %               %                               9       9       9       9       9       9       9       9
                                                                                                                                      $               $               $               $               $               $               $               $                               8       8       8       8       8       8       8       8
                                  ©        ©        ©        ©        ©        ©        ©        ©                                ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡                                                                                
                                      ¨        ¨        ¨        ¨        ¨        ¨        ¨        ¨                                                                                                                                                                                                                                 
                                      A        A        A        A        A        A        A        A                                %               %               %               %               %               %               %               %                               9       9       9       9       9       9       9       9
                                                                                                                                      $               $               $               $               $               $               $               $                               8       8       8       8       8       8       8       8
                                  ©        ©        ©        ©        ©        ©        ©        ©                                ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡                                                                                
                                      ¨        ¨        ¨        ¨        ¨        ¨        ¨        ¨                                                                                                                                                                                                                                 
                                  ©        ©        ©        ©        ©        ©        ©        ©                                ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡                                                                                
                                      ¨        ¨        ¨        ¨        ¨        ¨        ¨        ¨                                                                                                                                                                                                                                 
                    User




                                  ©        ©        ©        ©        ©        ©        ©        ©                                ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡                                                                                
                                      ¨        ¨        ¨        ¨        ¨        ¨        ¨        ¨                                                                                                                                                                                                                                 
                                  ©        ©        ©        ©        ©        ©        ©        ©                                ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡                                                                                
                                      ¨        ¨        ¨        ¨        ¨        ¨        ¨        ¨                                                                                                                                                                                                                                 
                                  ©        ©        ©        ©        ©        ©        ©        ©                                ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡                                                                                
                                      ¨        ¨        ¨        ¨        ¨        ¨        ¨        ¨                                                                                                                                                                                                                                 
                                  ©        ©        ©        ©        ©        ©        ©        ©                                ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡                                                                                
                                      ¨        ¨        ¨        ¨        ¨        ¨        ¨        ¨                                                                                                                                                                                                                                 
                                  ©        ©        ©        ©        ©        ©        ©        ©                                ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡                                                                                
                                      ¨        ¨        ¨        ¨        ¨        ¨        ¨        ¨                                                                                                                                                                                                                                 
                                  ©        ©        ©        ©        ©        ©        ©        ©                                ¡               ¡               ¡               ¡               ¡               ¡               ¡               ¡                                                                                
                                      ¨        ¨        ¨        ¨        ¨        ¨        ¨        ¨                                                                                                                                                                                                                                 
Slony Multi-Slave


                     Subscriber




                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                      sl_log




                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                      '        '        '        '        '        '        '        '                                1               1               1               1               1               1               1               1                               3       3       3       3       3       3       3       3
                                                                                                                              0               0               0               0               0               0               0               0                               2       2       2       2       2       2       2       2
                                                                                                                          #               #               #               #               #               #               #               #                               !       !       !       !       !       !       !       !
                                                                                                                                                                                                                                       
                                      '        '        '        '        '        '        '        '                                1               1               1               1               1               1               1               1                               3       3       3       3       3       3       3       3
                                                                                                                              0               0               0               0               0               0               0               0                               2       2       2       2       2       2       2       2
                                                                                                                          #               #               #               #               #               #               #               #                               !       !       !       !       !       !       !       !
                                                                                                                                                                                                                                       
                                                                                                                          #               #               #               #               #               #               #               #                               !       !       !       !       !       !       !       !
                                                                                                                                                                                                                                       
                    User




                                                                                                                          #               #               #               #               #               #               #               #                               !       !       !       !       !       !       !       !
                                                                                                                                                                                                                                       
                                                                                                                          #               #               #               #               #               #               #               #                               !       !       !       !       !       !       !       !
                                                                                                                                                                                                                                       
                                                                                                                          #               #               #               #               #               #               #               #                               !       !       !       !       !       !       !       !
                                                                                                                                                                                                                                       
                                                                                                                          #               #               #               #               #               #               #               #                               !       !       !       !       !       !       !       !
                                                                                                                                                                                                                                       
                                                                                                                          #               #               #               #               #               #               #               #                               !       !       !       !       !       !       !       !
                                                                                                                                                                                                                                       
                                                                                                                          #               #               #               #               #               #               #               #                               !       !       !       !       !       !       !       !
                                                                                                                                                                                                                                       




                                                                                                                                                                                                                                                                                                                                                  PostgreSQL Replication Solutions
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                      sl_log

                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                     Origin


                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                  
                                  )        )        )        )        )        )        )        )                                5               5               5               5               5               5               5               5                               7       7       7       7       7       7       7       7
                                      (        (        (        (        (        (        (        (                                4               4               4               4               4               4               4               4                               6       6       6       6       6       6       6       6
                                  £        £        £        £        £        £        £        £                                ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥                               §       §       §       §       §       §       §       §
                                      ¢        ¢        ¢        ¢        ¢        ¢        ¢        ¢                                ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤                               ¦       ¦       ¦       ¦       ¦       ¦       ¦       ¦
                                  )        )        )        )        )        )        )        )                                5               5               5               5               5               5               5               5                               7       7       7       7       7       7       7       7
                                      (        (        (        (        (        (        (        (                                4               4               4               4               4               4               4               4                               6       6       6       6       6       6       6       6
                                  £        £        £        £        £        £        £        £                                ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥                               §       §       §       §       §       §       §       §
                                      ¢        ¢        ¢        ¢        ¢        ¢        ¢        ¢                                ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤                               ¦       ¦       ¦       ¦       ¦       ¦       ¦       ¦
                                  )        )        )        )        )        )        )        )                                5               5               5               5               5               5               5               5                               7       7       7       7       7       7       7       7
                                      (        (        (        (        (        (        (        (                                4               4               4               4               4               4               4               4                               6       6       6       6       6       6       6       6




                    User
                                  £        £        £        £        £        £        £        £                                ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥                               §       §       §       §       §       §       §       §
                                      ¢        ¢        ¢        ¢        ¢        ¢        ¢        ¢                                ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤                               ¦       ¦       ¦       ¦       ¦       ¦       ¦       ¦
                                  £        £        £        £        £        £        £        £                                ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥                               §       §       §       §       §       §       §       §
                                      ¢        ¢        ¢        ¢        ¢        ¢        ¢        ¢                                ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤                               ¦       ¦       ¦       ¦       ¦       ¦       ¦       ¦
                                  £        £        £        £        £        £        £        £                                ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥                               §       §       §       §       §       §       §       §
                                      ¢        ¢        ¢        ¢        ¢        ¢        ¢        ¢                                ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤                               ¦       ¦       ¦       ¦       ¦       ¦       ¦       ¦
                                  £        £        £        £        £        £        £        £                                ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥                               §       §       §       §       §       §       §       §
                                      ¢        ¢        ¢        ¢        ¢        ¢        ¢        ¢                                ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤                               ¦       ¦       ¦       ¦       ¦       ¦       ¦       ¦
                                  £        £        £        £        £        £        £        £                                ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥                               §       §       §       §       §       §       §       §
                                      ¢        ¢        ¢        ¢        ¢        ¢        ¢        ¢                                ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤                               ¦       ¦       ¦       ¦       ¦       ¦       ¦       ¦
                                  £        £        £        £        £        £        £        £                                ¥               ¥               ¥               ¥               ¥               ¥               ¥               ¥                               §       §       §       §       §       §       §       §
                                      ¢        ¢        ¢        ¢        ¢        ¢        ¢        ¢                                ¤               ¤               ¤               ¤               ¤               ¤               ¤               ¤                               ¦       ¦       ¦       ¦       ¦       ¦       ¦       ¦
PostgreSQL Replication Solutions
PostgreSQL Replication Solutions
PostgreSQL Replication Solutions
PostgreSQL Replication Solutions
PostgreSQL Replication Solutions

Más contenido relacionado

Similar a PostgreSQL Replication Solutions

LA County – California - 2016 Presidential Primary Elections
LA County – California - 2016 Presidential Primary ElectionsLA County – California - 2016 Presidential Primary Elections
LA County – California - 2016 Presidential Primary ElectionsSmartmatic
 
Callaghan Design2 Packet 02.17.16
Callaghan Design2 Packet 02.17.16Callaghan Design2 Packet 02.17.16
Callaghan Design2 Packet 02.17.16John Zierke
 
Why Customers Choose Veracity Networks
Why Customers Choose Veracity NetworksWhy Customers Choose Veracity Networks
Why Customers Choose Veracity NetworksCasey Jovan
 
分布式系统原理与范例读书笔记
分布式系统原理与范例读书笔记分布式系统原理与范例读书笔记
分布式系统原理与范例读书笔记Karl Xue
 
Forces Behind The Connected Car
Forces Behind The Connected CarForces Behind The Connected Car
Forces Behind The Connected CarStradablog
 
20094324034338
2009432403433820094324034338
20094324034338pogoshio
 
Pesquisa do IAC e ESALQ indicam cultivares de milho para silagem no Estado de...
Pesquisa do IAC e ESALQ indicam cultivares de milho para silagem no Estado de...Pesquisa do IAC e ESALQ indicam cultivares de milho para silagem no Estado de...
Pesquisa do IAC e ESALQ indicam cultivares de milho para silagem no Estado de...Agricultura Sao Paulo
 
郭沫若诗歌的“神话转型题旨”与文学想象意义
郭沫若诗歌的“神话转型题旨”与文学想象意义郭沫若诗歌的“神话转型题旨”与文学想象意义
郭沫若诗歌的“神话转型题旨”与文学想象意义sugeladi
 
Open plan apartments - revisiting risks in light of contemporary demands
Open plan apartments - revisiting risks in light of contemporary demandsOpen plan apartments - revisiting risks in light of contemporary demands
Open plan apartments - revisiting risks in light of contemporary demandsDanny Hopkin
 
Anteproyecto collage para la actuación en el parque arquológico de los hitos...
Anteproyecto collage para  la actuación en el parque arquológico de los hitos...Anteproyecto collage para  la actuación en el parque arquológico de los hitos...
Anteproyecto collage para la actuación en el parque arquológico de los hitos...David Pérez
 
Dillon Valley West Landscape Master Plan 2015, Dillon, CO
Dillon Valley West Landscape Master Plan 2015, Dillon, CODillon Valley West Landscape Master Plan 2015, Dillon, CO
Dillon Valley West Landscape Master Plan 2015, Dillon, CODan Skinner
 

Similar a PostgreSQL Replication Solutions (20)

LA County – California - 2016 Presidential Primary Elections
LA County – California - 2016 Presidential Primary ElectionsLA County – California - 2016 Presidential Primary Elections
LA County – California - 2016 Presidential Primary Elections
 
Callaghan Design2 Packet 02.17.16
Callaghan Design2 Packet 02.17.16Callaghan Design2 Packet 02.17.16
Callaghan Design2 Packet 02.17.16
 
Why Customers Choose Veracity Networks
Why Customers Choose Veracity NetworksWhy Customers Choose Veracity Networks
Why Customers Choose Veracity Networks
 
分布式系统原理与范例读书笔记
分布式系统原理与范例读书笔记分布式系统原理与范例读书笔记
分布式系统原理与范例读书笔记
 
final
finalfinal
final
 
Fatty acids01
Fatty acids01Fatty acids01
Fatty acids01
 
Forces Behind The Connected Car
Forces Behind The Connected CarForces Behind The Connected Car
Forces Behind The Connected Car
 
President Awards
President AwardsPresident Awards
President Awards
 
Mercados V+
Mercados V+Mercados V+
Mercados V+
 
20094324034338
2009432403433820094324034338
20094324034338
 
Capurro
CapurroCapurro
Capurro
 
Evolução no plantio de cana
Evolução no plantio de canaEvolução no plantio de cana
Evolução no plantio de cana
 
Henriette Slot CV
Henriette Slot CVHenriette Slot CV
Henriette Slot CV
 
Pesquisa do IAC e ESALQ indicam cultivares de milho para silagem no Estado de...
Pesquisa do IAC e ESALQ indicam cultivares de milho para silagem no Estado de...Pesquisa do IAC e ESALQ indicam cultivares de milho para silagem no Estado de...
Pesquisa do IAC e ESALQ indicam cultivares de milho para silagem no Estado de...
 
郭沫若诗歌的“神话转型题旨”与文学想象意义
郭沫若诗歌的“神话转型题旨”与文学想象意义郭沫若诗歌的“神话转型题旨”与文学想象意义
郭沫若诗歌的“神话转型题旨”与文学想象意义
 
SCM 7.0 EHP3
SCM 7.0 EHP3SCM 7.0 EHP3
SCM 7.0 EHP3
 
Open plan apartments - revisiting risks in light of contemporary demands
Open plan apartments - revisiting risks in light of contemporary demandsOpen plan apartments - revisiting risks in light of contemporary demands
Open plan apartments - revisiting risks in light of contemporary demands
 
Anteproyecto collage para la actuación en el parque arquológico de los hitos...
Anteproyecto collage para  la actuación en el parque arquológico de los hitos...Anteproyecto collage para  la actuación en el parque arquológico de los hitos...
Anteproyecto collage para la actuación en el parque arquológico de los hitos...
 
Dillon Valley West Landscape Master Plan 2015, Dillon, CO
Dillon Valley West Landscape Master Plan 2015, Dillon, CODillon Valley West Landscape Master Plan 2015, Dillon, CO
Dillon Valley West Landscape Master Plan 2015, Dillon, CO
 
Classe gagnante du 1er pris du Grand concours d'ecriture, categorie Raconte-m...
Classe gagnante du 1er pris du Grand concours d'ecriture, categorie Raconte-m...Classe gagnante du 1er pris du Grand concours d'ecriture, categorie Raconte-m...
Classe gagnante du 1er pris du Grand concours d'ecriture, categorie Raconte-m...
 

Más de elliando dias

Clojurescript slides
Clojurescript slidesClojurescript slides
Clojurescript slideselliando dias
 
Why you should be excited about ClojureScript
Why you should be excited about ClojureScriptWhy you should be excited about ClojureScript
Why you should be excited about ClojureScriptelliando dias
 
Functional Programming with Immutable Data Structures
Functional Programming with Immutable Data StructuresFunctional Programming with Immutable Data Structures
Functional Programming with Immutable Data Structureselliando dias
 
Nomenclatura e peças de container
Nomenclatura  e peças de containerNomenclatura  e peças de container
Nomenclatura e peças de containerelliando dias
 
Polyglot and Poly-paradigm Programming for Better Agility
Polyglot and Poly-paradigm Programming for Better AgilityPolyglot and Poly-paradigm Programming for Better Agility
Polyglot and Poly-paradigm Programming for Better Agilityelliando dias
 
Javascript Libraries
Javascript LibrariesJavascript Libraries
Javascript Librarieselliando dias
 
How to Make an Eight Bit Computer and Save the World!
How to Make an Eight Bit Computer and Save the World!How to Make an Eight Bit Computer and Save the World!
How to Make an Eight Bit Computer and Save the World!elliando dias
 
A Practical Guide to Connecting Hardware to the Web
A Practical Guide to Connecting Hardware to the WebA Practical Guide to Connecting Hardware to the Web
A Practical Guide to Connecting Hardware to the Webelliando dias
 
Introdução ao Arduino
Introdução ao ArduinoIntrodução ao Arduino
Introdução ao Arduinoelliando dias
 
Incanter Data Sorcery
Incanter Data SorceryIncanter Data Sorcery
Incanter Data Sorceryelliando dias
 
Fab.in.a.box - Fab Academy: Machine Design
Fab.in.a.box - Fab Academy: Machine DesignFab.in.a.box - Fab Academy: Machine Design
Fab.in.a.box - Fab Academy: Machine Designelliando dias
 
The Digital Revolution: Machines that makes
The Digital Revolution: Machines that makesThe Digital Revolution: Machines that makes
The Digital Revolution: Machines that makeselliando dias
 
Hadoop - Simple. Scalable.
Hadoop - Simple. Scalable.Hadoop - Simple. Scalable.
Hadoop - Simple. Scalable.elliando dias
 
Hadoop and Hive Development at Facebook
Hadoop and Hive Development at FacebookHadoop and Hive Development at Facebook
Hadoop and Hive Development at Facebookelliando dias
 
Multi-core Parallelization in Clojure - a Case Study
Multi-core Parallelization in Clojure - a Case StudyMulti-core Parallelization in Clojure - a Case Study
Multi-core Parallelization in Clojure - a Case Studyelliando dias
 

Más de elliando dias (20)

Clojurescript slides
Clojurescript slidesClojurescript slides
Clojurescript slides
 
Why you should be excited about ClojureScript
Why you should be excited about ClojureScriptWhy you should be excited about ClojureScript
Why you should be excited about ClojureScript
 
Functional Programming with Immutable Data Structures
Functional Programming with Immutable Data StructuresFunctional Programming with Immutable Data Structures
Functional Programming with Immutable Data Structures
 
Nomenclatura e peças de container
Nomenclatura  e peças de containerNomenclatura  e peças de container
Nomenclatura e peças de container
 
Geometria Projetiva
Geometria ProjetivaGeometria Projetiva
Geometria Projetiva
 
Polyglot and Poly-paradigm Programming for Better Agility
Polyglot and Poly-paradigm Programming for Better AgilityPolyglot and Poly-paradigm Programming for Better Agility
Polyglot and Poly-paradigm Programming for Better Agility
 
Javascript Libraries
Javascript LibrariesJavascript Libraries
Javascript Libraries
 
How to Make an Eight Bit Computer and Save the World!
How to Make an Eight Bit Computer and Save the World!How to Make an Eight Bit Computer and Save the World!
How to Make an Eight Bit Computer and Save the World!
 
Ragel talk
Ragel talkRagel talk
Ragel talk
 
A Practical Guide to Connecting Hardware to the Web
A Practical Guide to Connecting Hardware to the WebA Practical Guide to Connecting Hardware to the Web
A Practical Guide to Connecting Hardware to the Web
 
Introdução ao Arduino
Introdução ao ArduinoIntrodução ao Arduino
Introdução ao Arduino
 
Minicurso arduino
Minicurso arduinoMinicurso arduino
Minicurso arduino
 
Incanter Data Sorcery
Incanter Data SorceryIncanter Data Sorcery
Incanter Data Sorcery
 
Rango
RangoRango
Rango
 
Fab.in.a.box - Fab Academy: Machine Design
Fab.in.a.box - Fab Academy: Machine DesignFab.in.a.box - Fab Academy: Machine Design
Fab.in.a.box - Fab Academy: Machine Design
 
The Digital Revolution: Machines that makes
The Digital Revolution: Machines that makesThe Digital Revolution: Machines that makes
The Digital Revolution: Machines that makes
 
Hadoop + Clojure
Hadoop + ClojureHadoop + Clojure
Hadoop + Clojure
 
Hadoop - Simple. Scalable.
Hadoop - Simple. Scalable.Hadoop - Simple. Scalable.
Hadoop - Simple. Scalable.
 
Hadoop and Hive Development at Facebook
Hadoop and Hive Development at FacebookHadoop and Hive Development at Facebook
Hadoop and Hive Development at Facebook
 
Multi-core Parallelization in Clojure - a Case Study
Multi-core Parallelization in Clojure - a Case StudyMulti-core Parallelization in Clojure - a Case Study
Multi-core Parallelization in Clojure - a Case Study
 

Último

trabajotecologiaisabella-240424003133-8f126965.pdf
trabajotecologiaisabella-240424003133-8f126965.pdftrabajotecologiaisabella-240424003133-8f126965.pdf
trabajotecologiaisabella-240424003133-8f126965.pdfIsabellaMontaomurill
 
Instrumentación Hoy_ INTERPRETAR EL DIAGRAMA UNIFILAR GENERAL DE UNA PLANTA I...
Instrumentación Hoy_ INTERPRETAR EL DIAGRAMA UNIFILAR GENERAL DE UNA PLANTA I...Instrumentación Hoy_ INTERPRETAR EL DIAGRAMA UNIFILAR GENERAL DE UNA PLANTA I...
Instrumentación Hoy_ INTERPRETAR EL DIAGRAMA UNIFILAR GENERAL DE UNA PLANTA I...AlanCedillo9
 
Plan de aula informatica segundo periodo.docx
Plan de aula informatica segundo periodo.docxPlan de aula informatica segundo periodo.docx
Plan de aula informatica segundo periodo.docxpabonheidy28
 
La era de la educación digital y sus desafios
La era de la educación digital y sus desafiosLa era de la educación digital y sus desafios
La era de la educación digital y sus desafiosFundación YOD YOD
 
ejercicios pseint para aprogramacion sof
ejercicios pseint para aprogramacion sofejercicios pseint para aprogramacion sof
ejercicios pseint para aprogramacion sofJuancarlosHuertasNio1
 
Redes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdfRedes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdfsoporteupcology
 
International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)GDGSucre
 
Cortes-24-de-abril-Tungurahua-3 año 2024
Cortes-24-de-abril-Tungurahua-3 año 2024Cortes-24-de-abril-Tungurahua-3 año 2024
Cortes-24-de-abril-Tungurahua-3 año 2024GiovanniJavierHidalg
 
Presentación inteligencia artificial en la actualidad
Presentación inteligencia artificial en la actualidadPresentación inteligencia artificial en la actualidad
Presentación inteligencia artificial en la actualidadMiguelAngelVillanuev48
 
KELA Presentacion Costa Rica 2024 - evento Protégeles
KELA Presentacion Costa Rica 2024 - evento ProtégelesKELA Presentacion Costa Rica 2024 - evento Protégeles
KELA Presentacion Costa Rica 2024 - evento ProtégelesFundación YOD YOD
 
guía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan Josephguía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan JosephBRAYANJOSEPHPEREZGOM
 
PARTES DE UN OSCILOSCOPIO ANALOGICO .pdf
PARTES DE UN OSCILOSCOPIO ANALOGICO .pdfPARTES DE UN OSCILOSCOPIO ANALOGICO .pdf
PARTES DE UN OSCILOSCOPIO ANALOGICO .pdfSergioMendoza354770
 
Medidas de formas, coeficiente de asimetría y coeficiente de curtosis.pptx
Medidas de formas, coeficiente de asimetría y coeficiente de curtosis.pptxMedidas de formas, coeficiente de asimetría y coeficiente de curtosis.pptx
Medidas de formas, coeficiente de asimetría y coeficiente de curtosis.pptxaylincamaho
 
Proyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptxProyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptx241521559
 
Global Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft FabricGlobal Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft FabricKeyla Dolores Méndez
 
El gusano informático Morris (1988) - Julio Ardita (1995) - Citizenfour (2014...
El gusano informático Morris (1988) - Julio Ardita (1995) - Citizenfour (2014...El gusano informático Morris (1988) - Julio Ardita (1995) - Citizenfour (2014...
El gusano informático Morris (1988) - Julio Ardita (1995) - Citizenfour (2014...JaquelineJuarez15
 
CLASE DE TECNOLOGIA E INFORMATICA PRIMARIA
CLASE  DE TECNOLOGIA E INFORMATICA PRIMARIACLASE  DE TECNOLOGIA E INFORMATICA PRIMARIA
CLASE DE TECNOLOGIA E INFORMATICA PRIMARIAWilbisVega
 
SalmorejoTech 2024 - Spring Boot <3 Testcontainers
SalmorejoTech 2024 - Spring Boot <3 TestcontainersSalmorejoTech 2024 - Spring Boot <3 Testcontainers
SalmorejoTech 2024 - Spring Boot <3 TestcontainersIván López Martín
 
Hernandez_Hernandez_Practica web de la sesion 12.pptx
Hernandez_Hernandez_Practica web de la sesion 12.pptxHernandez_Hernandez_Practica web de la sesion 12.pptx
Hernandez_Hernandez_Practica web de la sesion 12.pptxJOSEMANUELHERNANDEZH11
 
ATAJOS DE WINDOWS. Los diferentes atajos para utilizar en windows y ser más e...
ATAJOS DE WINDOWS. Los diferentes atajos para utilizar en windows y ser más e...ATAJOS DE WINDOWS. Los diferentes atajos para utilizar en windows y ser más e...
ATAJOS DE WINDOWS. Los diferentes atajos para utilizar en windows y ser más e...FacuMeza2
 

Último (20)

trabajotecologiaisabella-240424003133-8f126965.pdf
trabajotecologiaisabella-240424003133-8f126965.pdftrabajotecologiaisabella-240424003133-8f126965.pdf
trabajotecologiaisabella-240424003133-8f126965.pdf
 
Instrumentación Hoy_ INTERPRETAR EL DIAGRAMA UNIFILAR GENERAL DE UNA PLANTA I...
Instrumentación Hoy_ INTERPRETAR EL DIAGRAMA UNIFILAR GENERAL DE UNA PLANTA I...Instrumentación Hoy_ INTERPRETAR EL DIAGRAMA UNIFILAR GENERAL DE UNA PLANTA I...
Instrumentación Hoy_ INTERPRETAR EL DIAGRAMA UNIFILAR GENERAL DE UNA PLANTA I...
 
Plan de aula informatica segundo periodo.docx
Plan de aula informatica segundo periodo.docxPlan de aula informatica segundo periodo.docx
Plan de aula informatica segundo periodo.docx
 
La era de la educación digital y sus desafios
La era de la educación digital y sus desafiosLa era de la educación digital y sus desafios
La era de la educación digital y sus desafios
 
ejercicios pseint para aprogramacion sof
ejercicios pseint para aprogramacion sofejercicios pseint para aprogramacion sof
ejercicios pseint para aprogramacion sof
 
Redes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdfRedes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdf
 
International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)
 
Cortes-24-de-abril-Tungurahua-3 año 2024
Cortes-24-de-abril-Tungurahua-3 año 2024Cortes-24-de-abril-Tungurahua-3 año 2024
Cortes-24-de-abril-Tungurahua-3 año 2024
 
Presentación inteligencia artificial en la actualidad
Presentación inteligencia artificial en la actualidadPresentación inteligencia artificial en la actualidad
Presentación inteligencia artificial en la actualidad
 
KELA Presentacion Costa Rica 2024 - evento Protégeles
KELA Presentacion Costa Rica 2024 - evento ProtégelesKELA Presentacion Costa Rica 2024 - evento Protégeles
KELA Presentacion Costa Rica 2024 - evento Protégeles
 
guía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan Josephguía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan Joseph
 
PARTES DE UN OSCILOSCOPIO ANALOGICO .pdf
PARTES DE UN OSCILOSCOPIO ANALOGICO .pdfPARTES DE UN OSCILOSCOPIO ANALOGICO .pdf
PARTES DE UN OSCILOSCOPIO ANALOGICO .pdf
 
Medidas de formas, coeficiente de asimetría y coeficiente de curtosis.pptx
Medidas de formas, coeficiente de asimetría y coeficiente de curtosis.pptxMedidas de formas, coeficiente de asimetría y coeficiente de curtosis.pptx
Medidas de formas, coeficiente de asimetría y coeficiente de curtosis.pptx
 
Proyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptxProyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptx
 
Global Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft FabricGlobal Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft Fabric
 
El gusano informático Morris (1988) - Julio Ardita (1995) - Citizenfour (2014...
El gusano informático Morris (1988) - Julio Ardita (1995) - Citizenfour (2014...El gusano informático Morris (1988) - Julio Ardita (1995) - Citizenfour (2014...
El gusano informático Morris (1988) - Julio Ardita (1995) - Citizenfour (2014...
 
CLASE DE TECNOLOGIA E INFORMATICA PRIMARIA
CLASE  DE TECNOLOGIA E INFORMATICA PRIMARIACLASE  DE TECNOLOGIA E INFORMATICA PRIMARIA
CLASE DE TECNOLOGIA E INFORMATICA PRIMARIA
 
SalmorejoTech 2024 - Spring Boot <3 Testcontainers
SalmorejoTech 2024 - Spring Boot <3 TestcontainersSalmorejoTech 2024 - Spring Boot <3 Testcontainers
SalmorejoTech 2024 - Spring Boot <3 Testcontainers
 
Hernandez_Hernandez_Practica web de la sesion 12.pptx
Hernandez_Hernandez_Practica web de la sesion 12.pptxHernandez_Hernandez_Practica web de la sesion 12.pptx
Hernandez_Hernandez_Practica web de la sesion 12.pptx
 
ATAJOS DE WINDOWS. Los diferentes atajos para utilizar en windows y ser más e...
ATAJOS DE WINDOWS. Los diferentes atajos para utilizar en windows y ser más e...ATAJOS DE WINDOWS. Los diferentes atajos para utilizar en windows y ser más e...
ATAJOS DE WINDOWS. Los diferentes atajos para utilizar en windows y ser más e...
 

PostgreSQL Replication Solutions

  • 1. PostgreSQL Replication Solutions BRUCE MOMJIAN, ENTERPRISEDB December, 2008 Abstract Replication is a complex feature. POSTGRESQL supports a variety of replication options. http://momjian.us/presentations
  • 2. Uses for Replication Theolotech.com PostgreSQL Replication Solutions 1
  • 3. 2 ©¨ ©¨ §¦ §¦ §¦ §¦ ©¨ ©¨ §¦ §¦ §¦ §¦ ¨©¨© §§ § ¦¦§ ¦¦ ©¨ ©¨ §¦ §¦ §¦ §¦ ©¨ ©¨ §¦ §¦ §¦ §¦ Fail Over ¡  ¡  £¢ £¢ £¢ £¢ ¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¡  ¡  £¢ £¢ £¢ £¢ ¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ PostgreSQL Replication Solutions ¡  ¡  £¢ £¢ £¢ £¢ ¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¡  ¡  £¢ £¢ £¢ £¢ ¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¡  ¡  £¢ £¢ £¢ £¢ ¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤
  • 4. 3 ©¨ ©¨ §¦ §¦ §¦ §¦ ©¨ ©¨ §¦ §¦ §¦ §¦ ©¨ ©¨ §¦ §¦ §¦ §¦ ©¨ ©¨ §¦ §¦ §¦ §¦ ¨© ¨© §§§§ ¦ ¦ ¦ ¦ Load Balancing ¡  ¡  £¢ £¢ £¢ £¢ ¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¡  ¡  ¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ PostgreSQL Replication Solutions £¢ £¢ £¢ £¢  ¡  ¡ ££££¤¥¤¥¤¥¤¥¤¥¤¥¤¥¤ ¢ ¢ ¢ ¢ ¡  ¡  £¢ £¢ £¢ £¢ ¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤ ¥¤  ¡  ¡ ££££¤¥¤¥¤¥¤¥¤¥¤¥¤¥¤ ¢ ¢ ¢ ¢
  • 5. 4 ©¨ ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦ §¦ §¦ §¦ ©¨ ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦ §¦ §¦ §¦ ©¨ ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦ §¦ §¦ §¦ ©¨ ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦ §¦ §¦ §¦ ©©©©§§¦ §¦ §§§§¦ ¦ § ¦ ¨ ¨¨¨ ¦ ¦ ¦ ¦ Data Warehousing ¥¤ ¥¤ £¢ £¢ £¢ £¢   ¡  ¡  ¡  ¡  ¡  ¡  ¡  ¡  ¥¤ ¥¤ £¢ £¢ £¢ £¢   ¡  ¡  ¡  ¡  ¡  ¡  ¡  ¡  ¤¥¤¥ ££££¡¡  ¡  ¡¡¡¡    ¡   PostgreSQL Replication Solutions ¢ ¢¢¢         ¥¤ ¥¤ £¢ £¢ £¢ £¢   ¡  ¡  ¡  ¡  ¡  ¡  ¡  ¡  ¤¥¤¥ ££££¡¡  ¡  ¡¡¡¡    ¡   ¢ ¢¢¢        
  • 6. ©¨ ©¨ ¡  ¡  ¡  ¡  5 ©¨ ©¨ ¡  ¡  ¡  ¡  ©¨ ©¨ ¡  ¡  ¡  ¡  ©¨ ©¨ ¡  ¡  ¡  ¡  ©¨ ©¨ ¡  ¡  ¡  ¡  Remote Servers £¢ £¢ ¥¤ ¥¤ ¥¤ ¥¤ §¦ §¦ §¦ §¦ §¦ §¦ §¦ £¢ £¢ ¥¤ ¥¤ ¥¤ ¥¤ §¦ §¦ §¦ §¦ §¦ §¦ §¦ PostgreSQL Replication Solutions ¢£ ¢£¥¥¥¥¦§¦§¦§¦§ ¦§¦§¦§ ¤ ¤¤ ¤ £¢ £¢ ¥¤ ¥¤ ¥¤ ¥¤ §¦ §¦ §¦ §¦ §¦ §¦ §¦ £¢ £¢ ¥¤ ¥¤ ¥¤ ¥¤ §¦ §¦ §¦ §¦ §¦ §¦ §¦
  • 7. 6 Mobile Servers PostgreSQL Replication Solutions   ¡  ¡  ¥¤ ¥¤ ¥¤ ¥¤ £¢ £¢ £¢ £¢ £¢ £¢ £¢   ¡  ¡  ¥¤ ¥¤ ¥¤ ¥¤ £¢ £¢ £¢ £¢ £¢ £¢ £¢   ¡  ¡  ¥¤ ¥¤ ¥¤ ¥¤ £¢ £¢ £¢ £¢ £¢ £¢ £¢   ¡  ¡  ¥¤ ¥¤ ¥¤ ¥¤ £¢ £¢ £¢ £¢ £¢ £¢ £¢ §§ ¡¨ ¦ §§ ¡¨ §§§§¥§¥§¥§¥§§§§§§¢£§§¢£§§¢£§§¢£§§¢£§§¢£§§¢£§¨ ¦ ¦ ¦ ¨ §¨ §¨ §¨ ¤§¨ ¤§¨ ¤§¨ ¤§¨ §¨ §¨ §¨ §¨ ¦ ¨ ¦ ¨ ¦ ¨ ¦ ¨ ¦ ¨ ¦ ¨ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦
  • 8. Replication Solutions Taotaomona Computing PostgreSQL Replication Solutions 7
  • 9. 8 Slave cannot execute queries No data loss on fail-over No overhead Shared Storage Network−Attached Storage (NAS) ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦ ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦ ¨© ¨© ¨© § ¦ § § § § ¦ ¦ ¦ ¦ ¦ ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦ PostgreSQL Replication Solutions ¥¤ ¥¤ £¢ £¢ £¢   ¡  ¡  ¡  ¡  ¡  ¥¤ ¥¤ £¢ £¢ £¢   ¡  ¡  ¡  ¡  ¡  ¢£ ¢£ ¢£ ¡   ¥ ¥ ¡ ¡ ¡ ¡ ¤ ¤           ¥¤ ¥¤ £¢ £¢ £¢   ¡  ¡  ¡  ¡  ¡    ¡  ¡  ¡  ¡  ¡ 
  • 10. 9 Synchronous or asynchronous Possible data loss on fail-over Slave cannot execute queries when using asynchronous No overhead on master Storage Mirroring ©¨ ©¨ ©¨ §¦ §¦ §¦ §¦ §¦ ©¨ ©¨ ©¨ §¦ §¦ §¦ §¦ §¦ ¨© ¨© ¨© § ¦ § § § § ¦ ¦ ¦ ¦ ©¨ ©¨ ©¨ §¦ §¦ §¦ §¦ §¦ PostgreSQL Replication Solutions DRBD ¤¥ ¥ ¤ £ ¢ £ ¢ £ ¢ ¡  ¡  ¡  ¡  ¡  ¥¤ ¥¤ £¢ £¢ £¢ ¡  ¡  ¡  ¡  ¡  ¡ ¡ ¡ ¡ ¥ ¥         ¤ ¤ ¢£¢£ ¢£ ¡   ¥¤ ¥¤ £¢ £¢ £¢ ¡  ¡  ¡  ¡  ¡  ¡  ¡  ¡  ¡  ¡ 
  • 11. 10 Allowing slaves to execute queries Synchronous and auto-fail-over Possible data loss on fail-over modes under development when using asychonous No overhead on master is under development Point-In-Time Recovery (PITR) ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦ ¨© © ¨ © ¨ ¦ § ¦ § ¦ § ¦ § ¦ § ¦ § § § § ¨¨¨ § ¦ © © © ¦ ¦ ¦ ¦ ¦ ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦ ¦ §¦ §¦ §¦ §¦ §¦ Ahead (WAL) Write PostgreSQL Replication Solutions Log ¥¤ ¥¤ £¢ £¢ £¢   ¡  ¡  ¡  ¡  ¡  ¥¤ ¥¤ £¢ £¢ £¢   ¡  ¡  ¡  ¡  ¡  ¥ ¥ ¡ ¡ ¡ ¡ ¡   ¤ ¤ £ ¢ £ ¢ £ ¢           ¥¤ ¥¤ £¢ £¢ £¢   ¡  ¡  ¡  ¡  ¡ 
  • 12. 11 Replication possible even over Possible data loss on fail-over Table-level granularity allows Triggers add overhead to the Slave can execute read-only complex data partitioning configurations slow links queries master Slony ¨ ©¨ ©¨ ¡  ¡  ¡  ¡  ¨ ©¨ ©¨ ¡  ¡  ¡  ¡  ¨ ¨© ¨© ¡¡¡¡         ¨ ©¨ ©¨ ¡  ¡  ¡  ¡  ¨ ¨©¨©¡¡¡¡      ¡  ¡  ¡  ¡  Asynchronous PostgreSQL Replication Solutions ¢ £¢ £¢ ¥¤ ¥¤ ¥¤ ¥¤ §¦ §¦ §¦ §¦ §¦ §¦ §¦ ¢ £¢ £¢ ¥¤ ¥¤ ¥¤ ¥¤ §¦ §¦ §¦ §¦ §¦ §¦ §¦ ¢ ¢£ ¢£ ¥¥¥¥§¦§¦§¦§¦§¦§¦§¦ ¤ ¤ ¤ ¤ ¢ £¢ £¢ ¥¤ ¥¤ ¥¤ ¥¤ §¦ §¦ §¦ §¦ §¦ §¦ §¦ ¢ ¢£ ¢£ ¥¥¥¥§¦§¦§¦§¦§¦§¦§¦ ¤ ¤ ¤ ¤
  • 13. 12 Slony - Cascading Slaves 54 54 32 32 32 10 10 10 10 10 )( )( ' ' ' $ %$ %$ %$ %$ %$ 54 54 32 32 32 10 10 10 10 10 )( )( ' ' ' $ %$ %$ %$ %$ %$ @ 5 7@ 5 7@ 79 9 9 @ 7@ 7@ 7@ 1 7@ 1 71 97@ 1 7 777723@ 7723@ 7723@ 777777@77@ 1 9 0 94 94 9 9 9 9 90 90 0 90 8 ) 7) 67 6 6 678 78 7% 678 % 78 % 78 % 7 78787677'8 77'8 787'678777877778 % 6 $ 6( ( 6 6$ $ 6$ 6$ 6$ 54 54 32 32 32 10 10 10 10 10 )( )( ' ' ' $ %$ %$ %$ %$ %$ # # ! ! ! # # ! ! ! 7777777777777P I P # 7P # 7P 7P !7P !7P !7P 7P 7P 7P 7P 7P 7P 7 I I I I I I I I I I I I I # # ! ! ! ¨ ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦ ¨ ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦ C77 G7C 7C 7BG77H7H77H7H7H7 H7HC7HC7¨B77¨©H77¨©H7HC7¨©7HC777HC7777HC § BG ¦ 7 BG7 BG BG BG7C 7C 7§ BG7C § 7C § 7C § 7 BG BG BG ¦ ¦ BG ¦ BG ¦ BG ¦ ¨ ©¨ ©¨ ©¨ ¦ §¦ §¦ §¦ §¦ §¦ ¦ §¦ §¦ §¦ §¦ §¦ ¥¤ ¥¤ £¢ £¢ £¢ ¥¤ ¥¤ £¢ £¢ £¢ ¥ 7¥ 77£7£7£7777 7 7 A7 7 A A ¤ A ¤ A A ¢ A ¢ A ¢ A A A A A A ¥¤ ¥¤ £¢ £¢ £¢ ¡  ¡  ¡  ¡  F7F7F7DE77F 77F 7F7DE7F777F7777F DE ¡ 7¡ DE77D7D77DE7F 7F 7 DE7F 7F 7F 7 E    D77 E E 7D7D77D7D7D7 E E E E E ¡  ¡  PostgreSQL Replication Solutions
  • 14. 13 Subscribers Other Subscriber ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ sl_log ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ modifications CREATE TRIGGER prevents Slony Internals % % % % % % % % # # # # # # # # $ $ $ $ $ $ $ $ © © © © © © © © § § § § § § § § ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ % % % % % % % % # # # # # # # # $ $ $ $ $ $ $ $ © © © © © © © © § § § § § § § § ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ % % % % % % % % # # # # # # # # $ $ $ $ $ $ $ $ © © © © © © © © § § § § § § § § ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ User © © © © © © © © § § § § § § § § ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ © © © © © © © © § § § § § § § § ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ © © © © © © © © § § § § § § § § ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ © © © © © © © © § § § § § § § § ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ © © © © © © © © § § § § § § § § ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ © © © © © © © © § § § § § § § § ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ Slonik fills sl_log TRIGGER CREATE ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡                             ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡                             sl_log ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡                             Origin ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡                             ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡                             CREATE ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡                             TABLE PostgreSQL Replication Solutions ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡                             ... ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡                             ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡                             ! ! ! ! ! ! ! ! ' ' ' ' ' ' ' ' £ £ £ £ £ £ £ £ ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¢ ! ! ! ! ! ! ! ! ' ' ' ' ' ' ' ' £ £ £ £ £ £ £ £ ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¢ £ £ £ £ £ £ £ £ ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¢ User £ £ £ £ £ £ £ £ ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¢ £ £ £ £ £ £ £ £ ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¢ £ £ £ £ £ £ £ £ ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¢ £ £ £ £ £ £ £ £ ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¢ £ £ £ £ £ £ £ £ ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¢ £ £ £ £ £ £ £ £ ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¢
  • 15. 14 Subscriber sl_log @ @ @ @ @ @ @ @ @A @A @A @A @A @A @A @A % % % % % % % % 9 9 9 9 9 9 9 9 $ $ $ $ $ $ $ $ 8 8 8 8 8 8 8 8 © © © © © © © © ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¨                 A A A A A A A A % % % % % % % % 9 9 9 9 9 9 9 9 $ $ $ $ $ $ $ $ 8 8 8 8 8 8 8 8 © © © © © © © © ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¨                 © © © © © © © © ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¨                 User © © © © © © © © ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¨                 © © © © © © © © ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¨                 © © © © © © © © ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¨                 © © © © © © © © ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¨                 © © © © © © © © ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¨                 © © © © © © © © ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¨ ¨ ¨ ¨ ¨ ¨ ¨ ¨                 Slony Multi-Slave Subscriber sl_log ' ' ' ' ' ' ' ' 1 1 1 1 1 1 1 1 3 3 3 3 3 3 3 3 0 0 0 0 0 0 0 0 2 2 2 2 2 2 2 2 # # # # # # # # ! ! ! ! ! ! ! ! ' ' ' ' ' ' ' ' 1 1 1 1 1 1 1 1 3 3 3 3 3 3 3 3 0 0 0 0 0 0 0 0 2 2 2 2 2 2 2 2 # # # # # # # # ! ! ! ! ! ! ! ! # # # # # # # # ! ! ! ! ! ! ! ! User # # # # # # # # ! ! ! ! ! ! ! ! # # # # # # # # ! ! ! ! ! ! ! ! # # # # # # # # ! ! ! ! ! ! ! ! # # # # # # # # ! ! ! ! ! ! ! ! # # # # # # # # ! ! ! ! ! ! ! ! # # # # # # # # ! ! ! ! ! ! ! ! PostgreSQL Replication Solutions sl_log Origin ) ) ) ) ) ) ) ) 5 5 5 5 5 5 5 5 7 7 7 7 7 7 7 7 ( ( ( ( ( ( ( ( 4 4 4 4 4 4 4 4 6 6 6 6 6 6 6 6 £ £ £ £ £ £ £ £ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ § § § § § § § § ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ) ) ) ) ) ) ) ) 5 5 5 5 5 5 5 5 7 7 7 7 7 7 7 7 ( ( ( ( ( ( ( ( 4 4 4 4 4 4 4 4 6 6 6 6 6 6 6 6 £ £ £ £ £ £ £ £ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ § § § § § § § § ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ) ) ) ) ) ) ) ) 5 5 5 5 5 5 5 5 7 7 7 7 7 7 7 7 ( ( ( ( ( ( ( ( 4 4 4 4 4 4 4 4 6 6 6 6 6 6 6 6 User £ £ £ £ £ £ £ £ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ § § § § § § § § ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ £ £ £ £ £ £ £ £ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ § § § § § § § § ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ £ £ £ £ £ £ £ £ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ § § § § § § § § ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ £ £ £ £ £ £ £ £ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ § § § § § § § § ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ £ £ £ £ £ £ £ £ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ § § § § § § § § ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ £ £ £ £ £ £ £ £ ¥ ¥ ¥ ¥ ¥ ¥ ¥ ¥ § § § § § § § § ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¢ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦