Re: [GENERAL] DBI/DBD-Pg/perl question

From: Maarten Boekhold <maartenb(at)dutepp0(dot)et(dot)tudelft(dot)nl>
To: Brian <signal(at)shreve(dot)net>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] DBI/DBD-Pg/perl question
Date: 1998-07-05 10:55:23
Message-ID: Pine.SUN.3.91.980705124712.24425B-100000@dutepp0.et.tudelft.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 4 Jul 1998, Brian wrote:

> I have a server which runs Postgres 6.3 under linux. On this system perl,
> DBI-0.93, and DBD-Pg are installed. This machine can do accesses and
> operations to the database with no problems. This machine is called
> "earth".
>
> What I am wanting to do, is allow say 20 other machines access to this
> database via Perl/DBI/DBD.
>
> Do I have to install Postgres-6.3 on *every* machine that I want to be
> able to access the Postgres database on earth, or is there a way to just
> compile DBD/DBI/perl on these "client only" machines?
>
> The docs for DBD-Pg say you need to install Postgres-6.3 on the machine
> for DBD-Pg to work. I am just trying to find out if this is really
> necessary, is there such a thing as a "client only" installation of
> Postgres that is a little smaller maybe? If I have to install
> Postgres-6.3 on every machine i guess I will, I just didn't want to
> maintain that many different copies of one program.

For DBI/DBD to work, you'll need libpq, which contains the actual code to
interface with PostgreSQL. It should be possible to only install (ie.
copy) libpq.{a|so} and the necessary include-files to those machines, and
then install the DBD driver. You could probably put all the necessary
files in a .tar.gz file (write a little script to do this), so it's easy
to distribute those files (and to keep the machines up-to-date when you
upgrade PostgreSQL).

Maybe it's an idea to include such a script in the main distribution. It
should place all necessary libraries and include-files, and maybe the
user tools like psql.

If you're running a Debian/Linux system, you're in luck. There already
exist the necessary packages (libpgsql, libpgperl (postgresql specific),
libdbi-perl, couldn't find libdbi-pgsql however, someone should create this).

Maarten

_____________________________________________________________________________
| TU Delft, The Netherlands, Faculty of Information Technology and Systems |
| Department of Electrical Engineering |
| Computer Architecture and Digital Technique section |
| M(dot)Boekhold(at)et(dot)tudelft(dot)nl |
-----------------------------------------------------------------------------

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jrgen Siepmann 1998-07-05 20:43:30 documentation
Previous Message Peter T Mount 1998-07-05 10:17:39 Re: [GENERAL] JDBC and ODBC