(PHP 4 >= 4.2.0, PHP 5, PHP 7)
Execute a query
resource pg_query ([ resource $connection ], string $query )
pg_query() executes the query on the specified database connection. pg_query_params() should be preferred in most cases.
If an error occurs, and FALSE is returned, details of the error can be retrieved using the pg_last_error() function if the connection is valid.
Note: Although connection can be omitted, it is