<?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: Executing \COPY command against Amazon RDS Postgres in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Executing-COPY-command-against-Amazon-RDS-Postgres/m-p/2362042#M126251</link>
    <description>&lt;P&gt;on AWS I have only Redshift, but on Azure I use just COPY&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-02-15 at 9.49.13 AM.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsVz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130977i958D8C098814AF3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsVz.png" alt="0683p000009LsVz.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;test it without \&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 20:51:28 GMT</pubDate>
    <dc:creator>vapukov</dc:creator>
    <dc:date>2018-02-14T20:51:28Z</dc:date>
    <item>
      <title>Executing \COPY command against Amazon RDS Postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Executing-COPY-command-against-Amazon-RDS-Postgres/m-p/2362039#M126248</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to use the "\COPY" command bulk load a CSV file into Amazon RDS Postgres instance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the command I am using:&lt;/P&gt;
&lt;PRE&gt;\copy nch.bulk_test from 'out.csv' with DELIMITER ';'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I execute this use a psql client, I had no issues. I was able to load 10,000,000 records very quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, when I try to execute this command using the tPostgresqlRow component, I get a "ERROR: syntax error at or near "\""&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I have escaped the back slash and the single quotes using the tJava component as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;String copy_command = "\\copy bulk_test from \'out.csv\' with DELIMITER \';\'";
context.copy_command = copy_command;&lt;/PRE&gt;
&lt;P&gt;I am simply calling context.copy_command using the tPostgresRow component.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions on what I am doing wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Executing-COPY-command-against-Amazon-RDS-Postgres/m-p/2362039#M126248</guid>
      <dc:creator>radhikari</dc:creator>
      <dc:date>2024-11-16T08:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Executing \COPY command against Amazon RDS Postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Executing-COPY-command-against-Amazon-RDS-Postgres/m-p/2362040#M126249</link>
      <description>&lt;P&gt;You need escape only \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;context.copy_command = "\\copy nch.bulk_test from 'out.csv' with DELIMITER ';'";&lt;/PRE&gt;&lt;P&gt;or just in tPostgreSQLRow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"\\copy nch.bulk_test from 'out.csv' with DELIMITER ';'";&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Feb 2018 20:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Executing-COPY-command-against-Amazon-RDS-Postgres/m-p/2362040#M126249</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-02-14T20:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Executing \COPY command against Amazon RDS Postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Executing-COPY-command-against-Amazon-RDS-Postgres/m-p/2362041#M126250</link>
      <description>&lt;P&gt;Tried that, I still get ERROR: syntax error at or near "\"&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 20:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Executing-COPY-command-against-Amazon-RDS-Postgres/m-p/2362041#M126250</guid>
      <dc:creator>radhikari</dc:creator>
      <dc:date>2018-02-14T20:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Executing \COPY command against Amazon RDS Postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Executing-COPY-command-against-Amazon-RDS-Postgres/m-p/2362042#M126251</link>
      <description>&lt;P&gt;on AWS I have only Redshift, but on Azure I use just COPY&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-02-15 at 9.49.13 AM.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsVz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130977i958D8C098814AF3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsVz.png" alt="0683p000009LsVz.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;test it without \&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 20:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Executing-COPY-command-against-Amazon-RDS-Postgres/m-p/2362042#M126251</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-02-14T20:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Executing \COPY command against Amazon RDS Postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Executing-COPY-command-against-Amazon-RDS-Postgres/m-p/2362043#M126252</link>
      <description>&lt;P&gt;COPY works well for Redshift and I don't have experience with Azure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;COPY doesn't work for Postgres RDS since it's expecting the csv to be local on the database server which is not possible with RDS. That's why Amazon recommends \COPY instead.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 20:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Executing-COPY-command-against-Amazon-RDS-Postgres/m-p/2362043#M126252</guid>
      <dc:creator>radhikari</dc:creator>
      <dc:date>2018-02-14T20:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Executing \COPY command against Amazon RDS Postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Executing-COPY-command-against-Amazon-RDS-Postgres/m-p/2362044#M126253</link>
      <description>&lt;P&gt;and this why it can not be executed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;COPY - it is SQL command&lt;BR /&gt;\copy - it is psql command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in this case - You need use tSystem and call psql rather then tPostgeSQLRow&lt;BR /&gt;&lt;BR /&gt;and You can test&amp;nbsp;&lt;SPAN&gt;tRDSPostgresqlBulkExe component from&amp;nbsp;&lt;/SPAN&gt;community -&amp;nbsp;&lt;A href="https://exchange.talend.com/#marketplaceproductoverview:marketplace=marketplace%252F1&amp;amp;p=marketplace%252F1%252Fproducts%252F1570&amp;amp;pi=marketplace%252F1%252Fproducts%252F1570%252Fitems%252F2709" target="_self" rel="nofollow noopener noreferrer"&gt;https://exchange.talend.com/#marketplaceproductoverview:marketplace=marketplace%252F1&amp;amp;p=marketplace%252F1%252Fproducts%252F1570&amp;amp;pi=marketplace%252F1%252Fproducts%252F1570%252Fitems%252F2709&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 21:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Executing-COPY-command-against-Amazon-RDS-Postgres/m-p/2362044#M126253</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-02-14T21:45:13Z</dc:date>
    </item>
  </channel>
</rss>

