From: Hiroshi Inoue <inoue@tpf.co.jp>
To: andrea.ricci@dedalus.eu
Cc: pgsql-odbc@postgresql.org
Subject: Re: ByteA column retrieved in 31 minutes ...
Date: Wed, 18 Jul 2012 06:11:51 +0900
Message-ID: <5005D517.3020809@tpf.co.jp> (raw)
In-Reply-To: <50057AC6.8030904@dedalus.eu>
References: <50057AC6.8030904@dedalus.eu>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: inoue@tpf.co.jp, andrea.ricci@dedalus.eu
Subject: Re: ByteA column retrieved in 31 minutes ...
In-Reply-To: <5005D517.3020809@tpf.co.jp>
References: <50057AC6.8030904@dedalus.eu> <5005D517.3020809@tpf.co.jp>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox