pg_exec dbHandle queryString
Specifies a valid database handle.
Specifies a valid SQL query.
the return result is either an error message or a handle for a query result.
pg_exec submits a query to the Postgres backend and returns a result. Handles start with the prefix "pgp".