X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 5BF85476352; Wed, 9 Apr 2003 12:25:39 -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 A96B8476342; Wed, 9 Apr 2003 12:25:36 -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 h39GPbmk022940; Wed, 9 Apr 2003 09:25:40 -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 ADB46422; Wed, 9 Apr 2003 09:25:37 -0700 (PDT) Reply-To: From: "Chris White" To: , Subject: Re: Problems with Large Objects using Postgres 7.2.1 Date: Wed, 9 Apr 2003 09:25:35 -0700 Message-ID: <010c01c2feb4$a6ebe100$ff926b80@amer.cisco.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_010D_01C2FE79.FA8D0900" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <000f01c2f9ff$0f9e6250$ff926b80@amer.cisco.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Status: No, hits=-7.3 required=5.0 tests=BAYES_10,HTML_20_30,HTML_FONT_COLOR_BLUE,IN_REP_TO 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/147 X-Sequence-Number: 8302 This is a multi-part message in MIME format. ------=_NextPart_000_010D_01C2FE79.FA8D0900 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Never saw any responses to this. Anybody have any ideas? -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Chris White Sent: Thursday, April 03, 2003 8:36 AM To: pgsql-jdbc@postgresql.org; pgsql-admin@postgresql.org Subject: [ADMIN] Problems with Large Objects using Postgres 7.2.1 I have a Java application which writes large objects to the database using the JDBC interface. The application reads binary input from an input stream and writes large objects to the database in 8K chunks and calculates the length of the data. At the end of the input stream it closes the large object and commits the large object and then updates associated tables with the large object id and large object length and commits that info to the database. The application has multiple threads (max 8) simultaneously writing these large objects each using their own connection. Whenever the system has a problem we have a monitor application which detects a need for a system shutdown and shuts down Postgres using a smart shutdown. What I am seeing is that when all 8 threads are running and the system is shutdown, large objects committed in transactions near to the shutdown are corrupt when the database is restarted. I know the large objects are committed, because the associated entries in the tables which point to the large objects are present after the restart with valid information about the large object length and oid. However when I access the large objects I am only returned a 2K chunk even though the table entry tells me the entry should be 320K. Anybody have any ideas what is the problem? Are there any know issues with the recovery of large objects? Chris White ------=_NextPart_000_010D_01C2FE79.FA8D0900 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Never=20 saw any responses to this. Anybody have any ideas?
-----Original Message-----
From:=20 pgsql-admin-owner@postgresql.org=20 [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Chris=20 White
Sent: Thursday, April 03, 2003 8:36 AM
To:=20 pgsql-jdbc@postgresql.org; pgsql-admin@postgresql.org
Subject:= =20 [ADMIN] Problems with Large Objects using Postgres 7.2.1

I have = a Java=20 application which writes large objects to the database using the JDBC=20 interface. The application reads binary input from an input stream a= nd=20 writes large objects to the database in 8K chunks and calculates the leng= th of=20 the data. At the end of the input stream it closes the large ob= ject=20 and commits the large object and then updates associated tables with the = large=20 object id and large object length and commits that info to the database. = The=20 application has multiple threads (max 8)  simultaneously writin= g=20 these large objects each using their own connection. Whenever the system = has a=20 problem we have a monitor application which detects a need for a system= =20 shutdown and shuts down Postgres using a smart shutdown.
 
What I = am seeing=20 is that when all 8 threads are running and the system is shutdown, l= arge=20 objects committed in transactions near to the shutdown are corrupt when t= he=20 database is restarted. I know the large objects are committed, because th= e=20 associated entries in the tables which point to the large objects are pre= sent=20 after the restart with valid information about the large object length an= d=20 oid. However when I access the large objects I am only returned a 2K chun= k=20 even though the table entry tells me the entry should be=20 320K.
 
Anybody= have any=20 ideas what is the problem? Are there any know issues with the recovery of= =20 large objects?
 
Chris= =20 White
------=_NextPart_000_010D_01C2FE79.FA8D0900--