Re: Porting Code to Postgresql - Mailing list pgsql-general

From Ryan Mahoney
Subject Re: Porting Code to Postgresql
Date
Msg-id 1066231229.27184.34.camel@localhost.localdomain
Whole thread Raw
In response to Porting Code to Postgresql  (Errol Neal <sysadmins@enhtech.com>)
List pgsql-general
If the code is hard coded to use the built in mysql function calls, you
can replace them with postgresql calls or add a layer of database
abstraction.  Once you dump the schema into postgres and make whatever
datatype etc, changes that need to be made you should be able to test
the application by running it.  If it works you can go straight to
performance tuning 8) if not you will have to visit each statement and
resolve the issues one at a time.  I recomment turning on query logging
in your postgresql.conf file to make the debugging process easier.

Good Luck - although it may seem daunting the task is probably more
tedious than difficult.

-r

On Wed, 2003-10-15 at 10:16, Errol Neal wrote:
> Hi all,
>
> Not sure if this is a question for a php list or this one, but I'll give it
> a shot and
> if I am wrong, please do not crucify me. :-)
>
> There is a php based sourceforge project called mailwatch.
> (http://www.sourceforge.net/projects/mailwatch) It logs data from the excellent
> Mailscanner security product into a mysql database. Now, I am not a php
> programmer,
> and I am barely a Postgres DBA, but I would really like to port the code to
> Postgresql.
> I have my trust Postgresql Book which covers the API for Postgresql and the
> PHP statements
> used for Postgresql seem almost identical to those used for Mysql. I
> understand that there are
> some slight differences in the data types supported by Mysql and
> Postgresql, however are the differences
> between the two Databases and API's that great to make task impossible for
> an unexperienced person
> such as myself? We currently use Postgresql in conjunction with sendmail to
> store our access, mailertable
> and other db's, so it would be very convenient for us to achieve this.
>
>
> Best Regards,
>
> Errol U. Neal
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faqs/FAQ.html
--
Ryan Mahoney <ryan@paymentalliance.net>


pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Indexes?
Next
From: Edmund Dengler
Date:
Subject: Re: SET within a function?