From ec37ea1cc1356f1a0b7dad1d9e4933e50bea583f Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 22 Jul 2000 02:39:10 +0000 Subject: [PATCH] Cleanups --- doc/src/sgml/ref/alter_group.sgml | 4 ++-- doc/src/sgml/ref/alter_table.sgml | 4 ++-- doc/src/sgml/ref/alter_user.sgml | 8 ++++---- doc/src/sgml/ref/cluster.sgml | 4 ++-- doc/src/sgml/ref/copy.sgml | 4 ++-- doc/src/sgml/ref/create_function.sgml | 4 ++-- doc/src/sgml/ref/create_rule.sgml | 6 +++--- doc/src/sgml/ref/create_table.sgml | 4 ++-- doc/src/sgml/ref/fetch.sgml | 4 ++-- doc/src/sgml/ref/pg_upgrade.sgml | 4 ++-- doc/src/sgml/ref/update.sgml | 10 +++++++--- 11 files changed, 30 insertions(+), 26 deletions(-) diff --git a/doc/src/sgml/ref/alter_group.sgml b/doc/src/sgml/ref/alter_group.sgml index debbe979e1..6fb399c153 100644 --- a/doc/src/sgml/ref/alter_group.sgml +++ b/doc/src/sgml/ref/alter_group.sgml @@ -1,5 +1,5 @@ @@ -114,7 +114,7 @@ ALTER GROUP name DROP USER - Remove a user from a group + Remove a user from a group: ALTER GROUP workers DROP USER beth diff --git a/doc/src/sgml/ref/alter_table.sgml b/doc/src/sgml/ref/alter_table.sgml index 91f08a7885..aa133b493b 100644 --- a/doc/src/sgml/ref/alter_table.sgml +++ b/doc/src/sgml/ref/alter_table.sgml @@ -1,5 +1,5 @@ @@ -307,7 +307,7 @@ CREATE TABLE temp AS SELECT did, city FROM distributors; DROP TABLE distributors; CREATE TABLE distributors ( did DECIMAL(3) DEFAULT 1, - name VARCHAR(40) NOT NULL, + name VARCHAR(40) NOT NULL ); INSERT INTO distributors SELECT * FROM temp; DROP TABLE temp; diff --git a/doc/src/sgml/ref/alter_user.sgml b/doc/src/sgml/ref/alter_user.sgml index d97648e052..922633a74a 100644 --- a/doc/src/sgml/ref/alter_user.sgml +++ b/doc/src/sgml/ref/alter_user.sgml @@ -1,5 +1,5 @@ @@ -160,7 +160,7 @@ ERROR: ALTER USER: user "username" does not exist ALTER USER davide WITH PASSWORD 'hu8jmn3'; - Change a user's valid until date + Change a user's valid until date: ALTER USER manuel VALID UNTIL 'Jan 31 2030'; @@ -168,12 +168,12 @@ ALTER USER manuel VALID UNTIL 'Jan 31 2030'; Change a user's valid until date, specifying that his authorisation should expire at midday on 4th May 1998 using - the time zone which is one hour ahead of UTC + the time zone which is one hour ahead of UTC: ALTER USER chris VALID UNTIL 'May 4 12:00:00 1998 +1'; - Give a user the ability to create other users and new databases. + Give a user the ability to create other users and new databases: ALTER USER miriam CREATEUSER CREATEDB; diff --git a/doc/src/sgml/ref/cluster.sgml b/doc/src/sgml/ref/cluster.sgml index 2b66cf8690..3d7145c2db 100644 --- a/doc/src/sgml/ref/cluster.sgml +++ b/doc/src/sgml/ref/cluster.sgml @@ -1,5 +1,5 @@ @@ -204,7 +204,7 @@ SELECT columnlist INTO TABLE - Cluster the employees relation on the basis of its salary attribute + Cluster the employees relation on the basis of its salary attribute: CLUSTER emp_ind ON emp; diff --git a/doc/src/sgml/ref/copy.sgml b/doc/src/sgml/ref/copy.sgml index bdebff077b..4772ad0530 100644 --- a/doc/src/sgml/ref/copy.sgml +++ b/doc/src/sgml/ref/copy.sgml @@ -1,5 +1,5 @@ @@ -407,7 +407,7 @@ ERROR: reason The following example copies a table to standard output, - using a vertical bar ("|") as the field + using a pipe (|) as the field delimiter: diff --git a/doc/src/sgml/ref/create_function.sgml b/doc/src/sgml/ref/create_function.sgml index 708d0745ee..e75d86cd2e 100644 --- a/doc/src/sgml/ref/create_function.sgml +++ b/doc/src/sgml/ref/create_function.sgml @@ -1,5 +1,5 @@ @@ -293,7 +293,7 @@ CREATE TABLE product ( find a type conversion function automatically, the sql function has to have the same name as the return type, and overloading is unavoidable. The function name is overloaded by using the second - form of the AS clause in the SQL definition + form of the AS clause in the SQL definition: CREATE FUNCTION point(complex) RETURNS point diff --git a/doc/src/sgml/ref/create_rule.sgml b/doc/src/sgml/ref/create_rule.sgml index e8be382304..12be4c87e4 100644 --- a/doc/src/sgml/ref/create_rule.sgml +++ b/doc/src/sgml/ref/create_rule.sgml @@ -1,5 +1,5 @@ @@ -203,7 +203,7 @@ ON UPDATE TO emp-1.salary WHERE emp-2.name = "Joe" report an error because the query cycled too many times: - Example of a circular rewrite rule combination. + Example of a circular rewrite rule combination: CREATE RULE bad_rule_combination_1 AS ON SELECT TO emp @@ -220,7 +220,7 @@ CREATE RULE bad_rule_combination_2 AS This attempt to select from EMP will cause Postgres to issue an error - because the queries cycled too many times. + because the queries cycled too many times: SELECT * FROM emp; diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml index dd23c1f40e..7dc04b0aaf 100644 --- a/doc/src/sgml/ref/create_table.sgml +++ b/doc/src/sgml/ref/create_table.sgml @@ -1,5 +1,5 @@ @@ -221,7 +221,7 @@ ERROR: DEFAULT: type mismatched - As of Postgres version 6.0, consistent array dimensions within an + Consistent array dimensions within an attribute are not enforced. This will likely change in a future release. diff --git a/doc/src/sgml/ref/fetch.sgml b/doc/src/sgml/ref/fetch.sgml index 89b3831b59..6c0edfd074 100644 --- a/doc/src/sgml/ref/fetch.sgml +++ b/doc/src/sgml/ref/fetch.sgml @@ -1,5 +1,5 @@ @@ -355,7 +355,7 @@ COMMIT WORK; SQL92 allows absolute positioning of the cursor for - FETCH, and allows placing the results into explicit variables. + FETCH, and allows placing the results into explicit variables: FETCH ABSOLUTE # diff --git a/doc/src/sgml/ref/pg_upgrade.sgml b/doc/src/sgml/ref/pg_upgrade.sgml index 879f53d540..64a2e91b75 100644 --- a/doc/src/sgml/ref/pg_upgrade.sgml +++ b/doc/src/sgml/ref/pg_upgrade.sgml @@ -1,5 +1,5 @@ @@ -78,7 +78,7 @@ $ pg_dumpall -s >db.out - Do + Do: $ make install diff --git a/doc/src/sgml/ref/update.sgml b/doc/src/sgml/ref/update.sgml index 85da5c1f2d..035e3adb22 100644 --- a/doc/src/sgml/ref/update.sgml +++ b/doc/src/sgml/ref/update.sgml @@ -1,5 +1,5 @@ @@ -157,8 +157,12 @@ UPDATE # Change word "Drama" with "Dramatic" on column kind: -UPDATE films SET kind = 'Dramatic' WHERE kind = 'Drama'; -SELECT * FROM films WHERE kind = 'Dramatic' OR kind = 'Drama'; +UPDATE films +SET kind = 'Dramatic' +WHERE kind = 'Drama'; +SELECT * +FROM films +WHERE kind = 'Dramatic' OR kind = 'Drama'; code | title | did | date_prod | kind | len -------+---------------+-----+------------+----------+-------