Now that I look, table 8-1 has some other marginal misstatements in it.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 20 Sep 2004 04:19:50 +0000 (04:19 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 20 Sep 2004 04:19:50 +0000 (04:19 +0000)
If we're going to put brackets around optional precision specs in some
entries, we'd better do it in all.

doc/src/sgml/datatype.sgml

index d15d7b398e4d57c1d6081d13d758c42712e8a7ef..6408461d2e27768202cc7c44818f5bfffc9711da 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-$PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.148 2004/09/18 15:28:03 tgl Exp $
+$PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.149 2004/09/20 04:19:50 tgl Exp $
 -->
 
  <chapter id="datatype">
@@ -56,14 +56,14 @@ $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.148 2004/09/18 15:28:03 tgl Ex
       </row>
 
       <row>
-       <entry><type>bit</type></entry>
+       <entry><type>bit [ (<replaceable>n</replaceable>) ]</type></entry>
        <entry></entry>
        <entry>fixed-length bit string</entry>
       </row>
 
       <row>
-       <entry><type>bit varying(<replaceable>n</replaceable>)</type></entry>
-       <entry><type>varbit(<replaceable>n</replaceable>)</type></entry>
+       <entry><type>bit varying [ (<replaceable>n</replaceable>) ]</type></entry>
+       <entry><type>varbit</type></entry>
        <entry>variable-length bit string</entry>
       </row>
 
@@ -86,14 +86,14 @@ $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.148 2004/09/18 15:28:03 tgl Ex
       </row>
 
       <row>
-       <entry><type>character varying(<replaceable>n</replaceable>)</type></entry>
-       <entry><type>varchar(<replaceable>n</replaceable>)</type></entry>
+       <entry><type>character varying [ (<replaceable>n</replaceable>) ]</type></entry>
+       <entry><type>varchar [ (<replaceable>n</replaceable>) ]</type></entry>
        <entry>variable-length character string</entry>
       </row>
 
       <row>
-       <entry><type>character(<replaceable>n</replaceable>)</type></entry>
-       <entry><type>char(<replaceable>n</replaceable>)</type></entry>
+       <entry><type>character [ (<replaceable>n</replaceable>) ]</type></entry>
+       <entry><type>char [ (<replaceable>n</replaceable>) ]</type></entry>
        <entry>fixed-length character string</entry>
       </row>
 
@@ -134,7 +134,7 @@ $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.148 2004/09/18 15:28:03 tgl Ex
       </row>
 
       <row>
-       <entry><type>interval(<replaceable>p</replaceable>)</type></entry>
+       <entry><type>interval [ (<replaceable>p</replaceable>) ]</type></entry>
        <entry></entry>
        <entry>time span</entry>
       </row>
@@ -174,7 +174,7 @@ $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.148 2004/09/18 15:28:03 tgl Ex
       <row>
        <entry><type>path</type></entry>
        <entry></entry>
-       <entry>open and closed geometric path in the plane</entry>
+       <entry>open or closed geometric path in the plane</entry>
       </row>
 
       <row>
@@ -227,7 +227,7 @@ $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.148 2004/09/18 15:28:03 tgl Ex
 
       <row>
        <entry><type>timestamp [ (<replaceable>p</replaceable>) ] [ without time zone ]</type></entry>
-       <entry><type>timestamp</type></entry>
+       <entry><type></type></entry>
        <entry>date and time</entry>
       </row>