Skip site navigation (1) Skip section navigation (2)

Pg module "eats" environment

From: Vitaly Piniygin <gambler(at)pfr(dot)ru>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Pg module "eats" environment
Date: 1999-10-12 09:12:33
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
Your name               :  Vitaly Piniygin      
Your email address      :  <gambler(at)pfr(dot)ru>

System Configuration
  Operating System:

Linux 2.2.9 i686 unknown

FreeBSD 3.2-RELEASE i386

  PostgreSQL version:   PostgreSQL-6.5.1

  Compiler used (example:  gcc 2.8.0):
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
gcc version

Please enter a FULL description of your problem:

        The Pg perl module seems to be broken in following way:
It "eats" environment after the database is opened and $0 perl variable is set
to some value ( see the script below).

Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible: 

~ $ export | grep PG
declare -x PGDATABASE="test"
declare -x PGHOST="host"
declare -x PGLIB="/usr/local/pgsql/lib"
declare -x PGPASSWORD="passwd"
declare -x PGUSER="user"
~ $ perl -e 'use Pg; $dbconn = Pg::connectdb(""); $0 = "name";\
~/projects/TD/assist $

If you know how this problem might be fixed, list the solution below:

        I'm a user, not perl-modules guru ;-)


BG, Vit

E-Mail: Vitaly Piniygin <gambler(at)pfr(dot)ru>
Date: 12-Oct-99
Time: 15:09:56



pgsql-bugs by date

Next:From: Edmund MerglDate: 1999-10-12 18:38:05
Subject: Re: [BUGS] Pg module "eats" environment
Previous:From: Pedro J. LoboDate: 1999-10-11 08:37:14
Subject: Re: [BUGS] 6.5.2 broken on alpha/Tru64 Unix 4.0d/cc

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group