X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id DA738D1C511 for ; Tue, 9 Mar 2004 15:57:00 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 72658-05 for ; Tue, 9 Mar 2004 11:56:58 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id E98FDD1BA93 for ; Tue, 9 Mar 2004 11:56:50 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i29Fue5t025602; Tue, 9 Mar 2004 10:56:40 -0500 (EST) To: "Stergios Zissakis" Cc: pgsql-odbc@postgresql.org, "Kostas Lykiardopoulos" , "Dimitris Pantermalis" Subject: Re: Mutli-threading and performance of ODBC In-reply-to: References: Comments: In-reply-to "Stergios Zissakis" message dated "Tue, 09 Mar 2004 16:24:03 +0200" Date: Tue, 09 Mar 2004 10:56:40 -0500 Message-ID: <25601.1078847800@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/8 X-Sequence-Number: 3810 "Stergios Zissakis" writes: > 1. Studing the postgreSQL log, it is apparent that the the ODBC driver > switches off the Genetic Query Optimiser (geqo) and tries to switch on > another optimiser called (ksqo) which fails. What is the ksqo optimiser? ksqo was a hack that disappeared several releases back. I do not know why ODBC still has a reference to it (or why it tried to force it on in the first place; IMHO a driver has no business making that kind of decision). I would recommend removing both of those SETs from the driver code. > 3. Also, using ODBC, in the log file of PostgreSQL, it is seen that a > lot of blank statements are generated. Can these blank statements affect > the performance? The backend won't spend much time on a blank statement, but if a separate network round trip is being incurred for each one, that could get a tad expensive ... regards, tom lane