pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marcin Stępnicki <mstepnicki@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: Postgresql & Oracle Heteregenous services - strange behaviour
Date: Fri, 19 Jan 2007 14:14:26 +0100
Message-ID: <pan.2007.01.19.13.14.26.521464@gmail.com> (raw)
References: <pan.2007.01.17.12.52.25.379331@gmail.com>
	<20070117125857.GD19527@phlogiston.dyndns.org>
	<45AE1EDC.7090005@archonet.com>

Dnia Wed, 17 Jan 2007 13:04:28 +0000, Richard Huxton napisał(a):

> That'd be my guess. And then it's not fetching any rows, expecting 
> cursor-like behaviour. Of course we fetch all the rows before returning 
> any results.
> 
> The real solution would be to add "LIMIT 0" or "LIMIT 1" to the 
> column-finding query, but I doubt that's possible with the Oracle plugin.
> 
> Perhaps check if there's a "fetch N rows at a time" option for the ODBC 
> setup that might help you.

I've tried various settings, upgraded to psqlodbc 8.02.0200, looked into
the source (info.c, retry_public_schema label) and there's a query which
gets the columns (select n.nspname, c.relname, a.attname, a.atttypid
(...)), I now can even see it in logs but there's still this additional
select before. I think it's not psqlodbc problem, because when I
issue my queries directly from isql from unixodbc everything seems normal
- I get this additional select only when quering from Oracle using
@my_server. Therefore, I think it is Oracle's fault and try to move this
topic to Metalink. Thank you again.

-- 
| 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 





view thread (5+ messages)

Message-ID: <pan.2007.01.19.13.14.26.521464@gmail.com>
Permalink:  ../pan.2007.01.19.13.14.26.521464@gmail.com/
Also on:    postgresql.org/message-id/pan.2007.01.19.13.14.26.521464@gmail.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mstepnicki@gmail.com
  Subject: Re: Postgresql & Oracle Heteregenous services - strange behaviour
  In-Reply-To: <pan.2007.01.19.13.14.26.521464@gmail.com>

* 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