﻿{"id":5417,"date":"2018-06-01T23:57:36","date_gmt":"2018-06-01T21:57:36","guid":{"rendered":"http:\/\/www.sigterritoires.fr\/?p=5417"},"modified":"2018-10-17T12:50:12","modified_gmt":"2018-10-17T10:50:12","slug":"replicating-a-postgresql-database-in-a-windows-workstation","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/en\/replicating-a-postgresql-database-in-a-windows-workstation\/","title":{"rendered":"Replicating a postgresql database in a windows workstation"},"content":{"rendered":"<p>We will configure a\u00a0<em>logic<\/em>\u00a0\u00a0\u00a0replication of a database table of our linux server in a postgresql installation in a windows workstation.<\/p>\n<p>The replication allows us to keep an updated copy of the centralized database in a remote station.\u00a0This copy will not be used for local updates since it will be read-only.\u00a0On the other hand, it allows us to work offline and much faster, since the exchanges between the central database and the local replicate contain only the updates of the centralized database.<!--more--><\/p>\n<p>For our example, we will use a table called\u00a0\u00a0\u00a0<strong><em>partner_institutions<\/em><\/strong>\u00a0, located in a named database\u00a0\u00a0\u00a0<strong><em>postgres<\/em><\/strong>\u00a0<strong><em>\u00a0<\/em><\/strong>\u00a0in a server.<\/p>\n<h2><strong>Setting up the replication in the server base (master)<\/strong><\/h2>\n<h4><strong>ACTIVATION OF THE LOGIC REPLICATION OF POSTGRESQL 10<\/strong><\/h4>\n<p>Firstly, we need to change the wal level parameter of the\u00a0\u00a0postgresql.conf file, in the server, adding the value\u00a0\u00a0\u00a0<strong><em>logical<\/em><\/strong>\u00a0.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5418\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/replicating-a-postgresql-database-in-a-windows-workstation\/rep1\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/rep1.png?fit=627%2C230&amp;ssl=1\" data-orig-size=\"627,230\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"rep1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/rep1.png?fit=627%2C230&amp;ssl=1\" class=\"alignnone size-medium wp-image-5418\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/rep1-300x110.png?resize=300%2C110\" alt=\"\" width=\"300\" height=\"110\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/rep1.png?resize=300%2C110&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/rep1.png?w=627&amp;ssl=1 627w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Then, you must restart postgresql so the change can be implemented.<\/p>\n<p>To verify that the modification has been achieved execute the command using pgAdmin (or the online command).<\/p>\n<p><strong><em>show wal_level;<\/em><\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5433\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/replicating-a-postgresql-database-in-a-windows-workstation\/level\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/level.png?fit=411%2C377&amp;ssl=1\" data-orig-size=\"411,377\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"level\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/level.png?fit=411%2C377&amp;ssl=1\" class=\"alignnone size-medium wp-image-5433\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/level-300x275.png?resize=300%2C275\" alt=\"\" width=\"300\" height=\"275\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/level.png?resize=300%2C275&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/level.png?w=411&amp;ssl=1 411w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<h4><strong>HOW TO CREATE A USER WITH REPLICATION PRIVILEGES<\/strong><\/h4>\n<p>To create a user, called\u00a0\u00a0\u00a0<strong><em>rep<\/em><\/strong>\u00a0\u00a0\u00a0with replication privileges, run the command<\/p>\n<p><strong><em>CREATE ROLE rep REPLICATION LOGIN PASSWORD &lsquo;Password&rsquo;;<\/em><\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5434\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/replicating-a-postgresql-database-in-a-windows-workstation\/password\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/password.png?fit=506%2C354&amp;ssl=1\" data-orig-size=\"506,354\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"password\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/password.png?fit=506%2C354&amp;ssl=1\" class=\"alignnone size-medium wp-image-5434\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/password-300x210.png?resize=300%2C210\" alt=\"\" width=\"300\" height=\"210\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/password.png?resize=300%2C210&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/password.png?w=506&amp;ssl=1 506w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>and to give the new user rights on the table institutions_partners, enter the command:<\/p>\n<p><strong><em>GRANT ALL ON partner_institutions TO rep;<\/em><\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5435\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/replicating-a-postgresql-database-in-a-windows-workstation\/to-rep\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/to-rep.png?fit=446%2C357&amp;ssl=1\" data-orig-size=\"446,357\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"to rep\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/to-rep.png?fit=446%2C357&amp;ssl=1\" class=\"alignnone size-medium wp-image-5435\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/to-rep-300x240.png?resize=300%2C240\" alt=\"\" width=\"300\" height=\"240\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/to-rep.png?resize=300%2C240&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/to-rep.png?w=446&amp;ssl=1 446w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<h4><strong>HOW TO CREATE A PUBLICATION OF THE TABLE<\/strong><\/h4>\n<p>To create the publication of the table, enter the following command:<\/p>\n<p><strong><em>CREATE PUBLICATION publi_partners FOR TABLE partner_institutions;<\/em><\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5436\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/replicating-a-postgresql-database-in-a-windows-workstation\/table\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/table.png?fit=645%2C328&amp;ssl=1\" data-orig-size=\"645,328\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"table\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/table.png?fit=640%2C325&amp;ssl=1\" class=\"alignnone size-medium wp-image-5436\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/table-300x153.png?resize=300%2C153\" alt=\"\" width=\"300\" height=\"153\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/table.png?resize=300%2C153&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/table.png?w=645&amp;ssl=1 645w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>To finish the implementation on the server side, you must allow the user rep to connect to the postgresql database:<\/p>\n<p>Add the line<\/p>\n<p># TYPE\u00a0\u00a0\u00a0\u00a0\u00a0DATABASE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0USER\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0CIDR-ADDRESS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0METHOD<br \/>\nHost\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0postgres\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0rep\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a00.0.0.0\/0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0md5<\/p>\n<p>In the pg_hba.conf file.<\/p>\n<p>And restart postgresql in the server so the change can be implemented.<\/p>\n<h2><strong>How to Setup the replication on the remote station (slave)<\/strong><\/h2>\n<h4><strong>CREATING THE TABLE IN THE REMOTE POST<\/strong><\/h4>\n<p>First, you have to create the institution partners table in the base of the remote station.<\/p>\n<p>One way, among others, is to copy the sql definition from the server table and execute it on the remote machine.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5432\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/replicating-a-postgresql-database-in-a-windows-workstation\/aaaaa\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/aaaaa.png?fit=840%2C714&amp;ssl=1\" data-orig-size=\"840,714\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"aaaaa\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/aaaaa.png?fit=640%2C544&amp;ssl=1\" class=\"alignnone size-medium wp-image-5432\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/aaaaa-300x255.png?resize=300%2C255\" alt=\"\" width=\"300\" height=\"255\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/aaaaa.png?resize=300%2C255&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/aaaaa.png?resize=768%2C653&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/aaaaa.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Do not forget that before running the sql command on the remote station, you have \u00a0to remove the last line<\/p>\n<p><strong><em>GRANT ALL ON TABLE public.institutions_partners TO rep;<\/em><\/strong><\/p>\n<p>because this user does not exist in the remote machine.<\/p>\n<p>However, do not forget to make a GRANT\u00a0\u00a0\u00a0for the users of the table in the remote machine so that they can connect to the table.\u00a0Then the users will be able to use the data contained in the table, but they will not be able to modify them.\u00a0Only the update, inserts and deletes performed in the master table will automatically appear in the slave table.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5431\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/replicating-a-postgresql-database-in-a-windows-workstation\/aaaa\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/aaaa.png?fit=840%2C593&amp;ssl=1\" data-orig-size=\"840,593\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"aaaa\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/aaaa.png?fit=640%2C452&amp;ssl=1\" class=\"alignnone size-medium wp-image-5431\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/aaaa-300x212.png?resize=300%2C212\" alt=\"\" width=\"300\" height=\"212\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/aaaa.png?resize=300%2C212&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/aaaa.png?resize=768%2C542&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/aaaa.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<h4><strong>HOW TO CREATE A SUBSCRIPTION <\/strong><\/h4>\n<p>To subscribe the newly created table to the publication made in the server, enter the following command:<\/p>\n<p><strong><em>CREATE SUBSCRIPTION subscri_partners CONNECTION &lsquo;dbname = postgres host = 195.83.124.222 user = rep password = Password port = 5433&rsquo; PUBLICATION publi_partners;<\/em><\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5430\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/replicating-a-postgresql-database-in-a-windows-workstation\/aaa\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/aaa.png?fit=840%2C333&amp;ssl=1\" data-orig-size=\"840,333\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"aaa\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/aaa.png?fit=640%2C254&amp;ssl=1\" class=\"alignnone size-medium wp-image-5430\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/aaa-300x119.png?resize=300%2C119\" alt=\"\" width=\"300\" height=\"119\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/aaa.png?resize=300%2C119&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/aaa.png?resize=768%2C304&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/aaa.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Once executed, enter the command:<\/p>\n<p><strong><em>table partner_institutions;<\/em><\/strong><\/p>\n<p>to verify that the replication has occurred.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5429\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/replicating-a-postgresql-database-in-a-windows-workstation\/ultima\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/ultima.png?fit=840%2C684&amp;ssl=1\" data-orig-size=\"840,684\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ultima\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/ultima.png?fit=640%2C521&amp;ssl=1\" class=\"alignnone size-medium wp-image-5429\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/ultima-300x244.png?resize=300%2C244\" alt=\"\" width=\"300\" height=\"244\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/ultima.png?resize=300%2C244&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/ultima.png?resize=768%2C625&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/06\/ultima.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Each time the master table is updated, the changes will be reflected on the slave table.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We will configure a\u00a0logic\u00a0\u00a0\u00a0replication of a database table of our linux server in a postgresql installation in a windows workstation. The replication allows us to keep an updated copy of the centralized database in a remote&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"give_campaign_id":0,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1260,1338],"tags":[1351,1429],"class_list":["post-5417","post","type-post","status-publish","format-standard","hentry","category-non-classe-en","category-postgresql-en","tag-postgresql-en","tag-replication-en"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p6XU0A-1pn","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/5417","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/comments?post=5417"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/5417\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media?parent=5417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=5417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=5417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}