Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 4BBD36351AA for ; Wed, 10 Jun 2009 04:03:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 06264-01-2 for ; Wed, 10 Jun 2009 04:03:36 -0300 (ADT) Received: from cvs.postgresql.org (cvs.postgresql.org [217.196.146.206]) by mail.postgresql.org (Postfix) with ESMTP id 31A45635152 for ; Wed, 10 Jun 2009 04:03:36 -0300 (ADT) Received: by cvs.postgresql.org (Postfix, from userid 1179) id D91DF75331E; Wed, 10 Jun 2009 07:03:34 +0000 (UTC) MIME-Version: 1.0 To: pgsql-committers@postgresql.org Subject: pgsql: Correct/improve the datetime_precision field in the information X-Mailer: activitymail 1.24, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain Message-Id: <20090610070334.D91DF75331E@cvs.postgresql.org> Date: Wed, 10 Jun 2009 07:03:34 +0000 (UTC) From: petere@postgresql.org (Peter Eisentraut) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200906/145 X-Sequence-Number: 37349 Log Message: ----------- Correct/improve the datetime_precision field in the information schema. In particular, always show 0 for the date type instead of null, and show 6 (the default) for time, timestamp, and interval without a declared precision. This is now in fuller conformance with the SQL standard. Also clarify the documentation about this. discovered and analyzed by Konstantin Izmailov and Tom Lane Modified Files: -------------- pgsql/doc/src/sgml: information_schema.sgml (r1.38 -> r1.39) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/information_schema.sgml?r1=1.38&r2=1.39) pgsql/src/backend/catalog: information_schema.sql (r1.53 -> r1.54) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/catalog/information_schema.sql?r1=1.53&r2=1.54)