X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id ECAC0475CEE; Wed, 9 Apr 2003 14:59:17 -0400 (EDT) Received: from sj-core-1.cisco.com (sj-core-1.cisco.com [171.71.177.237]) by postgresql.org (Postfix) with ESMTP id D502C475458; Wed, 9 Apr 2003 14:59:14 -0400 (EDT) Received: from mira-sjc5-e.cisco.com (IDENT:mirapoint@mira-sjc5-e.cisco.com [171.71.163.15]) by sj-core-1.cisco.com (8.12.6/8.12.6) with ESMTP id h39IxDmi008984; Wed, 9 Apr 2003 11:59:13 -0700 (PDT) Received: from CJWHITEW2K2 (dhcp-128-107-146-255.cisco.com [128.107.146.255]) by mira-sjc5-e.cisco.com (Mirapoint Messaging Server MOS 3.3.3-GR) with ESMTP id ADB65996; Wed, 9 Apr 2003 11:59:09 -0700 (PDT) Reply-To: From: "Chris White" To: "'Tom Lane'" Cc: , Subject: Re: [JDBC] Problems with Large Objects using Postgres 7.2.1 Date: Wed, 9 Apr 2003 11:59:08 -0700 Message-ID: <012f01c2feca$1a3ab860$ff926b80@amer.cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <8672.1049909301@sss.pgh.pa.us> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Status: No, hits=-21.8 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,ORIGINAL_MESSAGE autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/158 X-Sequence-Number: 8313 Looking at our code further, the actual code writes the large object commits it, opens the large object updates the header of the large object (first 58 bytes) with some length info using seeks, then writes and commits the object again, before updating and committing the associated tables. The data I saw in the exported file was the header info without the updates for the length info i.e. after the first commit!! Chris -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Wednesday, April 09, 2003 10:28 AM To: cjwhite@cisco.com Cc: pgsql-jdbc@postgresql.org; pgsql-admin@postgresql.org Subject: Re: [JDBC] [ADMIN] Problems with Large Objects using Postgres 7.2.1 "Chris White" writes: > I didn't looked at the data in the table. However, when I did a lo_export of > one of the objects I only got a 2K file output. IIRC, we store 2K per row in pg_largeobject. So this is consistent with the idea that row 0 is present for the LO ID, while row 1 is not. What I'm wondering is if the other hundred-odd rows that would be needed to hold a 300K large object are there or not. Also, do the rows contain the appropriate data for their parts of the overall large object? regards, tom lane