diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml index a3b038c79a..96387bd610 100644 --- a/doc/src/sgml/installation.sgml +++ b/doc/src/sgml/installation.sgml @@ -1080,14 +1080,15 @@ su - postgres pointed to works correctly with PostgreSQL. + cross compilation + This option is mainly aimed at binary package distributors who know their target operating system well. The main advantage of using this option is that the PostgreSQL package won't need to be upgraded whenever any of the many local daylight-saving time rules change. Another advantage is that - PostgreSQL can be cross-compiledcross - compilation more straightforwardly if the + PostgreSQL can be cross-compiled more straightforwardly if the time zone database files do not need to be built during the installation. diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index eddc65e3b4..2ba441aa36 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -188,7 +188,7 @@ PGconn *PQconnectdbParams(const char **keywords, const char **values, int expand the value for hostaddr gives the server network address. The value for host is ignored unless the authentication method requires it, in which case it will be - used as the host name. + used as the host name. @@ -1610,10 +1610,12 @@ int PQsocket(const PGconn *conn); PQbackendPIDPQbackendPID - Returns the process ID - (PID)PIDdetermining PID of - server processin libpq of the backend - process handling this connection. + Returns the process ID (PID) + PID + determining PID of server process + in libpq + + of the backend process handling this connection. int PQbackendPID(const PGconn *conn); @@ -4201,7 +4203,7 @@ int PQcancel(PGcancel *cancel, char *errbuf, int errbufsize); PQrequestCancel is a deprecated variant of - PQcancel. + PQcancel. int PQrequestCancel(PGconn *conn); @@ -5459,12 +5461,12 @@ int PQlibVersion(void); The function PQsetNoticeReceiver - notice - receiverPQsetNoticeReceiver sets or + notice receiver + PQsetNoticeReceiver sets or examines the current notice receiver for a connection object. Similarly, PQsetNoticeProcessor - notice - processorPQsetNoticeProcessor sets or + notice processor + PQsetNoticeProcessor sets or examines the current notice processor. diff --git a/doc/src/sgml/manage-ag.sgml b/doc/src/sgml/manage-ag.sgml index d4f40a2c40..2b11293208 100644 --- a/doc/src/sgml/manage-ag.sgml +++ b/doc/src/sgml/manage-ag.sgml @@ -78,6 +78,8 @@ SELECT datname FROM pg_database; Creating a Database + CREATE DATABASE + In order to create a database, the PostgreSQL server must be up and running (see Databases are created with the SQL command - :CREATE - DATABASE + : CREATE DATABASE name; diff --git a/doc/src/sgml/plpgsql.sgml b/doc/src/sgml/plpgsql.sgml index 3e0d2d15b2..a04ab13912 100644 --- a/doc/src/sgml/plpgsql.sgml +++ b/doc/src/sgml/plpgsql.sgml @@ -3983,13 +3983,16 @@ $$ LANGUAGE plpgsql; + + preparing a query + in PL/pgSQL + As each expression and SQL command is first executed in the function, the PL/pgSQL interpreter creates a prepared execution plan (using the SPI manager's SPI_prepare - and SPI_saveplan - functions).preparing a queryin - PL/pgSQL Subsequent visits to that expression or command + and SPI_saveplan functions). + Subsequent visits to that expression or command reuse the prepared plan. Thus, a function with conditional code that contains many statements for which execution plans might be required will only prepare and save those plans that are really diff --git a/doc/src/sgml/plpython.sgml b/doc/src/sgml/plpython.sgml index d39158ac12..14f00d8236 100644 --- a/doc/src/sgml/plpython.sgml +++ b/doc/src/sgml/plpython.sgml @@ -398,7 +398,7 @@ $$ LANGUAGE plpythonu; Null, None If an SQL null valuenull valuePL/Python is passed to a + sortas="PL/Python">in PL/Python is passed to a function, the argument value will appear as None in Python. The above function definition will return the wrong answer for null inputs. We could add STRICT to the function definition @@ -716,8 +716,8 @@ SELECT * FROM multiout_simple_setof(3); data between function calls. This variable is private static data. The global dictionary GD is public data, available to all Python functions within a session. Use with - care.global datain - PL/Python + care.global data + in PL/Python diff --git a/doc/src/sgml/pltcl.sgml b/doc/src/sgml/pltcl.sgml index 4215f192ba..9f252e97ca 100644 --- a/doc/src/sgml/pltcl.sgml +++ b/doc/src/sgml/pltcl.sgml @@ -344,8 +344,8 @@ spi_exec -array C "SELECT * FROM pg_class" { Prepares and saves a query plan for later execution. The saved plan will be retained for the life of the current - session.preparing a queryin - PL/Tcl + session.preparing a query + in PL/Tcl The query can use parameters, that is, placeholders for diff --git a/doc/src/sgml/queries.sgml b/doc/src/sgml/queries.sgml index e65dbb4c2f..99c4e4e698 100644 --- a/doc/src/sgml/queries.sgml +++ b/doc/src/sgml/queries.sgml @@ -895,16 +895,16 @@ SELECT product_id, p.name, (sum(s.units) * p.price) AS sales all sales of the product. + functional dependency + - If the products table is set up so that, - say, product_id is the primary key, then it - would be enough to group by product_id in the - above example, since name and price would - be functionally - dependentfunctional - dependency on the product ID, and so there - would be no ambiguity about which name and price value to return - for each product ID group. + If the products table is set up so that, say, + product_id is the primary key, then it would be + enough to group by product_id in the above example, + since name and price would be functionally + dependent on the product ID, and so there would be no + ambiguity about which name and price value to return for each product + ID group. @@ -1170,9 +1170,12 @@ SELECT DISTINCT select_list ... can be used to specify the default behavior of retaining all rows.) + + null value + in DISTINCT + + - null valuein - DISTINCT Obviously, two rows are considered distinct if they differ in at least one column value. Null values are considered equal in this comparison. diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index b5ad1011cb..143090e99a 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -142,8 +142,11 @@ postgres$ initdb -D /usr/local/pgsql/data trust other local users, we recommend you use one of initdb's , or options to assign a password to the - database superuser.passwordof the - superuser Also, specify