X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DB8773A40D0 for ; Mon, 25 Oct 2004 15:28:04 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 07099-04 for ; Mon, 25 Oct 2004 14:27:56 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 4E5953A4045 for ; Mon, 25 Oct 2004 15:28:00 +0100 (BST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id i9PES0Ng018428; Mon, 25 Oct 2004 10:28:00 -0400 (EDT) To: Christian Niles Cc: pgsql-jdbc@postgresql.org Subject: Re: LargeObject API and OIDs In-reply-to: <9A32C02E-268E-11D9-89C4-000A9590B78E@unit12.net> References: <17821.1098649614@sss.pgh.pa.us> <9A32C02E-268E-11D9-89C4-000A9590B78E@unit12.net> Comments: In-reply-to Christian Niles message dated "Mon, 25 Oct 2004 10:03:09 -0400" Date: Mon, 25 Oct 2004 10:28:00 -0400 Message-ID: <18427.1098714480@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/262 X-Sequence-Number: 11367 Christian Niles writes: > On Oct 24, 2004, at 4:26 PM, Tom Lane wrote: >> ... Something involving a bigint identifier >> would work better. > If i understand correctly, you're implying here using a table that > mimics the pg_largeobject table, but uses int/bigint identifiers > instead of OID. I was thinking of just a bigint primary key and a bytea data field. You would of course have to fool with the bytea value instead of using the LargeObject API; dunno how inconvenient this is for you. regards, tom lane