Skip site navigation (1) Skip section navigation (2)

Re: How to transfer binary data into a BIT VARYING column ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Timothy Madden <terminatorul(at)gmail(dot)com>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: How to transfer binary data into a BIT VARYING column ?
Date: 2009-05-19 15:18:31
Message-ID: 14575.1242746311@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-odbc
Timothy Madden <terminatorul(at)gmail(dot)com> writes:
> I have a BIT VARYING(83886080) column in my table and I would like to
> store file attachments
> in it.

Use bytea.

> I would like to use BIT VARYING because it is an ANSI-conformant
> binary type, while bytea and 'lo' are not ANSI SQL.

Considering the nonstandard things you will have to do to get data into
the column, this seems like a pretty silly argument.

			regards, tom lane

In response to

Responses

pgsql-odbc by date

Next:From: Rainer BauerDate: 2009-05-19 16:43:24
Subject: Re: How can I bind query parameters to variables ?
Previous:From: Timothy MaddenDate: 2009-05-19 13:24:36
Subject: How to transfer binary data into a BIT VARYING column ?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group