diff --git a/reference/pgsql/functions/pg-affected-rows.xml b/reference/pgsql/functions/pg-affected-rows.xml
index 9c333fd07b..c8bb9d74bc 100644
--- a/reference/pgsql/functions/pg-affected-rows.xml
+++ b/reference/pgsql/functions/pg-affected-rows.xml
@@ -1,10 +1,10 @@
-
+
pg_affected_rows
- Returns number of affected records(tuples)
+ Returns number of affected records (tuples)
Description
@@ -17,12 +17,14 @@
(instances/records/rows) affected by INSERT, UPDATE, and DELETE
queries executed by pg_query. If no tuple is
affected by this function, it will return 0.
+
+
pg_affected_rows
diff --git a/reference/pgsql/functions/pg-close.xml b/reference/pgsql/functions/pg-close.xml
index 21c4ad3095..70362da819 100644
--- a/reference/pgsql/functions/pg-close.xml
+++ b/reference/pgsql/functions/pg-close.xml
@@ -1,5 +1,5 @@
-
+
@@ -24,6 +24,21 @@
of the script.
+
+
+ PostgreSQL close example
+
+
+]]>
+
+
+
If there is open large object resource on the connection, do not
close the connection before closing all large object resources.
diff --git a/reference/pgsql/functions/pg-connect.xml b/reference/pgsql/functions/pg-connect.xml
index af6c37c361..1cc3dba19e 100644
--- a/reference/pgsql/functions/pg-connect.xml
+++ b/reference/pgsql/functions/pg-connect.xml
@@ -1,5 +1,5 @@
-
+
@@ -30,10 +30,13 @@
The old syntax with multiple parameters
diff --git a/reference/pgsql/functions/pg-connection-reset.xml b/reference/pgsql/functions/pg-connection-reset.xml
index 4e6d38ea36..6b84e382b4 100644
--- a/reference/pgsql/functions/pg-connection-reset.xml
+++ b/reference/pgsql/functions/pg-connection-reset.xml
@@ -1,5 +1,5 @@
-
+
@@ -18,6 +18,25 @@
pg_connection_reset resets the connection.
It is useful for error recovery. &return.success;
+
+
+ pg_connection_reset example
+
+
+]]>
+
+
+
See also pg_connect,
pg_pconnect and
diff --git a/reference/pgsql/functions/pg-convert.xml b/reference/pgsql/functions/pg-convert.xml
index e90f826615..630df6c96b 100644
--- a/reference/pgsql/functions/pg-convert.xml
+++ b/reference/pgsql/functions/pg-convert.xml
@@ -1,5 +1,5 @@
-
+
@@ -18,7 +18,14 @@
intoptions
- pg_convert check and convert assoc_array suitable for SQL statement.
+ pg_convert checks and converts the values in
+ assoc_array into suitable values for use in a SQL
+ statement. Precondition for pg_convert is the existence
+ of a table table_name which has at least as many columns
+ as assoc_array has elements. The fieldnames as well as
+ the fieldvalues in table_name must match the indices and
+ values of assoc_array. Returns an array with the converted
+ values on success, &false; otherwise.
diff --git a/reference/pgsql/functions/pg-dbname.xml b/reference/pgsql/functions/pg-dbname.xml
index 702f5ad4ee..8a6548e523 100644
--- a/reference/pgsql/functions/pg-dbname.xml
+++ b/reference/pgsql/functions/pg-dbname.xml
@@ -1,5 +1,5 @@
-
+
@@ -18,6 +18,21 @@
resource. It returns &false;, if connection
is not a valid PostgreSQL connection resource.
+
+
+ pg_dbname example
+
+
+]]>
+
+
+
diff --git a/reference/pgsql/functions/pg-insert.xml b/reference/pgsql/functions/pg-insert.xml
index 6c97a6b578..dd91f7dc14 100644
--- a/reference/pgsql/functions/pg-insert.xml
+++ b/reference/pgsql/functions/pg-insert.xml
@@ -1,5 +1,5 @@
-
+
@@ -18,21 +18,23 @@
intoptions
- pg_insert inserts
- assoc_array which has
- field=>value into table specified as
- table_name. If options is
- specified, pg_convert is applied
- to assoc_array with specified option.
+ pg_insert inserts the values of assoc_array
+ into the table specified by table_name.
+ table_name must at least have as many columns as assoc_array
+ has elements. The fieldnames as well as the fieldvalues in table_name
+ must match the indices and values of assoc_array.
+ pg_insert returns &true; on success, &false; on failure.
+ If options is specified, pg_insert is applied to
+ assoc_array with specified option.
pg_insert