diff --git a/functions/pgsql.xml b/functions/pgsql.xml index 460f4b98df..f986803295 100644 --- a/functions/pgsql.xml +++ b/functions/pgsql.xml @@ -1,5 +1,5 @@ - + PostgreSQL functions PostgreSQL @@ -20,7 +20,7 @@ feature. PostgreSQL supports many character encoding including multibyte character encoding. The current version and more information about PostgreSQL is available at &url.pgsql;. + url="&url.pgsql;">&url.pgsql;. In order to enable PostgreSQL support, @@ -60,7 +60,7 @@ pg_exec pg_query - + pg_getlastoid pg_last_oid @@ -72,11 +72,11 @@ pg_numrows pg_num_rows - + pg_numfields pg_num_fields - + pg_fieldname pg_field_name @@ -100,11 +100,11 @@ pg_freeresult pg_free_result - + pg_result pg_fetch_result - + pg_loreadall pg_lo_read_all @@ -136,7 +136,7 @@ pg_loimport pg_lo_import - + pg_loexport pg_lo_export @@ -181,29 +181,29 @@ - postmaster & - pg_connect("dbname=MyDbName"); - OK + postmaster & + pg_connect("dbname=MyDbName"); + OK - postmaster -i & - pg_connect("dbname=MyDbName"); - OK + postmaster -i & + pg_connect("dbname=MyDbName"); + OK - postmaster & - pg_connect("host=localhost dbname=MyDbName"); - - Unable to connect to PostgreSQL server: connectDB() failed: - Is the postmaster running and accepting TCP/IP (with -i) - connection at 'localhost' on port '5432'? in - /path/to/file.php on line 20. - + postmaster & + pg_connect("host=localhost dbname=MyDbName"); + + Unable to connect to PostgreSQL server: connectDB() failed: + Is the postmaster running and accepting TCP/IP (with -i) + connection at 'localhost' on port '5432'? in + /path/to/file.php on line 20. + - postmaster -i & - pg_connect("host=localhost dbname=MyDbName"); - OK + postmaster -i & + pg_connect("host=localhost dbname=MyDbName"); + OK @@ -212,8 +212,8 @@ A connection to PostgreSQL server can be established with the following value pairs set in the command string: $conn = - pg_connect("host=myHost port=myPort tty=myTTY options=myOptions - dbname=myDB user=myUser password=myPassword "); + pg_connect("host=myHost port=myPort tty=myTTY options=myOptions + dbname=myDB user=myUser password=myPassword "); @@ -298,10 +298,10 @@ export PGHOST PGPORT PGDATABASE PGUSER PGPASSWORD PGDATESTYLE PGTZ PGCLIENTENCOD Description - - intpg_affected_rows - resourceresult - + + intpg_affected_rows + resourceresult + pg_affected_rows returns the number of tuples (instances/records/rows) affected by INSERT, UPDATE, and DELETE @@ -312,9 +312,9 @@ export PGHOST PGPORT PGDATABASE PGUSER PGPASSWORD PGDATESTYLE PGTZ PGCLIENTENCOD ]]> @@ -341,10 +341,10 @@ echo $cmdtuples . " tuples are affected."; Description - - resourcepg_connect - stringconnection_string - + + resourcepg_connect + stringconnection_string + pg_connect returns a connection resource that is needed by other PostgreSQL functions. @@ -357,8 +357,8 @@ echo $cmdtuples . " tuples are affected."; not be made. connection_string should be a quoted string. - Using pg_connect - + Using pg_connect + ]]> - + The arguments available for connection_string includes @@ -412,10 +412,10 @@ $dbconn4 = pg_connect ($conn_string); Description - - intpg_pconnect - stringconnection_string - + + intpg_pconnect + stringconnection_string + pg_pconnect opens a connection to a PostgreSQL database. It returns a connection resource that is @@ -427,13 +427,13 @@ $dbconn4 = pg_connect ($conn_string); To enable persistent connection, the pgsql.allow_persistent + linkend="ini.pgsql.allow-persistent">pgsql.allow_persistent &php.ini; directive must be set to "On" (which is the default). The maximum number of persistent connection can be defined with the pgsql.max_persistent + linkend="ini.pgsql.max-persistent">pgsql.max_persistent &php.ini; directive (defaults to -1 for no limit). The total number of connections can be set with the pgsql.max_links + linkend="ini.pgsql.max-links">pgsql.max_links &php.ini; directive. @@ -457,10 +457,10 @@ $dbconn4 = pg_connect ($conn_string); Description - - boolpg_connection_busy - resourceconnection - + + boolpg_connection_busy + resourceconnection + pg_connection_busy returns &true; if the connection is busy. If it's is busy, a previous query is still executing. @@ -484,10 +484,10 @@ $dbconn4 = pg_connect ($conn_string); Description - - boolpg_connection_reset - resourceconnection - + + boolpg_connection_reset + resourceconnection + pg_connection_reset resets the connection. It is useful for error recovery. &return.success; @@ -708,7 +708,7 @@ $dbconn4 = pg_connect ($conn_string); pg_last_error returns the last error - message for given connection. Errormessages + message for given connection. Error messages may be overwritten by calls to other PostgreSQL functions, so make sure you call pg_last_error before any other PostgreSQL functions. @@ -934,7 +934,7 @@ $dbconn4 = pg_connect ($conn_string); PostgreSQL fetch array - pg_insert - pg_select - pg_delete - pg_update - 'AA', 'field2'=>'BB');