Обсуждение: --enable-integer-datetimes doc patch

Поиск
Список
Период
Сортировка

--enable-integer-datetimes doc patch

От
Michael Glaesemann
Дата:
I can't seem to find any documentation on the --enable-integer-
datetimes configure option. Here's a patch that adds a very brief
description to section 14.5 Installation Procedure, which lists the
other config options.

Here's the description:
Use 64-bit integer storage for datetimes and intervals. This
guarantees microsecond precision in datetime calculations.

Michael Glaesemann
grzm myrealbox com

Index: installation.sgml
===================================================================
RCS file: /projects/cvsroot/pgsql/doc/src/sgml/installation.sgml,v
retrieving revision 1.233
diff -c -r1.233 installation.sgml
*** installation.sgml    15 May 2005 00:26:18 -0000    1.233
--- installation.sgml    12 Jun 2005 13:30:06 -0000
***************
*** 874,879 ****
--- 874,889 ----
         </varlistentry>

         <varlistentry>
+        <term><option>--enable-integer-datetimes</option></term>
+        <listitem>
+         <para>
+          Use 64-bit integer storage for datetimes and intervals.
+          This guarantees microsecond precision in datetime
calculations.
+         </para>
+        </listitem>
+       </varlistentry>
+
+       <varlistentry>
          <term><option>--disable-spinlocks</option></term>
          <listitem>
           <para>





Вложения

Re: --enable-integer-datetimes doc patch

От
Tom Lane
Дата:
Michael Glaesemann <grzm@myrealbox.com> writes:
> I can't seem to find any documentation on the --enable-integer-
> datetimes configure option. Here's a patch that adds a very brief
> description to section 14.5 Installation Procedure, which lists the
> other config options.

Well, there is some, but I agree that it ought to be mentioned where
the other config options are listed.  Applied with additions, viz

*** doc/src/sgml/installation.sgml.orig    Sun Jun  5 00:59:44 2005
--- doc/src/sgml/installation.sgml    Sun Jun 12 11:49:15 2005
***************
*** 874,879 ****
--- 874,894 ----
        </varlistentry>

        <varlistentry>
+        <term><option>--enable-integer-datetimes</option></term>
+        <listitem>
+         <para>
+          Use 64-bit integer storage for datetimes and intervals, rather
+          than the default floating-point storage.  This reduces the range
+          of representable values but guarantees microsecond precision across
+          the full range (see <xref linkend="datatype-datetime"> for more
+          information).  Note also that the integer datetimes code is newer
+          than the floating-point code, and we still find bugs in it from time
+          to time.
+         </para>
+        </listitem>
+       </varlistentry>
+
+       <varlistentry>
         <term><option>--disable-spinlocks</option></term>
         <listitem>
          <para>


            regards, tom lane