﻿{"id":5389,"date":"2018-06-01T08:17:34","date_gmt":"2018-06-01T06:17:34","guid":{"rendered":"http:\/\/www.sigterritoires.fr\/?p=5389"},"modified":"2019-01-16T08:56:29","modified_gmt":"2019-01-16T07:56:29","slug":"replication-dune-base-de-donnees-postgresql-sur-un-poste-de-travail-windows","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/replication-dune-base-de-donnees-postgresql-sur-un-poste-de-travail-windows\/","title":{"rendered":"R\u00e9plication d&rsquo;une base de donn\u00e9es postgresql sur un poste de travail windows"},"content":{"rendered":"<p>Nous allons configurer une r\u00e9plication <em>logique<\/em> d&rsquo;une table de la base de donn\u00e9es de notre serveur linux sur une installation de postgresql sur un poste de travail windows.<\/p>\n<p>La r\u00e9plication permet d&rsquo;avoir sur un poste distant une copie actualis\u00e9e de la base de donn\u00e9es centralis\u00e9e. Cette copie ne sera pas utilis\u00e9e pour les mises \u00e0 jour locales, car elle sera en lecture seule. Par contre elle permet de travailler hors connexion et beaucoup plus rapidement, car les \u00e9changes entre la base centrale et le r\u00e9plicat local ne contient que les mises \u00e0 jours de la base centralis\u00e9e.<\/p>\n<p><!--more--><\/p>\n<p>Pour notre exemple, nous allons utiliser une table nomm\u00e9e <em><strong>institutions_partenaires<\/strong><\/em>, situ\u00e9e dans une base de donn\u00e9es nomm\u00e9e <em><strong>postgres <\/strong><\/em>sur un serveur.<em><strong><br \/>\n<\/strong><\/em><\/p>\n<h2>Mise en place de la r\u00e9plication sur la base du serveur (master)<\/h2>\n<h4>Activation de la r\u00e9plication logique de postgresql 10<\/h4>\n<p>Nous devons, tout d&rsquo;abord, modifier le param\u00e8tre wal_level du fichier\u00a0 postgresql.conf , sur le serveur, en mettant la valeur <em><strong>logical<\/strong><\/em>.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im1-1.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5390\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/replication-dune-base-de-donnees-postgresql-sur-un-poste-de-travail-windows\/_im1-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im1-1.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=\"_im1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im1-1.png?fit=627%2C230&amp;ssl=1\" class=\"aligncenter size-full wp-image-5390\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im1-1.png?resize=627%2C230\" alt=\"\" width=\"627\" height=\"230\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im1-1.png?w=627&amp;ssl=1 627w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im1-1.png?resize=300%2C110&amp;ssl=1 300w\" sizes=\"auto, (max-width: 627px) 100vw, 627px\" \/><\/a>Puis, vous devez red\u00e9marrer postgresql pour que la modification soit prise en compte.<\/p>\n<p>Pour v\u00e9rifier que la modification a bien \u00e9t\u00e9 prise en compte, avec <a href=\"https:\/\/www.sigterritoires.fr\/index.php\/cartes-enc-dans-qgis-avec-postgis1\/\">pgAdmin<\/a> (ou par ligne de commande) ex\u00e9cutez la commande<\/p>\n<p><em><strong>show wal_level;<\/strong><\/em><\/p>\n<h4><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im2-1.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5391\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/replication-dune-base-de-donnees-postgresql-sur-un-poste-de-travail-windows\/_im2-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im2-1.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=\"_im2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im2-1.png?fit=411%2C377&amp;ssl=1\" class=\"aligncenter size-full wp-image-5391\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im2-1.png?resize=411%2C377\" alt=\"\" width=\"411\" height=\"377\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im2-1.png?w=411&amp;ssl=1 411w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im2-1.png?resize=300%2C275&amp;ssl=1 300w\" sizes=\"auto, (max-width: 411px) 100vw, 411px\" \/><\/a>Cr\u00e9ation d&rsquo;un utilisateur avec des privil\u00e8ges de r\u00e9plication<\/h4>\n<p>Pour cr\u00e9er un utilisateur, nomm\u00e9e <em><strong>rep<\/strong><\/em> avec les privil\u00e8ges de r\u00e9plication, ex\u00e9cutez la commande<\/p>\n<p><em><strong>CREATE ROLE rep REPLICATION LOGIN PASSWORD &lsquo;Password&rsquo;;<\/strong><\/em><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im3-1.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5392\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/replication-dune-base-de-donnees-postgresql-sur-un-poste-de-travail-windows\/_im3-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im3-1.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=\"_im3\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im3-1.png?fit=506%2C354&amp;ssl=1\" class=\"aligncenter size-full wp-image-5392\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im3-1.png?resize=506%2C354\" alt=\"\" width=\"506\" height=\"354\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im3-1.png?w=506&amp;ssl=1 506w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im3-1.png?resize=300%2C210&amp;ssl=1 300w\" sizes=\"auto, (max-width: 506px) 100vw, 506px\" \/><\/a>et pour lui donner les droits sur la table institutions_partenaires, rentrez la commande:<\/p>\n<p><em><strong>GRANT ALL ON institutions_partenaires TO rep;<\/strong><\/em><\/p>\n<h4><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im4-1.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5393\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/replication-dune-base-de-donnees-postgresql-sur-un-poste-de-travail-windows\/_im4-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im4-1.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=\"_im4\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im4-1.png?fit=446%2C357&amp;ssl=1\" class=\"aligncenter size-full wp-image-5393\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im4-1.png?resize=446%2C357\" alt=\"\" width=\"446\" height=\"357\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im4-1.png?w=446&amp;ssl=1 446w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im4-1.png?resize=300%2C240&amp;ssl=1 300w\" sizes=\"auto, (max-width: 446px) 100vw, 446px\" \/><\/a><br \/>\nCr\u00e9ation d&rsquo;une publication de la table<\/h4>\n<p>Pour cr\u00e9er la publication de la table, rentrez la commande suivante:<\/p>\n<p><em><strong>CREATE PUBLICATION publi_partenaires FOR TABLE institutions_partenaires ;<\/strong><\/em><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im5-1.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5394\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/replication-dune-base-de-donnees-postgresql-sur-un-poste-de-travail-windows\/_im5-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im5-1.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=\"_im5\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im5-1.png?fit=640%2C325&amp;ssl=1\" class=\"aligncenter size-full wp-image-5394\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im5-1.png?resize=640%2C325\" alt=\"\" width=\"640\" height=\"325\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im5-1.png?w=645&amp;ssl=1 645w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im5-1.png?resize=300%2C153&amp;ssl=1 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a>Pour finir la mise en place sur la partie serveur, vous devez autoriser l&rsquo;utilisateur rep \u00e0 se connecter \u00e0 la base de donn\u00e9es postgresql:<\/p>\n<p>Ajoutez la ligne<\/p>\n<p># TYPE \u00a0 \u00a0 DATABASE \u00a0 \u00a0 \u00a0\u00a0 USER\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CIDR-ADDRESS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 METHOD<br \/>\nHost \u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 postgres\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 rep\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0.0.0.0\/0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 md5<\/p>\n<p>Dans le fichier pg_hba.conf.<\/p>\n<p>Et red\u00e9marrez postgresql sur le serveur pour que la modification soit prise en compte.<\/p>\n<h2>Mise en place de la r\u00e9plication sur le poste distant (slave)<\/h2>\n<h4>Cr\u00e9ation de la table sur le poste distant<\/h4>\n<p>Tout d&rsquo;abord, il faut cr\u00e9er la table institutions_partenaires dans la base du poste distant.<\/p>\n<p>Une mani\u00e8re, parmi d&rsquo;autres, est de copier la d\u00e9finition sql de la table du serveur et de l&rsquo;ex\u00e9cuter sur le poste distant.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im6-1.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5395\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/replication-dune-base-de-donnees-postgresql-sur-un-poste-de-travail-windows\/_im6-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im6-1.png?fit=1424%2C1210&amp;ssl=1\" data-orig-size=\"1424,1210\" 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=\"_im6\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im6-1.png?fit=640%2C544&amp;ssl=1\" class=\"aligncenter size-full wp-image-5395\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im6-1.png?resize=640%2C544\" alt=\"\" width=\"640\" height=\"544\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im6-1.png?w=1424&amp;ssl=1 1424w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im6-1.png?resize=300%2C255&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im6-1.png?resize=768%2C653&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im6-1.png?resize=1024%2C870&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im6-1.png?resize=1200%2C1020&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im6-1.png?w=1280&amp;ssl=1 1280w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>N&rsquo;oubliez pas, avant d&rsquo;ex\u00e9cuter la commande sql sur le poste distant d&rsquo;enlever la derni\u00e8re ligne<\/p>\n<p><em><strong>GRANT ALL ON TABLE public.institutions_partenaires TO rep;<\/strong><\/em><\/p>\n<p>car cet utilisateur n&rsquo;existe pas sur le poste distant.<\/p>\n<p>Par contre, n&rsquo;oubliez pas de faire un GRANT\u00a0 pour les utilisateurs de la table sur le poste distant pour qu&rsquo;ils puissent se connecter \u00e0 la table. Les utilisateurs pourront utiliser alors les donn\u00e9es contenues dans la table, mais ils ne pourront pas les modifier. Seules les update, insert et delete effectu\u00e9s sur la table ma\u00eetresse appara\u00eetront automatiquement dans la table esclave.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im7-1.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5396\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/replication-dune-base-de-donnees-postgresql-sur-un-poste-de-travail-windows\/_im7-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im7-1.png?fit=1537%2C1085&amp;ssl=1\" data-orig-size=\"1537,1085\" 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=\"_im7\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im7-1.png?fit=640%2C452&amp;ssl=1\" class=\"aligncenter size-full wp-image-5396\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im7-1.png?resize=640%2C452\" alt=\"\" width=\"640\" height=\"452\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im7-1.png?w=1537&amp;ssl=1 1537w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im7-1.png?resize=300%2C212&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im7-1.png?resize=768%2C542&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im7-1.png?resize=1024%2C723&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im7-1.png?resize=1200%2C847&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im7-1.png?w=1280&amp;ssl=1 1280w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<h4>Cr\u00e9ation d&rsquo;une souscription \u00e0 la table<\/h4>\n<p>Pour souscrire la nouvelle table cr\u00e9\u00e9e \u00e0 la publication faite sur le serveur, rentrez la commande:<\/p>\n<p><em><strong>CREATE SUBSCRIPTION subscri_partenaires CONNECTION &lsquo;dbname=postgres host=195.83.124.222 user=rep password=Password port=5433&rsquo; PUBLICATION publi_partenaires;<\/strong><\/em><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im8.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5398\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/replication-dune-base-de-donnees-postgresql-sur-un-poste-de-travail-windows\/_im8-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im8.png?fit=1321%2C524&amp;ssl=1\" data-orig-size=\"1321,524\" 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=\"_im8\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im8.png?fit=640%2C254&amp;ssl=1\" class=\"aligncenter size-full wp-image-5398\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im8.png?resize=640%2C254\" alt=\"\" width=\"640\" height=\"254\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im8.png?w=1321&amp;ssl=1 1321w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im8.png?resize=300%2C119&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im8.png?resize=768%2C305&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im8.png?resize=1024%2C406&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im8.png?resize=1200%2C476&amp;ssl=1 1200w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a>Une fois ex\u00e9cut\u00e9e, rentrez la commande:<\/p>\n<p><em><strong>table institutions_partenaires;<\/strong><\/em><\/p>\n<p>pour v\u00e9rifier que la r\u00e9plication a bien eu lieu.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im9.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5399\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/replication-dune-base-de-donnees-postgresql-sur-un-poste-de-travail-windows\/_im9-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im9.png?fit=990%2C806&amp;ssl=1\" data-orig-size=\"990,806\" 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=\"_im9\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im9.png?fit=640%2C521&amp;ssl=1\" class=\"aligncenter size-full wp-image-5399\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im9.png?resize=640%2C521\" alt=\"\" width=\"640\" height=\"521\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im9.png?w=990&amp;ssl=1 990w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im9.png?resize=300%2C244&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/im9.png?resize=768%2C625&amp;ssl=1 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a>Chaque fois que la table ma\u00eetre sera mise \u00e0 jour, les modifications seront r\u00e9percut\u00e9es sur la table esclave.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nous allons configurer une r\u00e9plication logique d&rsquo;une table de la base de donn\u00e9es de notre serveur linux sur une installation de postgresql sur un poste de travail windows. La r\u00e9plication permet d&rsquo;avoir sur un poste distant&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_post_was_ever_published":false,"_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":""},"categories":[3,425,311],"tags":[312,1427],"class_list":["post-5389","post","type-post","status-publish","format-standard","hentry","category-logiciel_libres","category-non-classe-fr","category-postgresql","tag-postgresql","tag-replication"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p6XU0A-1oV","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/5389","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=5389"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/5389\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media?parent=5389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=5389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=5389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}