From:
"Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To:
"Ron Mayer" <rm_pg(at)cheapcomplexdevices(dot)com>,"Brendan Jurd" <direvus(at)gmail(dot)com>
Cc:
<pgsql-hackers(at)postgresql(dot)org>,"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject:
Re: Patch for SQL-Standard Interval output anddecouplingDateStyle from IntervalStyle
Date:
2008-11-04 15:57:40
Message-ID:
49101C94.EE98.0025.0@wicourts.gov (view raw or flat )
Thread:
2008-09-10 00:15:00 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-09-10 23:50:25 from "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
2008-09-11 00:10:17 from "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
2008-09-11 00:21:27 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-09-11 23:22:54 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-11 23:39:27 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-09-11 23:48:34 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-12 00:05:00 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-09-12 00:08:29 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-12 00:32:06 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-09-12 00:42:13 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-12 19:09:35 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-12 20:32:13 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-12 20:40:02 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-09-12 20:55:10 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-12 21:04:38 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-12 23:50:10 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-13 04:15:00 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-09-13 20:35:54 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-15 21:36:18 from R Mayer <pg_cert(at)cheapcomplexdevices(dot)com>
2008-09-15 21:48:41 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-15 21:58:33 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-09-15 22:03:08 from "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
2008-09-15 22:13:03 from "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
2008-10-09 18:50:17 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-10-09 19:14:37 from Kenneth Marshall <ktm(at)rice(dot)edu>
2008-10-09 19:42:47 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-10-09 21:23:03 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-10-09 21:54:52 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-10-10 05:16:43 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-10-09 19:47:24 from "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
2008-10-09 20:02:58 from Kenneth Marshall <ktm(at)rice(dot)edu>
2008-09-15 22:15:04 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-15 22:19:00 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-09-15 22:27:34 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-17 19:03:13 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-20 17:09:28 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-10-02 10:01:00 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-10-02 10:31:40 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-05 15:50:41 from "Brendan Jurd" <direvus(at)gmail(dot)com>
2008-11-05 16:36:51 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-06 07:06:24 from "Brendan Jurd" <direvus(at)gmail(dot)com>
2008-11-06 16:26:31 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-06 16:35:39 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-07 04:58:48 from "Brendan Jurd" <direvus(at)gmail(dot)com>
2008-11-07 15:19:39 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-10 02:36:30 from "Brendan Jurd" <direvus(at)gmail(dot)com>
2008-11-10 14:26:04 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-10 15:36:37 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-10 17:37:40 from "Brendan Jurd" <direvus(at)gmail(dot)com>
2008-11-10 18:51:44 from R Mayer <pg_cert(at)cheapcomplexdevices(dot)com>
2008-11-10 19:15:40 from "Brendan Jurd" <direvus(at)gmail(dot)com>
2008-11-10 19:43:03 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-11 00:58:17 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-11 14:11:12 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-11 02:46:05 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-01 00:22:55 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-01 00:30:58 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-01 04:42:23 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-10 20:14:51 from "Brendan Jurd" <direvus(at)gmail(dot)com>
2008-11-10 21:41:09 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-11 18:32:35 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-11 18:54:50 from "Brendan Jurd" <direvus(at)gmail(dot)com>
2008-11-11 19:13:09 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-11 19:19:43 from "Brendan Jurd" <direvus(at)gmail(dot)com>
2008-11-12 01:40:47 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-12 01:53:41 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-12 01:59:19 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-12 22:28:56 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-13 15:25:01 from Michael Meskes <meskes(at)postgresql(dot)org>
2008-11-21 01:07:40 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-26 14:28:49 from Michael Meskes <meskes(at)postgresql(dot)org>
2008-11-26 14:31:48 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-26 16:31:51 from Michael Meskes <meskes(at)postgresql(dot)org>
2008-11-26 16:54:14 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-11 19:36:12 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-04 05:22:44 from "Brendan Jurd" <direvus(at)gmail(dot)com>
2008-11-04 14:08:23 from "Robert Haas" <robertmhaas(at)gmail(dot)com>
2008-11-04 15:40:56 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-04 15:50:09 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-04 15:57:40 from "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
2008-11-04 16:00:09 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-04 17:55:29 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-04 20:34:35 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-05 05:02:11 from "Brendan Jurd" <direvus(at)gmail(dot)com>
2008-11-05 06:34:47 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-08 01:57:53 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-08 02:45:36 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-08 02:56:48 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-08 03:08:24 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-08 03:29:35 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-08 19:25:53 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-08 19:39:31 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-08 19:42:26 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-08 19:44:27 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-08 19:47:26 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-08 19:56:23 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-08 20:07:30 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-08 20:30:30 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-08 20:50:14 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-08 21:03:32 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-08 19:39:23 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-08 20:06:20 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-08 20:30:53 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-09 00:24:37 from Chuck McDevitt <cmcdevitt(at)greenplum(dot)com>
2008-11-09 01:00:33 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-08 15:11:06 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-08 03:03:24 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-08 03:11:25 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-09 00:31:32 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-09 15:36:03 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-11-05 14:39:30 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-23 01:51:16 from Bruce Momjian <bruce(at)momjian(dot)us>
2008-09-23 03:54:58 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-09-23 12:23:43 from Bruce Momjian <bruce(at)momjian(dot)us>
2008-09-11 01:44:11 from Josh Berkus <josh(at)agliodbs(dot)com>
2008-09-15 23:37:32 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-15 23:42:29 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-09-15 23:50:57 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-16 20:29:01 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-16 21:52:45 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-09-16 22:20:02 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-16 22:36:27 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-09-16 22:50:51 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-17 12:29:11 from "Stephen R(dot) van den Berg" <srb(at)cuci(dot)nl>
2008-09-17 12:38:49 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-09-17 14:19:18 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
2008-09-17 15:19:35 from "Stephen R(dot) van den Berg" <srb(at)cuci(dot)nl>
Lists:
pgsql-hackers
>>> Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com> wrote:
> It seems to me that the last remaining place where we input
> a SQL-2008 standard literal and do something different from
> what the standard suggests is with the string:
> '-1 2:03:04'
> The standard seems to say that the "-" affects both the
> days and hour/min/sec part;
Agreed.
> while PostgreSQL historically,
> and the patch as I first submitted it only apply the negative
> sign to the days part.
>
> IMHO when the IntervalStyle GUC is set to "sql_standard",
> it'd be better if the parsing of this literal matched the
> standard. We already have the precedent where DateStyle
> is used to interpret otherwise ambiguous output.
>
> If the IntervalStyle is set to anything other than sql_standard
> we'll keep parsing them the old way; so I think backwards
> compatibility issues would be minimized. And those
> using the sql_standard mode are likely to be standards
> fanatics anyway, and would probably appreciate following the
> standard rather than the backward compatible mode.
>
> Thoughts?
I think it would be good to be able to configure PostgreSQL such that
it didn't take standards-compliant literals and silently treat them in
a non-standard way. What you propose here seems sane to me, but if
someone objects, it would be good for some other value or other GUC to
provide compliant behavior.
-Kevin
In response to
pgsql-hackers by date
Next :From: Tom LaneDate: 2008-11-04 16:00:09
Subject : Re: Patch for SQL-Standard Interval output and decoupling DateStyle from IntervalStyle
Previous :From : Heikki LinnakangasDate : 2008-11-04 15:55:04
Subject : Re: pgsql: Unite ReadBufferWithFork, ReadBufferWithStrategy,
and