Commit 4835f6a8 authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Update docs for TIME WITHOUT TIME ZONE.

Add information on SET SESSION CHARACTERISTICS.
Fix references to pg_hba.conf(5) since that is no longer a man page.
parent b0f52abe
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.30 2000/05/02 20:01:51 thomas Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.31 2000/07/14 15:26:21 thomas Exp $
--> -->
<chapter id="datatype"> <chapter id="datatype">
...@@ -159,7 +159,7 @@ $Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.30 2000/05/02 20:01:51 th ...@@ -159,7 +159,7 @@ $Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.30 2000/05/02 20:01:51 th
</row> </row>
<row> <row>
<entry>time</entry> <entry>time</entry>
<entry>time</entry> <entry>time [ without time zone ]</entry>
<entry>time of day</entry> <entry>time of day</entry>
</row> </row>
<row> <row>
...@@ -169,7 +169,7 @@ $Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.30 2000/05/02 20:01:51 th ...@@ -169,7 +169,7 @@ $Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.30 2000/05/02 20:01:51 th
</row> </row>
<row> <row>
<entry>timestamp</entry> <entry>timestamp</entry>
<entry>timestamp with time zone</entry> <entry>timestamp [ with time zone ]</entry>
<entry>date/time</entry> <entry>date/time</entry>
</row> </row>
<row> <row>
...@@ -581,7 +581,7 @@ CREATE TABLE <replaceable class="parameter">tablename</replaceable> (<replaceabl ...@@ -581,7 +581,7 @@ CREATE TABLE <replaceable class="parameter">tablename</replaceable> (<replaceabl
<entry>1 microsec / 14 digits</entry> <entry>1 microsec / 14 digits</entry>
</row> </row>
<row> <row>
<entry><type>timestamp with time zone</type></entry> <entry><type>timestamp [ with time zone ]</type></entry>
<entry>date and time with time zone</entry> <entry>date and time with time zone</entry>
<entry>8 bytes</entry> <entry>8 bytes</entry>
<entry>1903 AD</entry> <entry>1903 AD</entry>
...@@ -605,7 +605,7 @@ CREATE TABLE <replaceable class="parameter">tablename</replaceable> (<replaceabl ...@@ -605,7 +605,7 @@ CREATE TABLE <replaceable class="parameter">tablename</replaceable> (<replaceabl
<entry>1 day</entry> <entry>1 day</entry>
</row> </row>
<row> <row>
<entry><type>time</type></entry> <entry><type>time [ without time zone ]</type></entry>
<entry>times of day only</entry> <entry>times of day only</entry>
<entry>4 bytes</entry> <entry>4 bytes</entry>
<entry>00:00:00.00</entry> <entry>00:00:00.00</entry>
...@@ -843,7 +843,13 @@ CREATE TABLE <replaceable class="parameter">tablename</replaceable> (<replaceabl ...@@ -843,7 +843,13 @@ CREATE TABLE <replaceable class="parameter">tablename</replaceable> (<replaceabl
</sect3> </sect3>
<sect3> <sect3>
<title>time</title> <title>time [ without time zone ]</title>
<para>
Per SQL99, this type can be referenced as <type>time</type> and
as <type>time without time zone</type>.
</para>
<para> <para>
The following are valid <type>time</type> inputs. The following are valid <type>time</type> inputs.
......
...@@ -1527,7 +1527,6 @@ Not defined by this name. Implements the intersection operator '#' ...@@ -1527,7 +1527,6 @@ Not defined by this name. Implements the intersection operator '#'
</sect1> </sect1>
<sect1> <sect1>
<title id="aggregate-funcs">Aggregate Functions</title> <title id="aggregate-funcs">Aggregate Functions</title>
<note> <note>
...@@ -1542,13 +1541,14 @@ Not defined by this name. Implements the intersection operator '#' ...@@ -1542,13 +1541,14 @@ Not defined by this name. Implements the intersection operator '#'
<firstterm>Aggregate functions</firstterm> allow the generation of simple <firstterm>Aggregate functions</firstterm> allow the generation of simple
statistics about the values of particular columns over the selected set statistics about the values of particular columns over the selected set
of rows. of rows.
See also the chapter on aggregates in
<citetitle>The PostgreSQL Tutorial</citetitle>
<!-- <!--
<xref linkend="sql" endterm="aggregates-tutorial"> See also <xref linkend="sql" endterm="aggregates-tutorial"> and
-->
and
<xref linkend="syntax" endterm="aggregates-syntax">. <xref linkend="syntax" endterm="aggregates-syntax">.
-->
See also <xref linkend="syntax" endterm="aggregates-syntax">;
refer to
the <citetitle>PostgreSQL Tutorial</citetitle> for additional
introductory information.
</para> </para>
<para> <para>
...@@ -1612,7 +1612,6 @@ Not defined by this name. Implements the intersection operator '#' ...@@ -1612,7 +1612,6 @@ Not defined by this name. Implements the intersection operator '#'
</table> </table>
</para> </para>
</sect1> </sect1>
</chapter> </chapter>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
......
...@@ -49,7 +49,9 @@ have different roles but may be implemented by the same executable. ...@@ -49,7 +49,9 @@ have different roles but may be implemented by the same executable.
<Para> <Para>
A frontend sends a startup packet to the postmaster. This includes the names A frontend sends a startup packet to the postmaster. This includes the names
of the user and the database the user wants to connect to. The postmaster then of the user and the database the user wants to connect to. The postmaster then
uses this, and the information in the pg_hba.conf(5) file to determine what uses this, and the information in the <filename>pg_hba.conf</filename>
file
to determine what
further authentication information it requires the frontend to send (if any) further authentication information it requires the frontend to send (if any)
and responds to the frontend accordingly. and responds to the frontend accordingly.
</para> </para>
......
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/release.sgml,v 1.55 2000/06/14 13:12:52 thomas Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/release.sgml,v 1.56 2000/07/14 15:26:21 thomas Exp $
--> -->
<chapter id="release"> <chapter id="release">
<title>Release Notes</title> <title>Release Notes</title>
<sect1>
<title>Release 7.1</title>
<!--
<docinfo>
<authorgroup>
<author>
<firstname>Bruce</firstname>
<surname>Momjian</surname>
</author>
</authorgroup>
<date>2000-07-13</date>
</docinfo>
-->
<para>
Release date 2000-xx-xx.
<para>
Major changes in this release:
<variablelist>
<varlistentry>
<term>
Nested block comments
</term>
<listitem>
<para>
SQL99 defines C-style block comments, and allows them to be nested.
</para>
</listitem>
</varlistentry>
</para>
<sect2>
<title>Migration to v7.1</title>
<para>
A dump/restore is required for those running any previous version.
</para>
</sect2>
<sect2>
<title>Changes</title>
<para>
<programlisting>
Implement WITHOUT TIME ZONE date/time type qualifier per SQL99 (Thomas)
Implement nested block comments per SQL99 (Thomas)
Implement SET SESSION CHARACTERISTICS per SQL99 (Thomas)
Set session-wide transaction mode READ COMMITTED or SERIALIZABLE (Thomas)
</programlisting>
</para>
</sect2>
</sect1>
<sect1> <sect1>
<title>Release 7.0.2</title> <title>Release 7.0.2</title>
<!-- <!--
...@@ -1872,7 +1927,8 @@ Better identify tcl and tk libs and includes(Bruce) ...@@ -1872,7 +1927,8 @@ Better identify tcl and tk libs and includes(Bruce)
</para> </para>
<para> <para>
We now have passwords definable independent of any Unix file. There are We now have passwords definable independent of any Unix file. There are
new SQL USER commands. See the pg_hba.conf manual page for more new SQL USER commands.
See the <citetitle>Administrator's Guide</citetitle> for more
information. There is a new table, pg_shadow, which is used to store information. There is a new table, pg_shadow, which is used to store
user information and user passwords, and it by default only SELECT-able user information and user passwords, and it by default only SELECT-able
by the postgres super-user. pg_user is now a view of pg_shadow, and is by the postgres super-user. pg_user is now a view of pg_shadow, and is
......
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.22 2000/06/20 18:04:18 momjian Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.23 2000/07/14 15:26:21 thomas Exp $
--> -->
<chapter id="syntax"> <chapter id="syntax">
...@@ -135,18 +135,18 @@ EXECUTE EXISTS EXTRACT ...@@ -135,18 +135,18 @@ EXECUTE EXISTS EXTRACT
FETCH FLOAT FOR FROM FULL FETCH FLOAT FOR FROM FULL
GRANT GRANT
HAVING HAVING
IN INNER INSERT INTERVAL INTO IS IN INNER INSERT INTERVAL INTO INOUT IS
JOIN JOIN
LEADING LEFT LIKE LOCAL LEADING LEFT LIKE LOCAL
NAMES NATIONAL NATURAL NCHAR NO NOT NULL NAMES NATIONAL NATURAL NCHAR NO NOT NULL
ON OR OUTER ON OR OUT OUTER
PARTIAL PRIMARY PRIVILEGES PROCEDURE PUBLIC PARTIAL PRIMARY PRIVILEGES PROCEDURE PUBLIC
REFERENCES REVOKE RIGHT ROLLBACK REFERENCES REVOKE RIGHT ROLLBACK
SELECT SET SUBSTRING SELECT SESSION SET SUBSTRING
TO TRAILING TRIM TO TRAILING TRIM
UNION UNIQUE UPDATE USING UNION UNIQUE UPDATE USING
VALUES VARCHAR VARYING VIEW VALUES VARCHAR VARYING VIEW
WHERE WITH WORK WHERE WITH WITHOUT WORK
</programlisting> </programlisting>
</para> </para>
...@@ -280,7 +280,7 @@ VALID VERSION ...@@ -280,7 +280,7 @@ VALID VERSION
<programlisting> <programlisting>
ABSOLUTE ACTION ABSOLUTE ACTION
CONSTRAINTS CHARACTERISTICS CONSTRAINTS
DAY DEFERRABLE DEFERRED DAY DEFERRABLE DEFERRED
HOUR HOUR
IMMEDIATE INITIALLY INSENSITIVE ISOLATION IMMEDIATE INITIALLY INSENSITIVE ISOLATION
...@@ -289,9 +289,9 @@ LANGUAGE LEVEL ...@@ -289,9 +289,9 @@ LANGUAGE LEVEL
MATCH MINUTE MONTH MATCH MINUTE MONTH
NEXT NEXT
OF ONLY OPTION OF ONLY OPTION
PENDANT PRIOR PRIVILEGES PATH PENDANT PRIOR PRIVILEGES
READ RELATIVE RESTRICT READ RELATIVE RESTRICT
SCROLL SECOND SCHEMA SCROLL SECOND
TIME TIMESTAMP TIMEZONE_HOUR TIMEZONE_MINUTE TRIGGER TIME TIMESTAMP TIMEZONE_HOUR TIMEZONE_MINUTE TRIGGER
YEAR YEAR
ZONE ZONE
...@@ -349,18 +349,21 @@ UNCOMMITTED UNNAMED ...@@ -349,18 +349,21 @@ UNCOMMITTED UNNAMED
<programlisting> <programlisting>
-- This is a standard SQL comment -- This is a standard SQL comment
</programlisting> </programlisting>
</para>
We also support C-style block comments, e.g.: <para>
We also support C-style block comments, e.g.:
<programlisting> <programlisting>
/* multi /* multi-line comment
line * with nesting: /* nested block comment */
comment
*/ */
</programlisting> </programlisting>
A comment beginning with "/*" extends to the first occurrence of "*/". where the comment begins with "<literal>/*</literal>" and extends
to the first occurrence of "<literal>*/</literal>". These block
comments nest, as specified in SQL99, so that one can comment out
larger blocks of code which may contain existing block comments.
</para> </para>
</sect1> </sect1>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment