Re: COPY not handling BLOBs

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: David Rysdam <drysdam(at)ll(dot)mit(dot)edu>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: COPY not handling BLOBs
Date: 2004-08-04 17:51:07
Message-ID: 874qniu704.fsf@asmodeus.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

David Rysdam <drysdam(at)ll(dot)mit(dot)edu> writes:

> Right now I'm having to write a program to create all the large
> objects up front and record the OIDs in a file which I will then COPY
> in with the rest of my data.

You might consider using "bytea" instead of large objects, unless you
need the lo_read()/lo_seek() API in your client app... I'm not
super-familiar with how bytea and COPY work together, though.

-Doug
--
Let us cross over the river, and rest under the shade of the trees.
--T. J. Jackson, 1863

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-08-04 17:57:12 Re: Casting timestamp with time zone to varchar automatically
Previous Message Prabu Subroto 2004-08-04 17:47:26 altering the datatype of a column.