Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 647259FB228 for ; Wed, 17 Jan 2007 08:54:01 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 28509-02 for ; Wed, 17 Jan 2007 08:53:16 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id 9E97F9FB229 for ; Wed, 17 Jan 2007 08:53:21 -0400 (AST) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1H7AHl-0007KR-4e for pgsql-sql@postgresql.org; Wed, 17 Jan 2007 13:53:02 +0100 Received: from pc035-72.amg.gda.pl ([153.19.72.35]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Jan 2007 13:53:01 +0100 Received: from mstepnicki by pc035-72.amg.gda.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Jan 2007 13:53:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-sql@postgresql.org From: =?iso-8859-2?q?Marcin_St=EApnicki?= Subject: Postgresql & Oracle Heteregenous services - strange behaviour Date: Wed, 17 Jan 2007 13:52:25 +0100 Organization: Linux.PL Lines: 33 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pc035-72.amg.gda.pl User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux)) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.295 tagged_above=0 required=5 tests=AWL, BAYES_05, INFO_TLD, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200701/66 X-Sequence-Number: 27218 I'm not sure if it's proper group, if not then please direct me to more appropriate one (unixodbc?) I've set up connection from oracle to postgresql via unixodbc and oracle's heterogeneus services. The connection works, but when I issue the following: select "p_nr_pesel" from "zew_patients"@my_postgresql where "p_patient_id"=19300; I see this in postgresql logs: [6210] DEBUG: query: select * from "zew_patients" [6210] DEBUG: query: SELECT "A1"."p_nr_pesel" FROM "zew_patients" "A1" WHERE ("A1"."p_patient_id" = 19300) The point is, I don't why oh why the first select is issued (some cache?), but it slows the query a lot for obvious reasons. When I issue it for the second time in the same session, I see only the second select (that's how it should be from my point of view). After reconnecting I see both selects again :(. If it's known issue, I'd be grateful even for simple RTFM and a link :). Thank you for your time, Marcin -- | And Do What You Will be the challenge | http://apcoln.linuxpl.org | So be it in love that harms none | http://biznes.linux.pl | For this is the only commandment. | http://www.juanperon.info `---* JID: Aragorn_Vime@jabber.org *---' http://www.naszedzieci.org