IMO I think it really depends on what you want to do. The
pg_functions are the *most* robust and full featured. There are
problems with PDO (mostly function related at this point). That
being said, PDO is great to work with when you get into it, and learn
your way around it. If your project is pgsql only and will only be
pgsql only, I'd suggest using the pg_ functions. I use both
extensively, but only use PDO on projects where I want other
programmers to be able to extend my work with other dbms support. If
you're new to PHP db programming, PDO might not be the easiest way to
go, it's still a little rough around the edges. Good luck and let me
know if you need any help with either. There's also a pgsql+php list
you might want to jump on: http://www.postgresql.org/community/lists/
subscribe and http://archives.postgresql.org/pgsql-php/
Regards,
Gavin
On Aug 30, 2005, at 8:00 PM, Greg Stark wrote:
"Antimon" <antimon@xxxxxxxxx> writes:
Thanks for the reply.
I checked new 5.1 pg_ functions and i wanna ask something else.
What do
you think about PDO? It is not an abstraction layer, just something
like wrapper. I thought as it supports both widely used dbmss, php
developers would focus on it more than pg or mysqli functions and
that
can make it powerful.
Would it be a good decision to use PDO instead of pg_ functions?
My understanding is that PDO is the way and the light. Use PDO.
Unfortunately my project began before PDO saw the light of day, but
I plan to
migrate to it eventually.
--
greg
---------------------------(end of
broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
Gavin M. Roy
800 Pound Gorilla
gmr@xxxxxxxx
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match