> > Surely PHP can be modified so as to use the new 3.0 protocol feature to
> > detect whether it's in a transaction or not, so as to avoid unnecssary
> > querying?
>
> Yes, you could, but it hardly seems worth it because they have to
> support old and new protocols. Eventually, yes, they could use that to
> eliminate the BEGIN;COMMIT.
Just use a configure test to see if you have the appropriate function call
in your libpq...
Chris