<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Loading Data from PostgreSQL Source to PostgreSQL Target - Need to only capture inserts as part of CDC in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2494146#M13242</link>
    <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to Qlik community , I am just curious to understand&amp;nbsp; the below statement&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;We also observed that updates are captured as Delete + Insert when we do replication from PostgreSQL source to PostgreSQL target.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I just tried to reproduce this behavior with postgres as source and target&lt;/P&gt;
&lt;P&gt;When I inserted a record , the operation came as "INSERT"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aarun_arasu_0-1732273503681.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174753i39FD45936B70471E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aarun_arasu_0-1732273503681.png" alt="aarun_arasu_0-1732273503681.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similarly , When I updated the record , the operation came as "UPDATE"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aarun_arasu_1-1732273574716.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174754i7F2D81A27116DDD9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aarun_arasu_1-1732273574716.png" alt="aarun_arasu_1-1732273574716.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try to add a header column in Qlik replicate&amp;nbsp; as shown below to capture the operation ?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aarun_arasu_2-1732273828076.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174755i5378E87663747EDE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aarun_arasu_2-1732273828076.png" alt="aarun_arasu_2-1732273828076.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Arun&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2024 11:11:46 GMT</pubDate>
    <dc:creator>aarun_arasu</dc:creator>
    <dc:date>2024-11-22T11:11:46Z</dc:date>
    <item>
      <title>Loading Data from PostgreSQL Source to PostgreSQL Target - Need to only capture inserts as part of CDC</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2494100#M13237</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;We are trying to replicate data from PostgreSQL Source to PostgreSQL target, we are having a requirement to start with only CDC (not Full Load) and to capture only inserts as part of CDC and ignore delete or update.&lt;/P&gt;
&lt;P&gt;We also observed that updates are captured as Delete + Insert when we do replication from PostgreSQL source to PostgreSQL target.&lt;/P&gt;
&lt;P&gt;Considering this, is there any way to achieve our requirement in Qlik Replicate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 06:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2494100#M13237</guid>
      <dc:creator>GayathriTechno</dc:creator>
      <dc:date>2024-11-22T06:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Data from PostgreSQL Source to PostgreSQL Target - Need to only capture inserts as part of CDC</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2494138#M13241</link>
      <description>&lt;P&gt;Hi Sonia,&lt;/P&gt;
&lt;P&gt;We tried the suggestion to use store change alone, however we are seeing insert and deletes in ct table.&lt;/P&gt;
&lt;P&gt;Could you please help us to understand, what will be the reason for getting update as Delete + Insert while using PostgreSQL as source and target.&lt;/P&gt;
&lt;P&gt;Also, please let us know what should be adjusted in _ct table as per below suggestion.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For updates captured as delete + insert, review the __CT tables and adjust the replication task settings accordingly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 10:13:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2494138#M13241</guid>
      <dc:creator>GayathriTechno</dc:creator>
      <dc:date>2024-11-22T10:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Data from PostgreSQL Source to PostgreSQL Target - Need to only capture inserts as part of CDC</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2494146#M13242</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to Qlik community , I am just curious to understand&amp;nbsp; the below statement&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;We also observed that updates are captured as Delete + Insert when we do replication from PostgreSQL source to PostgreSQL target.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I just tried to reproduce this behavior with postgres as source and target&lt;/P&gt;
&lt;P&gt;When I inserted a record , the operation came as "INSERT"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aarun_arasu_0-1732273503681.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174753i39FD45936B70471E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aarun_arasu_0-1732273503681.png" alt="aarun_arasu_0-1732273503681.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similarly , When I updated the record , the operation came as "UPDATE"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aarun_arasu_1-1732273574716.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174754i7F2D81A27116DDD9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aarun_arasu_1-1732273574716.png" alt="aarun_arasu_1-1732273574716.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try to add a header column in Qlik replicate&amp;nbsp; as shown below to capture the operation ?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aarun_arasu_2-1732273828076.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174755i5378E87663747EDE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aarun_arasu_2-1732273828076.png" alt="aarun_arasu_2-1732273828076.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Arun&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 11:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2494146#M13242</guid>
      <dc:creator>aarun_arasu</dc:creator>
      <dc:date>2024-11-22T11:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Data from PostgreSQL Source to PostgreSQL Target - Need to only capture inserts as part of CDC</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2494209#M13245</link>
      <description>&lt;P&gt;Hello&amp;nbsp;@G ayathriTechno&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It is straightforward to filter out all operations except for &lt;STRONG&gt;INSERT&lt;/STRONG&gt; when replicating to a target. You can apply this filter at either the &lt;STRONG&gt;Table Level&lt;/STRONG&gt; or the &lt;STRONG&gt;Global Level&lt;/STRONG&gt;. For example, at the &lt;STRONG&gt;Table Level&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_0-1732288637295.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174768i899BDFF7AF1A3CEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="john_wang_0-1732288637295.png" alt="john_wang_0-1732288637295.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Both &lt;STRONG&gt;UPDATE&lt;/STRONG&gt; and &lt;STRONG&gt;DELETE&lt;/STRONG&gt; operations will be excluded from replication, ensuring that only &lt;STRONG&gt;INSERT&lt;/STRONG&gt; operations are replicated to the target.&lt;/P&gt;
&lt;P&gt;However, please take note of the following:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Primary Key (PK) Violations:&lt;/STRONG&gt;&lt;BR /&gt;PK violations may occur if a row with a specific PK value is deleted and then inserted again. To handle such scenarios, you should configure the replication task to operate in &lt;STRONG&gt;UPSERT mode&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_2-1732288987595.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174770i207745DF968A5070/image-size/large?v=v2&amp;amp;px=999" role="button" title="john_wang_2-1732288987595.png" alt="john_wang_2-1732288987595.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;GUI Display of Operations:&lt;/STRONG&gt;&lt;BR /&gt;Although the replication process filters out &lt;STRONG&gt;UPDATE&lt;/STRONG&gt; and &lt;STRONG&gt;DELETE&lt;/STRONG&gt; operations, these operations might still appear in the GUI. Please note that they are ignored during the replication process and do not impact the target.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the observation:&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;We also observed that updates are captured as Delete + Insert when we do replication from PostgreSQL source to PostgreSQL target&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I have not observed this behavior in my local tests. You may use the &lt;CODE&gt;pg_logical_slot_peek_changes()&lt;/CODE&gt; function to inspect the operations recorded in the PostgreSQL Write-Ahead Log (WAL). Compare the WAL output with the behavior observed in Qlik Replicate to further diagnose the issue.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 15:38:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2494209#M13245</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-11-22T15:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Data from PostgreSQL Source to PostgreSQL Target - Need to only capture inserts as part of CDC</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2494214#M13247</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; "&lt;SPAN&gt;We also observed that updates are captured as Delete + Insert when we do replication from PostgreSQL source to PostgreSQL target."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Are you sure they are CAPTURED that way or is this statement based on observing them being applied that way? With task error handling set to 'ingnore missing data row on update" replicate transforms update on source to delete + insert, ditto for 'duplicate pk on insert'.&lt;/P&gt;
&lt;P&gt;As always, for the best support please indicate the exact source and target DBs with their version numbers as well as the replicate version used, and possibly the replicate server OS (less relevant).&lt;/P&gt;
&lt;P&gt;Hein&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 16:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2494214#M13247</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2024-11-22T16:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Data from PostgreSQL Source to PostgreSQL Target - Need to only capture inserts as part of CDC</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2494631#M13274</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for replicating the scenario.&lt;/P&gt;
&lt;P&gt;when we try replicate the data from actual source table in PostgreSQL database, we are unable to see the update as update rather delete+insert.&lt;/P&gt;
&lt;P&gt;In the attached screenshot, we can see there is no update count, but in real time there are updates only going on in source database&lt;/P&gt;
&lt;P&gt;Thanks in advance for any responses.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 10:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2494631#M13274</guid>
      <dc:creator>GayathriTechno</dc:creator>
      <dc:date>2024-11-26T10:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Data from PostgreSQL Source to PostgreSQL Target - Need to only capture inserts as part of CDC</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2494634#M13275</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for the response,&lt;/P&gt;
&lt;P&gt;However, in our case we are getting the updates as delete + insert, due to this we have a lot of inser operation which are not true inserts and not required to replicate in target.&lt;/P&gt;
&lt;P&gt;Kindly suggest a way to identify the root cause of the behavior in PostgreSQL to PostgreSQL.&lt;/P&gt;
&lt;P&gt;Also please note that our source and target are Amazon RDS for PostgreSQL&amp;nbsp; database, But we used normal PostgreSQL type during endpoint creation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks-&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 10:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2494634#M13275</guid>
      <dc:creator>GayathriTechno</dc:creator>
      <dc:date>2024-11-26T10:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Data from PostgreSQL Source to PostgreSQL Target - Need to only capture inserts as part of CDC</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2494790#M13280</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;To determine whether it is an UPDATE or an INSERT followed by a DELETE, could you check the changes by running &lt;STRONG&gt;pg_logical_slot_peek_changes&lt;/STRONG&gt;&amp;nbsp;on your PostgreSQL database?&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 02:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2494790#M13280</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2024-11-27T02:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Data from PostgreSQL Source to PostgreSQL Target - Need to only capture inserts as part of CDC</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2494870#M13285</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125525"&gt;@DesmondWOO&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the response,&lt;/P&gt;
&lt;P&gt;However, we don't have required privileges to run&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;pg_logical_slot_peek_changes&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp; on source database instance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Are there any other possible ways through which can we identify the root cause?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks-&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 09:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2494870#M13285</guid>
      <dc:creator>GayathriSan</dc:creator>
      <dc:date>2024-11-27T09:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Data from PostgreSQL Source to PostgreSQL Target - Need to only capture inserts as part of CDC</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2495578#M13318</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/316574"&gt;@GayathriSan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To identify the operations recorded in PostgreSQL WAL files, the best approach is to use a privileged account and execute the &lt;CODE&gt;pg_logical_slot_peek_changes()&lt;/CODE&gt; function. This method helps in effectively troubleshooting the issue.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 14:07:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Loading-Data-from-PostgreSQL-Source-to-PostgreSQL-Target-Need-to/m-p/2495578#M13318</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-12-02T14:07:05Z</dc:date>
    </item>
  </channel>
</rss>

