PostgreSQL JDBC: bytea column getMetaData().getColumns().getIn("COLUMN_SIZE") ~ 2GB

From: Grace Batumbya <grace(dot)batumbya(at)senecac(dot)on(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: PostgreSQL JDBC: bytea column getMetaData().getColumns().getIn("COLUMN_SIZE") ~ 2GB
Date: 2011-07-12 13:03:17
Message-ID: 4E1C4615.3010909@senecac.on.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi there,
I am using postgresql-9.0-801.jdbc3, on postgresql 9.0.4.
On a bytea column, getMetaData().getColumns().getIn("COLUMN_SIZE")
returns 2147483647 yet from asking around on #postgresql on irc, the
bytea has a limit just less than 1GB.
Why then does jdbc return 2GB instead of 1GB?
--
*Grace Batumbya*
Research Assistant | Seneca CDOT
Phone: 416-491-5050 x3548
cdot.senecac.on.ca <http://cdot.senecac.on.ca/>

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jon80 2011-07-12 13:07:28 Re: No suitable driver found for jdbc:postgresql [error]
Previous Message Jonathan Barber 2011-07-12 11:59:22 Re: Slow queries (high duration) and their log entries appearing out-of-order