With regards to the second issue, it seems that doing the bind variable emualtion in the pg driver would be pretty straight forward. I've looked at the oracle driver, and it appears that we could lift the bind variable parsing routine. We still wouldn't get the type checking, but at least it would offer us a relatively transparent porting mechanism.