pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Cary B. O'Brien <cobrien@access.digex.net>
To: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] New user questions re libpq++
Date: Tue, 20 Oct 1998 17:19:07 -0400 (EDT)
Message-ID: <199810202119.RAA19850@access2.digex.net> (raw)
In-Reply-To: <XFMail.981020134250.orsingerc@epg-gw1.lewis.army.mil>


Just another viewpoint...

Craig wrote...

> On 18-Oct-98 Phil Romig wrote:
> > I would appreciate some clarification regarding the C++ interface for
> > postgres.  I am using postgres-6.3.2.  The database lives on a linux box
> > but the applications I am working on need to run under several different
> > flavors of Unix (HPUX, Solaris, Linux).
> > 
[snip]
> 
>         Based solely on the opinion of others whose opinions have
> proven worth listening to, I'd advise not to bother using ODBC unless
> you're looking for PC compatibility. ODBC has a reputation for requiring
> more CPU and memory than other competing technologies. I've found the
> PostgreSQL TCP-based interface to be pretty handy, but I don't have
> any MSDOS/Windows client, either. You only mentioned flavors of Unix
> OS in your description of your project, so I wouldn't think you'd care
> about Windows apps, either.
> 

It is kind of complex.  It does work for Unix systems.  I've got
ApplixWare talking to PostgreSQL using an ODBC interface.   But I'm
not sure I'd like to write software that uses the ODBC calls.

> 
>         If you're looking for something more graphical, there's also a
> Tcl/Tk library for PostgreSQL called "libpgtcl". There's a good example
> of programming in this interface called "pgaccess". While Tcl/Tk is 
> interpreted, I've found it often performs as well as compiled Motif
> applications in similar circumstances. I've run pgaccess on various
> Unix systems (Sun, HP, Linux) to access databases on Linux and HP hosts.
> Hooks have been provided in Tcl to allow the use of compiled libraries,
> so if you already have C++ code that you want to use in your new 
> application, you might be able to graft them into it through this
> interface.
> 

Another choice would be Perl.  I do a *LOT* of Tcl programming, but I still
often recommend Perl for things like this.  Why?

	1) I think Perl compiles easier on more machines that TCL.

	2) The DBI/DBD Perl databse interface is (to as large an extent
           possible) database-independent (That's the DBI part).  I have
	   had 0 problems with either the PostgreSQL and Oracle interfaces.

	3) Perl also has an RPC based DBD module that lets you access remote
           databases without having to buy, say, SQL*NET for Oracle. Of course
           the PostgreSQL client side library is free, so in this case the
	   point is moot.

	4) Perl is slightly better accepted by Suits.

Either Perl or TCL may be a good choice, so check them both out.

-- cary





view thread (6+ messages)

Message-ID: <199810202119.RAA19850@access2.digex.net>
Permalink:  ../199810202119.RAA19850@access2.digex.net/
Also on:    postgresql.org/message-id/199810202119.RAA19850@access2.digex.net

 · 

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-interfaces@postgresql.org
  Cc: cobrien@access.digex.net
  Subject: Re: [INTERFACES] New user questions re libpq++
  In-Reply-To: <199810202119.RAA19850@access2.digex.net>

* 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