Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 098B31220E23 for ; Tue, 17 Jul 2012 18:12:16 -0300 (ADT) Received: from sd.tpf.co.jp ([210.161.239.34]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1SrF40-0006Vo-9l for pgsql-odbc@postgresql.org; Tue, 17 Jul 2012 21:12:15 +0000 Received: (qmail 27322 invoked by uid 512); 17 Jul 2012 21:11:55 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 17 Jul 2012 21:11:55 -0000 Received: from unknown (HELO ?192.168.2.101?) (183.76.21.62) by sd.tpf.co.jp with SMTP; 17 Jul 2012 21:11:55 -0000 Message-ID: <5005D517.3020809@tpf.co.jp> Date: Wed, 18 Jul 2012 06:11:51 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: andrea.ricci@dedalus.eu CC: pgsql-odbc@postgresql.org Subject: Re: ByteA column retrieved in 31 minutes ... References: <50057AC6.8030904@dedalus.eu> In-Reply-To: <50057AC6.8030904@dedalus.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/11 X-Sequence-Number: 10905 Hi Andrea, (2012/07/17 23:46), Andrea Ricci wrote: > Hi, > I'm using a 9.0.2 db in a PowerBuilder 12.1 application, connecting to > it via ODBC driver 09.00.0200. > > I have a table with a bytea column: > > CREATE TABLE docs > ( > blobid character(7) NOT NULL, > descript character varying(40), > data date, > "lock" character(1), > ora character(5), > parita character(1), > tipo character(3), > dbvtesto bytea, > CONSTRAINT docs_pkey PRIMARY KEY (blobid), > CONSTRAINT fk1_docs FOREIGN KEY (blobid) > REFERENCES blob (blobid) MATCH SIMPLE > ON UPDATE NO ACTION ON DELETE CASCADE > ) > WITH ( > OIDS=FALSE > ); > > > When I retrieve via embedded SQL the dbvtesto column (using PK obv.) I > get it in few seconds if its length is about 10 KB, but I've to wait 31 > minutes (!) if it's about 1 MB. > > If someone has a proposal ... Mylog is a performance killer for this kind of query. How about disabling Mylog? regards, Hiroshi Inoue