<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_group.sgml,v 1.1 2000/01/14 22:11:32 petere Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_group.sgml,v 1.2 2000/07/22 02:39:10 momjian Exp $
Postgres documentation
-->
ALTER GROUP staff ADD USER karl, john
</programlisting>
- Remove a user from a group
+ Remove a user from a group:
<programlisting>
ALTER GROUP workers DROP USER beth
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.13 2000/06/09 01:43:57 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.14 2000/07/22 02:39:10 momjian Exp $
Postgres documentation
-->
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;
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_user.sgml,v 1.11 2000/03/27 17:14:42 thomas Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_user.sgml,v 1.12 2000/07/22 02:39:10 momjian Exp $
Postgres documentation
-->
ALTER USER davide WITH PASSWORD 'hu8jmn3';
</programlisting>
- Change a user's valid until date
+ Change a user's valid until date:
<programlisting>
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:
<programlisting>
ALTER USER chris VALID UNTIL 'May 4 12:00:00 1998 +1';
</programlisting>
- Give a user the ability to create other users and new databases.
+ Give a user the ability to create other users and new databases:
<programlisting>
ALTER USER miriam CREATEUSER CREATEDB;
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/cluster.sgml,v 1.7 1999/07/22 15:09:06 thomas Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/cluster.sgml,v 1.8 2000/07/22 02:39:10 momjian Exp $
Postgres documentation
-->
Usage
</title>
<para>
- Cluster the employees relation on the basis of its salary attribute
+ Cluster the employees relation on the basis of its salary attribute:
</para>
<programlisting>
CLUSTER emp_ind ON emp;
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.16 2000/04/18 23:44:58 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.17 2000/07/22 02:39:10 momjian Exp $
Postgres documentation
-->
</title>
<para>
The following example copies a table to standard output,
- using a vertical bar ("|") as the field
+ using a pipe (|) as the field
delimiter:
</para>
<programlisting>
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_function.sgml,v 1.13 2000/03/27 17:14:42 thomas Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_function.sgml,v 1.14 2000/07/22 02:39:10 momjian Exp $
Postgres documentation
-->
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 <command>AS</command> clause in the SQL definition
+ form of the <command>AS</command> clause in the SQL definition:
</para>
<programlisting>
CREATE FUNCTION point(complex) RETURNS point
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_rule.sgml,v 1.17 2000/07/21 04:22:54 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_rule.sgml,v 1.18 2000/07/22 02:39:10 momjian Exp $
Postgres documentation
-->
report an error because the query cycled too many times:
<example>
- <title>Example of a circular rewrite rule combination.</title>
+ <title>Example of a circular rewrite rule combination:</title>
<programlisting>
CREATE RULE bad_rule_combination_1 AS
ON SELECT TO emp
<para>
This attempt to select from EMP will cause
<productname>Postgres</productname> to issue an error
- because the queries cycled too many times.
+ because the queries cycled too many times:
<programlisting>
SELECT * FROM emp;
</programlisting></para>
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.31 2000/07/14 15:27:14 thomas Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.32 2000/07/22 02:39:10 momjian Exp $
Postgres documentation
-->
<para>
<note>
<para>
- 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.
</para>
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/fetch.sgml,v 1.10 2000/05/11 17:32:33 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/fetch.sgml,v 1.11 2000/07/22 02:39:10 momjian Exp $
Postgres documentation
-->
<para>
<acronym>SQL92</acronym> 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:
<synopsis>
FETCH ABSOLUTE <replaceable class="PARAMETER">#</replaceable>
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/Attic/pg_upgrade.sgml,v 1.10 2000/07/21 00:24:37 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/Attic/pg_upgrade.sgml,v 1.11 2000/07/22 02:39:10 momjian Exp $
Postgres documentation
-->
<step performance="required">
<para>
- Do
+ Do:
<programlisting>
$ make install
</programlisting>
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/update.sgml,v 1.10 2000/06/09 01:44:00 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/update.sgml,v 1.11 2000/07/22 02:39:10 momjian Exp $
Postgres documentation
-->
Change word "Drama" with "Dramatic" on column kind:
<programlisting>
-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
-------+---------------+-----+------------+----------+-------