diff --git a/reference/pgsql/book.xml b/reference/pgsql/book.xml new file mode 100644 index 0000000000..a44491a330 --- /dev/null +++ b/reference/pgsql/book.xml @@ -0,0 +1,51 @@ + + + + + + + PostgreSQL + + + + &reftitle.intro; + + PostgreSQL database is Open Source product and available without + cost. Postgres, developed originally in the UC Berkeley Computer + Science Department, pioneered many of the object-relational concepts + now becoming available in some commercial databases. It provides + SQL92/SQL99 language support, transactions, referential integrity, + stored procedures and type extensibility. PostgreSQL is an open source + descendant of this original Berkeley code. + + + + + &reference.pgsql.setup; + &reference.pgsql.constants; + &reference.pgsql.examples; + &reference.pgsql.reference; + + + + + diff --git a/reference/pgsql/constants.xml b/reference/pgsql/constants.xml index 2575c230dd..19124c5336 100644 --- a/reference/pgsql/constants.xml +++ b/reference/pgsql/constants.xml @@ -1,6 +1,6 @@ - -
+ + &reftitle.constants; &extension.constants; @@ -537,7 +537,7 @@ -
+ + + + &reftitle.examples; +
+ + This simple example shows how to connect, execute a query, print + resulting rows and disconnect from a PostgreSQL database. + + PostgreSQL extension overview example + +\n"; +while ($line = pg_fetch_array($result, null, PGSQL_ASSOC)) { + echo "\t\n"; + foreach ($line as $col_value) { + echo "\t\t$col_value\n"; + } + echo "\t\n"; +} +echo "\n"; + +// Free resultset +pg_free_result($result); + +// Closing connection +pg_close($dbconn); +?> +]]> + + + +
+
+ + + diff --git a/reference/pgsql/reference.xml b/reference/pgsql/reference.xml index 9cf437bce4..cf744b34c7 100644 --- a/reference/pgsql/reference.xml +++ b/reference/pgsql/reference.xml @@ -1,54 +1,11 @@ - - - + - PostgreSQL Functions + PostgreSQL &Functions; PostgreSQL -
- &reftitle.intro; - - PostgreSQL database is Open Source product and available without - cost. Postgres, developed originally in the UC Berkeley Computer - Science Department, pioneered many of the object-relational concepts - now becoming available in some commercial databases. It provides - SQL92/SQL99 language support, transactions, referential integrity, - stored procedures and type extensibility. PostgreSQL is an open source - descendant of this original Berkeley code. - -
- -
- &reftitle.required; - - To use PostgreSQL support, you need PostgreSQL 6.5 or - later, PostgreSQL 8.0 or later to enable all PostgreSQL module - features. PostgreSQL supports many character encodings including - multibyte character encoding. The current version and more - information about PostgreSQL is available at - &url.pgsql; and - the PostgreSQL Documentation. - -
- - &reference.pgsql.configure; - - &reference.pgsql.ini; - -
- &reftitle.resources; - - There are two resource types used in the PostgreSQL module. The first one - is the link identifier for a database connection, the second a resource - which holds the result of a query. - -
- - &reference.pgsql.constants; -
&reftitle.notes; @@ -86,47 +43,6 @@
- -
- &reftitle.examples; - - This simple example shows how to connect, execute a query, print - resulting rows and disconnect from a PostgreSQL database. - - PostgreSQL extension overview example - -\n"; -while ($line = pg_fetch_array($result, null, PGSQL_ASSOC)) { - echo "\t\n"; - foreach ($line as $col_value) { - echo "\t\t$col_value\n"; - } - echo "\t\n"; -} -echo "\n"; - -// Free resultset -pg_free_result($result); - -// Closing connection -pg_close($dbconn); -?> -]]> - - - -
&reference.pgsql.entities.functions; diff --git a/reference/pgsql/setup.xml b/reference/pgsql/setup.xml new file mode 100644 index 0000000000..63a86b4058 --- /dev/null +++ b/reference/pgsql/setup.xml @@ -0,0 +1,63 @@ + + + + + &reftitle.setup; + + +
+ &reftitle.required; + + To use PostgreSQL support, you need PostgreSQL 6.5 or + later, PostgreSQL 8.0 or later to enable all PostgreSQL module + features. PostgreSQL supports many character encodings including + multibyte character encoding. The current version and more + information about PostgreSQL is available at + &url.pgsql; and + the PostgreSQL Documentation. + +
+ + + + &reference.pgsql.configure; + + + + &reference.pgsql.ini; + + + +
+ &reftitle.resources; + + There are two resource types used in the PostgreSQL module. The first one + is the link identifier for a database connection, the second a resource + which holds the result of a query. + +
+ + +
+ + +