pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomasz Olszak <tolszak@o2.pl>
To: pgsql-admin@postgresql.org
Subject: Re: Problem With using PERL::DBI in plperlu function
Date: Tue, 24 Feb 2009 09:30:01 +0100
Message-ID: <644a8ae7.2fd54209.49a3b009.acc13@o2.pl> (raw)
In-Reply-To: <200902231530.19579.xzilla@users.sourceforge.net>
References: <57da2175.1ad3af61.49a26c33.ce91@o2.pl>
	<cc4f12900902230324g7a683b96tc0009dd640732837@mail.gmail.com>
	<200902231530.19579.xzilla@users.sourceforge.net>

Than you for Your answer Robert.
 
I've trying a lot of different configurations and the same perl body that works in OS perl script but doesn't work in plperlu function.
 
I think it's a little bit confusing that almost all examples in Internet showing creating connection from postgres to oracle the way I did it.
 
It seems that nobody tried to connect (from plperlu function) with external database(not installed on localhost and not in local network).
 
Version Of perl that i'm using is 5.8.8, postgresql 8.2.9, oracle 10.2 client and DBI version is 1.52.
 
I'll try to install latest DBI and perl.
 If it's plperlu problem i will not try with latest postgresql because databases and application i'm using i too big to change source code of pg functions and application in few days to work with 8.3.* databases.
 
If I find any solutions i will write an answer.
 
Greetings
 
Tomek
There is a bug somewhere in the plperlu &lt;-&gt; oracle dbi stack (most likely in 
the oracle dbd driver, but that just a guess) that prevents these type of 
connections from work from a non-local connection, specifically due to lack 
of environment variable sanity. We spent quite a bit of time trying to figure 
this out a few years ago, but to no avail, so generally my answer on this 
is "you can't do that", but by all means feel free to dig in and post if you 
find a way to make it work (I'm hopeful that newer versions of the software 
involved might work, but haven't had any luck in the combinations I've tested 
so far). 
-- 
Robert Treat
Conjecture: http://www.xzilla.net
Consulting: http://www.omniti.com

view thread (6+ messages)  latest in thread

Message-ID: <644a8ae7.2fd54209.49a3b009.acc13@o2.pl>
Permalink:  ../644a8ae7.2fd54209.49a3b009.acc13@o2.pl/
Also on:    postgresql.org/message-id/644a8ae7.2fd54209.49a3b009.acc13@o2.pl

 · 

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-admin@postgresql.org
  Cc: tolszak@o2.pl
  Subject: Re: Problem With using PERL::DBI in plperlu function
  In-Reply-To: <644a8ae7.2fd54209.49a3b009.acc13@o2.pl>

* 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