pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Perl
7+ messages / 6 participants
[nested] [flat]

* Perl
@ 1999-09-12 21:47  Dan <gelles@inter.net.il>
  0 siblings, 0 replies; 7+ messages in thread

From: Dan @ 1999-09-12 21:47 UTC (permalink / raw)
  To: pgsql-interfaces

Hello all.

1. Where can i find documntetion and examples for using postgresql from Perl?

Regards,
Dan

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* PERL
@ 1999-09-19 11:17  Jason Doller <jason@intekom.co.za>
  0 siblings, 1 reply; 7+ messages in thread

From: Jason Doller @ 1999-09-19 11:17 UTC (permalink / raw)
  To: pgsql-interfaces; hackers@postgresql.org

Hi All

I'm a bit lost!  Where can I find documentation on accessing postgres 
from inside PERL (5)?

Any help will be appreciated.  (The thing is, I'm sure I've seen the info 
somewhere, but for the life of me I can't remember where...)

Thanks

Jason Doller



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: [INTERFACES] PERL
@ 1999-09-19 14:57  Brett W. McCoy <bmccoy@lan2wan.com>
  parent: Jason Doller <jason@intekom.co.za>
  0 siblings, 0 replies; 7+ messages in thread

From: Brett W. McCoy @ 1999-09-19 14:57 UTC (permalink / raw)
  To: rjd@intekom.co.za; +Cc: pgsql-interfaces; hackers@postgresql.org

On Sun, 19 Sep 1999, Jason Doller wrote:

> I'm a bit lost!  Where can I find documentation on accessing postgres 
> from inside PERL (5)?
> 
> Any help will be appreciated.  (The thing is, I'm sure I've seen the info 
> somewhere, but for the life of me I can't remember where...)

Under the source tree, go to the interfaces directory, and there is a
directory for the perl interface (Pg.pm).  You have to enable the Perl
option when you run configure, and you will also have to install the
module as root, since it gets installed under the module hierarchy
wherever you have Perl installed.  Then you only need to do a 'perldoc Pg'
to see the documentation on it.  See the build instructions for more
information on the how to install the Perl module.

Brett W. McCoy           
                                        http://www.lan2wan.com/~bmccoy/
-----------------------------------------------------------------------
Don't let your mind wander -- it's too little to be let out alone.




^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Perl
@ 2003-06-26 09:20  Giorgio Ponza <giorgio@opla.it>
  0 siblings, 1 reply; 7+ messages in thread

From: Giorgio Ponza @ 2003-06-26 09:20 UTC (permalink / raw)
  To: pgsql-interfaces

Sorry if i ask you, but reading the past messages didn't help me
I'm trying to configure dbmirror for my PostgreSQL 7.3.3 installation, but
when i try to execute the DBMirror.sql, i get the error:

Can't locate Pg.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.8.0/i686-linux
 /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/i686-linux
/usr
/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl .) at
./DBMirror
.pl line 76.
BEGIN failed--compilation aborted at ./DBMirror.pl line 76.

I installed PostgreSQL 7.3.3 with the --with-perl (also --with-tcl)
The dbmirror README says to see in src/interfaces/perl5 but i don't have
that dir.
I also see in /usr/local/pgsql/lib and there is the plperl.so file
Can anyone help me?

tx

Giorgio Ponza




^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Perl
@ 2003-06-26 14:00  greg@turnstep.com
  parent: Giorgio Ponza <giorgio@opla.it>
  0 siblings, 2 replies; 7+ messages in thread

From: greg@turnstep.com @ 2003-06-26 14:00 UTC (permalink / raw)
  To: pgsql-interfaces


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> Sorry if i ask you, but reading the past messages didn't help me
> I'm trying to configure dbmirror for my PostgreSQL 7.3.3 installation, but
> when i try to execute the DBMirror.sql, i get the error:
>
> Can't locate Pg.pm in @INC (@INC contains:

Pg.pm is the PostgreSQL version of the DBI driver for Perl. You can install 
it from here:

http://theoryx5.uwinnipeg.ca/mod_perl/cpan-search?site=ftp.funet.fi;modinfo=4348


Once installed, you should no longer see the error above. If you have any 
problems, feel free to email the list.


- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200306260955

-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html

iD8DBQE++vwwvJuQZxSWSsgRAgdPAJoDjwB0DgyGfWh903rC4H7Hyx4H1QCg87tZ
qf2SmFqvDACyua1hG1/VEqc=
=0xrA
-----END PGP SIGNATURE-----





^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Perl
@ 2003-06-26 15:01  Giorgio Ponza <giorgio@opla.it>
  parent: greg@turnstep.com
  1 sibling, 0 replies; 7+ messages in thread

From: Giorgio Ponza @ 2003-06-26 15:01 UTC (permalink / raw)
  To: pgsql-interfaces

Tx for the answer, i found also this link
http://gborg.postgresql.org/project/pgperl/projdisplay.php
i installed and now it works (not yet dbmirror, but i am trying)

I will try all the two
Tx again
Giorgio Ponza

You wrote:
> Pg.pm is the PostgreSQL version of the DBI driver for Perl. You can
install
> it from here:
>
>
http://theoryx5.uwinnipeg.ca/mod_perl/cpan-search?site=ftp.funet.fi;modinfo=
4348
>
>
> Once installed, you should no longer see the error above. If you have any
> problems, feel free to email the list.





^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Perl
@ 2003-06-26 15:02  Keith Keller <kkeller-postgres@wombat.san-francisco.ca.us>
  parent: greg@turnstep.com
  1 sibling, 0 replies; 7+ messages in thread

From: Keith Keller @ 2003-06-26 15:02 UTC (permalink / raw)
  To: pgsql-interfaces

On Thu, Jun 26, 2003 at 02:00:32PM -0000, greg@turnstep.com wrote:
> 
> > Sorry if i ask you, but reading the past messages didn't help me
> > I'm trying to configure dbmirror for my PostgreSQL 7.3.3 installation, but
> > when i try to execute the DBMirror.sql, i get the error:
> >
> > Can't locate Pg.pm in @INC (@INC contains:
> 
> Pg.pm is the PostgreSQL version of the DBI driver for Perl.

Actually, Pg.pm is also a non-DBI interface to PostgreSQL:

http://theoryx5.uwinnipeg.ca/mod_perl/cpan-search?site=ftp.funet.fi;modinfo=14303

If the script has "use Pg;", then this is the module you need.  If it
says "use DBI;", then you need the first module Greg mentioned.

--keith

-- 
kkeller@speakeasy.net
alt.os.linux.slackware FAQ:  http://wombat.san-francisco.ca.us/cgi-bin/fom




^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2003-06-26 15:02 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-09-12 21:47 Perl Dan <gelles@inter.net.il>
1999-09-19 11:17 PERL Jason Doller <jason@intekom.co.za>
1999-09-19 14:57 ` Re: [INTERFACES] PERL Brett W. McCoy <bmccoy@lan2wan.com>
2003-06-26 09:20 Perl Giorgio Ponza <giorgio@opla.it>
2003-06-26 14:00 ` greg@turnstep.com
2003-06-26 15:01   ` Giorgio Ponza <giorgio@opla.it>
2003-06-26 15:02   ` Keith Keller <kkeller-postgres@wombat.san-francisco.ca.us>

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