pg_unescape_bytea

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Unescape binary for bytea type string pg_unescape_bytea ( string $data ) pg_unescape_bytea() unescapes PostgreSQL bytea data values. It returns the unescaped string, possibly containing binary data. Note: When you SELECT a bytea type, PostgreSQL returns octal byte values prefixed with '\' (e.g. \032). Users are supposed to convert back to binary format manually. This function require

pg_tty

(PHP 4, PHP 5, PHP 7) Return the TTY name associated with the connection string pg_tty ([ resource $connection ] ) pg_tty() returns the TTY name that server side debugging output is sent to on the given PostgreSQL connection resource. Note: pg_tty() is obsolete, since the server no longer pays attention to the TTY setting, but the function remains for backwards compatibility. Parameters:

pg_transaction_status

(PHP 5 >= 5.1.0, PHP 7) Returns the current in-transaction status of the server. int pg_transaction_status ( resource $connection ) Returns the current in-transaction status of the server. Caution pg_transaction_status() will give incorrect results when using a PostgreSQL 7.3 server that has the parameter autocommit set to off. The server-side autocommit feature has been deprecated and does not exist in later server ve

pg_trace

(PHP 4 >= 4.0.1, PHP 5, PHP 7) Enable tracing a PostgreSQL connection bool pg_trace ( string $pathname [, string $mode = "w" [, resource $connection ]] ) pg_trace() enables tracing of the PostgreSQL frontend/backend communication to a file. To fully understand the results, one needs to be familiar with the internals of PostgreSQL communication protocol. For those who are not, it can still be useful for tracing errors in

pg_socket

(PHP 5 >= 5.6.0, PHP 7) Get a read only handle to the socket underlying a PostgreSQL connection resource pg_socket ( resource $connection ) pg_socket() returns a read only resource corresponding to the socket underlying the given PostgreSQL connection. Parameters: connection PostgreSQL database connection resource. Returns: A socket resource

pg_set_error_verbosity

(PHP 5 >= 5.1.0, PHP 7) Determines the verbosity of messages returned by pg_last_error() and pg_result_error(). int pg_set_error_verbosity ([ resource $connection ], int $verbosity ) Determines the verbosity of messages returned by pg_last_error() and pg_result_error(). pg_set_error_verbosity() sets the verbosity mode, returning the connection's previous setting. In PGSQL_ERRORS_TERSE mode, returned messages include s

pg_set_client_encoding

(PHP 4 >= 4.0.3, PHP 5, PHP 7) Set the client encoding int pg_set_client_encoding ([ resource $connection ], string $encoding ) pg_set_client_encoding() sets the client encoding and returns 0 if success or -1 if error. PostgreSQL will automatically convert data in the backend database encoding into the frontend encoding. Note: The function used to be called pg_setclientencoding(). Parameters:

pg_send_query

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Sends asynchronous query bool pg_send_query ( resource $connection, string $query ) pg_send_query() sends a query or queries asynchronously to the connection. Unlike pg_query(), it can send multiple queries at once to PostgreSQL and get the results one by one using pg_get_result(). Script execution is not blocked while the queries are executing. Use pg_connection_busy() to check if the c

pg_send_query_params

(PHP 5 >= 5.1.0, PHP 7) Submits a command and separate parameters to the server without waiting for the result(s). bool pg_send_query_params ( resource $connection, string $query, array $params ) Submits a command and separate parameters to the server without waiting for the result(s). This is equivalent to pg_send_query() except that query parameters can be specified separately from the query string. The function's par

pg_send_prepare

(PHP 5 >= 5.1.0, PHP 7) Sends a request to create a prepared statement with the given parameters, without waiting for completion. bool pg_send_prepare ( resource $connection, string $stmtname, string $query ) Sends a request to create a prepared statement with the given parameters, without waiting for completion. This is an asynchronous version of pg_prepare(): it returns TRUE if it was able to dispatch the request, and