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_update

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Update table mixed pg_update ( resource $connection, string $table_name, array $data, array $condition [, int $options = PGSQL_DML_EXEC ] ) pg_update() updates records that matches condition with data. If options is specified, pg_convert() is applied to data with specified options. Parameters: connection PostgreSQL database connection

pg_untrace

(PHP 4 >= 4.0.1, PHP 5, PHP 7) Disable tracing of a PostgreSQL connection bool pg_untrace ([ resource $connection ] ) Stop tracing started by pg_trace(). Parameters: connection PostgreSQL database connection resource. When connection is not present, the default connection is used. The default connection is the last connection made by pg_connect() or pg_pconnect().

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_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_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_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_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_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