Re: copy command and blobs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mladen Gogala <mladen.gogala@xxxxxxxxxxx> writes:
> Madhu Ramachandran wrote:
>> i have a table with OID column.. I want to use the copy command to 
>> insert bunch of rows (1 million).
>> but iam unable to specify the correct format for the oid type (i have 
>> .jpg files to be stored in this column)..

> Huh? oid is a keyword, an automatically generated row id, and is 
> deprecated. You shouldn't be doing anything with it, much less copying it.

I think what the OP actually means is he's thinking of importing some
images as large objects, then storing their OIDs in a user (not system)
column of type oid.  COPY can't be used for that though.

It might be better to use a bytea column, if you're willing to deal with
bytea's weird escaping rules.

			regards, tom lane

-- 
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux