pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lincoln Yeoh <lylyeoh@mecomb.com>
To: Manuel Lemos <mlemos@acm.org>
Cc: tomg@admin.nrnet.org
Cc: pgsql-general@postgresql.org
Subject: Re: Connecting website with SQL-database.....
Date: Mon, 24 Apr 2000 10:37:20 +0800
Message-ID: <3.0.5.32.20000424103720.008a6a70@pop.mecomb.po.my> (raw)
In-Reply-To: <5781.146T31T12623240mlemos@acm.org>
References: <3.0.5.32.20000420105907.008fb830@pop.mecomb.po.my>

At 09:02 PM 21-04-2000 -0200, Manuel Lemos wrote:
>It's a trade-off.  If you want to take the most of a database non-standard
>extensions, don't use database abstraction packages at all.  If you want
>flexibility in such way that your applications will be more portable,
>database abstraction packages are the way to go.

Yep. But can enough useful stuff be abstracted to be common amongst most
databases? 

>>Plus some people seem to want Postsgresql to do transactions Oracle style,
>>whereas some might want Oracle to do transactions Postgresql style. So how
>>about Metabase helping out?
>Like other database abstraction packages Metabase only provides 3 functions
>to handle transactions:  AutoCommit(On/Off), Commit and Rollback.
>AutoCommit(Off) implicitly starts a new transaction.  AutoCommit(On)
>implicitly ends an ongoing transaction commiting any work done. Commit

But with Oracle if you do a create table an implicit commit occurs. That's
not true for Postgresql.

Plus if you get a warning/error, Postgresql _requires_ you to rollback,
whereas many other databases don't.

Quite a number of people on this list, including me have found these
differences to be significant.

>Currently there is support for MySQL, mSQL, PostgreSQL, Oracle using OCI. The
>MS SQL server driver is almost ready.  There is somebody working on
>Informix driver and possibly Sybase ASE. We could already move seeminglessly
>between applications.

Cool, someone I know has been looking for Oracle support for PHP. Not sure
why he didn't find it earlier. 

>Despite of that, the lack of such a complete database abstraction package
>for PHP is attracting many developers and some are willing to contribute
>with new drivers.

Yep, I found it quite surprising and annoying that I had to recompile php
(version 3) when I wanted to add support for various stuff, and that's not
just for database stuff. 

I haven't been keeping up with the php scene much tho - still using perl.
Perl is respectably fast compared to C++. For example string concats
weren't much slower compared to C++. But it's about 13 times slower for
floating point stuff. That's not a big problem for most of my apps tho ;).

All the best with your venture!

Cheerio,

Link.




view thread (18+ messages)  latest in thread

Message-ID: <3.0.5.32.20000424103720.008a6a70@pop.mecomb.po.my>
Permalink:  ../3.0.5.32.20000424103720.008a6a70@pop.mecomb.po.my/
Also on:    postgresql.org/message-id/3.0.5.32.20000424103720.008a6a70@pop.mecomb.po.my

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: lylyeoh@mecomb.com, mlemos@acm.org, tomg@admin.nrnet.org, pgsql-general@postgresql.org
  Subject: Re: Connecting website with SQL-database.....
  In-Reply-To: <3.0.5.32.20000424103720.008a6a70@pop.mecomb.po.my>
  References: <3.0.5.32.20000420105907.008fb830@pop.mecomb.po.my> <3.0.5.32.20000424103720.008a6a70@pop.mecomb.po.my>

* 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