pg_port

(PHP 4, PHP 5, PHP 7) Return the port number associated with the connection int pg_port ([ resource $connection ] ) pg_port() returns the port number that the given PostgreSQL connection resource is connected to. Parameters: connection PostgreSQL database connection resource. When connection is not present, the default connection is used. The default connection is the l

pg_ping

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Ping database connection bool pg_ping ([ resource $connection ] ) pg_ping() pings a database connection and tries to reconnect it if it is broken. 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(

pg_pconnect

(PHP 4, PHP 5, PHP 7) Open a persistent PostgreSQL connection resource pg_pconnect ( string $connection_string [, int $connect_type ] ) pg_pconnect() opens a connection to a PostgreSQL database. It returns a connection resource that is needed by other PostgreSQL functions. If a second call is made to pg_pconnect() with the same connection_string as an existing connection, the existing connection will be returned unless you

pg_parameter_status

(PHP 5, PHP 7) Looks up a current parameter setting of the server. string pg_parameter_status ([ resource $connection ], string $param_name ) Looks up a current parameter setting of the server. Certain parameter values are reported by the server automatically at connection startup or whenever their values change. pg_parameter_status() can be used to interrogate these settings. It returns the current value of a parameter if

pg_options

(PHP 4, PHP 5, PHP 7) Get the options associated with the connection string pg_options ([ resource $connection ] ) pg_options() will return a string containing the options specified on the given PostgreSQL connection resource. Parameters: connection PostgreSQL database connection resource. When connection is not present, the default connection is used. The default connect

pg_num_rows

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Returns the number of rows in a result int pg_num_rows ( resource $result ) pg_num_rows() will return the number of rows in a PostgreSQL result resource. Note: This function used to be called pg_numrows(). Parameters: result PostgreSQL query result resource, returned by pg_query(), pg_query_params() or pg_execute() (among others).

pg_num_fields

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Returns the number of fields in a result int pg_num_fields ( resource $result ) pg_num_fields() returns the number of fields (columns) in a PostgreSQL result resource. Note: This function used to be called pg_numfields(). Parameters: result PostgreSQL query result resource, returned by pg_query(), pg_query_params() or pg_execute() (a

pg_meta_data

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Get meta data for table array pg_meta_data ( resource $connection, string $table_name [, bool $extended ] ) pg_meta_data() returns table definition for table_name as an array. Parameters: connection PostgreSQL database connection resource. table_name The name of the table. exten

pg_lo_write

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Write to a large object int pg_lo_write ( resource $large_object, string $data [, int $len ] ) pg_lo_write() writes data into a large object at the current seek position. To use the large object interface, it is necessary to enclose it within a transaction block. Note: This function used to be called pg_lowrite(). Parameters: large_object

pg_lo_unlink

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Delete a large object bool pg_lo_unlink ( resource $connection, int $oid ) pg_lo_unlink() deletes a large object with the oid. Returns TRUE on success or FALSE on failure. To use the large object interface, it is necessary to enclose it within a transaction block. Note: This function used to be called pg_lounlink(). Parameters: connection