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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-odbc by date

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