On Aug 18, 2005, at 8:52 PM, Steve Holdoway wrote:

Why not use a function to wrap the mysql_... functions and swaps the
parameters around to correctly call the pg_ functions? That way, the
search and replace option becomes viable.

I thought about doing that, and I almost did it, but I have a fondness for efficiency and in this case I really don't require an extra layer of code. I'll do it for testing purposes while I'm doing the changeover but the final version will be purely pg_. I do reserve the right to change my mind though, so I may end up leaving the wrappers in.

Regardless of whether I change the code or add wrappers, setting up the PostgreSQL database is going to be more time-consuming.

BTW the reason why I'm changing over is purely due to licensing. I actually quite like MySQL because it's simple (I'm not a database guru by any means).

Cheers,

- Dave

Reply via email to