Re: Question about COPY command - Mailing list pgsql-general

From Andrej
Subject Re: Question about COPY command
Date
Msg-id b35603930901081302ob670d9au3cbd1274d0bf322c@mail.gmail.com
Whole thread Raw
In response to Re: Question about COPY command  ("Josh Harrison" <joshques@gmail.com>)
List pgsql-general
2009/1/9 Josh Harrison <joshques@gmail.com>:
> My question is is it possible to read the oracle data from the oracle
> database and copy them into postgresql database directly by using COPY
> command instead of jdbc preparedstatement(INSERT command) ?
Should be possible; just got to make sure that you have all the formatting
right, you may need something like sed or awk to make them match ...

Of course it also depends on the complexity of "database"; if you
have several tables w/ referential integrity then copy obviously wouldn't
be the right tool for the job.


> Thanks
> Josh
Cheers,
Andrej

pgsql-general by date:

Previous
From: "Andrus"
Date:
Subject: Re: column "id" is of type integer but expression is of type character
Next
From: Richard Huxton
Date:
Subject: Re: column "id" is of type integer but expression is of type character