You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Masatake Iwasaki (JIRA)" <ji...@apache.org> on 2013/06/18 03:13:20 UTC

[jira] [Commented] (SQOOP-999) Support bulk load from HDFS to PostgreSQL using COPY ... FROM

    [ https://issues.apache.org/jira/browse/SQOOP-999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13686269#comment-13686269 ] 

Masatake Iwasaki commented on SQOOP-999:
----------------------------------------

It is preferable to use not psql (outer process) but Copy API of PostgreSQL JDBC Driver in order to reduce external dependency. I am going to consider its feasibility.
http://jdbc.postgresql.org/documentation/publicapi/org/postgresql/copy/CopyManager.html

                
> Support bulk load from HDFS to PostgreSQL using COPY ... FROM
> -------------------------------------------------------------
>
>                 Key: SQOOP-999
>                 URL: https://issues.apache.org/jira/browse/SQOOP-999
>             Project: Sqoop
>          Issue Type: New Feature
>          Components: connectors/postgresql
>    Affects Versions: 1.4.3
>         Environment: PostgreSQL
>            Reporter: Ruslan Al-Fakikh
>
> Initially taken from here:
> https://issues.cloudera.org/browse/SQOOP-184
> As Cloudera site is no longer used:
> {quote}
> Sqoop currently supports bulk export from PostgreSQL but not bulk import. PostgreSQL support COPY <table> FROM <filename> syntax and readily accepts CSV data. We should support this so there is --direct support in both directions.
> {quote}
> A note from myself:
> the pg_bulkupload feature is already implemented:
> https://issues.apache.org/jira/browse/SQOOP-390
> pg_builupload is a third-party tool, I guess supporting COPY would be a better case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira