Re: Writing oracle/postgress generic SQL

From: David Fetter <david(at)fetter(dot)org>
To: Ben Edwards <funkytwig(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Writing oracle/postgress generic SQL
Date: 2007-02-23 10:14:57
Message-ID: 20070223101457.GB25097@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Feb 23, 2007 at 10:23:56AM +0100, Ben Edwards wrote:
> Anyone know of any guidelines for writing SQL which works under
> Oracle witch will also work under postgress. This is to ensure that
> SQL written for an Oracle database can be migrated to postgress
> later.

You've just bumped into the problem that while standard SQL exists,
only Mimer and possibly DB2 implement it. The presentation below
outlines your main choices for supporting more than one DB back-end,
and they're all expensive and troublesome to maintain.

http://www.powerpostgresql.com/Downloads/database_depends_public.swf

The cheapest, highest-quality thing to do is to choose one DB back-end
and then use everything it has to offer.

Cheers,
D
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
phone: +1 415 235 3778 AIM: dfetter666
Skype: davidfetter

Remember to vote!

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Phani Kishore 2007-02-23 11:04:19 help required regarding queryin postgis database from google maps
Previous Message Tomas Vondra 2007-02-23 09:39:15 Re: PGSQL Locking vs. Oracle's MVCC