X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id E2DB99DC82C for ; Wed, 8 Feb 2006 05:47:45 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 99836-02 for ; Wed, 8 Feb 2006 05:47:47 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web34701.mail.mud.yahoo.com (web34701.mail.mud.yahoo.com [209.191.68.150]) by postgresql.org (Postfix) with SMTP id 7636F9DC86C for ; Wed, 8 Feb 2006 05:47:42 -0400 (AST) Received: (qmail 74889 invoked by uid 60001); 8 Feb 2006 09:47:44 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=wpoORIOoLe0086OAt9BXwM+J+vgw0cXLEP/6ObDO6N4t8/SzZv4yDXcv/kavIRYku1P1JJcY8Z+vgyDDLc4MGOF6s3BEwWm32JNa+/AAKvFQcEnDjYiDposAR5wo8aSrTAWrnjms5EslQ6Fl47xxeq19oNeqIgG1Fe71Dm9uc+4= ; Message-ID: <20060208094744.74887.qmail@web34701.mail.mud.yahoo.com> Date: Wed, 8 Feb 2006 01:47:44 -0800 (PST) From: Ryan Li Reply-To: Ryan Li Subject: oid as long type To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.407 required=5 tests=[DNS_FROM_RFC_ABUSE=0.479, FORGED_YAHOO_RCVD=0.928] X-Spam-Score: 1.407 X-Spam-Level: * X-Archive-Number: 200602/53 X-Sequence-Number: 14650 What's the reason of using int rather than long for the large object oid? I am experiencing a problem where the database server is generating oids exceeding the size for a Java int, and got "org.postgresql.util.PSQLException: Bad value for type int". Could this be solve by making org.postgresql.largeobject.LargeObject.oid a long type and make corresponding changes to the source tree? (for example in org.postgresql.jdbc3.Jdbc3ResultSet.getBlob(int), instead of: return new Jdbc3Blob(connection, getInt(i)); do: return new Jdbc3Blob(connection, getLong(i));) I am not familar with the internals of the driver, so not sure if there are other complications. Any advice on using long oids would be much appreciated. Thanks in advance! Ryan