Re: Importing directly from BCP files

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Tim Uckun <timuckun(at)gmail(dot)com>
Cc: S McGraw <smcg4191(at)mtneva(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Importing directly from BCP files
Date: 2015-11-17 00:52:17
Message-ID: 564A7A41.1050100@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/16/2015 04:25 PM, Tim Uckun wrote:
> the binary form of the BCP file output is undocumented. So if all
> the BCP files you have are the binary(native) version you are up
> this creek without a paddle.
>
>
> Ugh. Yes it looks like that's the creek I am on. Thanks Microsoft!
>
> So, moving to another creek. It depends on the amount of data you
> are working with, but it might be worth it to spin up a VM in the
> cloud on AWS, Azure, etc that has SQL Server on it and import the
> BCP files there. You could then export the data using the character
> format instead of the native format:
>
>
> Man that really sucks but if it's the only way then I guess it's the
> only way.

Something else that came to mind, where did you get the BCP files from
and is possible the source could create the text based versions instead
of the binary?

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2015-11-17 01:23:31 Re: bdr appears to be trying to replicate to itself
Previous Message Michael Paquier 2015-11-17 00:44:19 Re: Adding a new module to postgres