Lists: | pgsql-patches |
---|
From: | Neil Conway <neilc(at)samurai(dot)com> |
---|---|
To: | pgsql-patches(at)postgresql(dot)org |
Subject: | Enable integer datetimes by default |
Date: | 2007-05-06 03:28:06 |
Message-ID: | 1178422086.18303.121.camel@goldbach |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
Attached is a patch that enables integer datetimes by default, per
recent discussion on -hackers. It makes "--enable-integer-datetimes" the
default, and documents the "--disable-integer-datetimes" configure
option as a means to get the previous default behavior.
Barring any objections, I'll apply this to HEAD tomorrow.
-Neil
Attachment | Content-Type | Size |
---|---|---|
integer_datetime_default-2.patch | text/x-patch | 12.5 KB |
From: | Michael Glaesemann <grzm(at)seespotcode(dot)net> |
---|---|
To: | Neil Conway <neilc(at)samurai(dot)com> |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Enable integer datetimes by default |
Date: | 2007-05-06 03:49:19 |
Message-ID: | 0BA959B3-D17E-417B-A547-CF252E0D0F34@seespotcode.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
On May 5, 2007, at 22:28 , Neil Conway wrote:
> Attached is a patch that enables integer datetimes by default, per
> recent discussion on -hackers. It makes "--enable-integer-
> datetimes" the
> default, and documents the "--disable-integer-datetimes" configure
> option as a means to get the previous default behavior.
Would it make more sense to have phrase it in the positive sense?
i.e., --enable-floating-point-datetimes? I guess that's a bit longer,
but it says what you're doing, rather than what you're *not* doing.
Michael Glaesemann
grzm seespotcode net
From: | Neil Conway <neilc(at)samurai(dot)com> |
---|---|
To: | Michael Glaesemann <grzm(at)seespotcode(dot)net> |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Enable integer datetimes by default |
Date: | 2007-05-06 04:08:33 |
Message-ID: | 1178424513.18303.139.camel@goldbach |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
On Sat, 2007-05-05 at 22:49 -0500, Michael Glaesemann wrote:
> Would it make more sense to have phrase it in the positive sense?
> i.e., --enable-floating-point-datetimes? I guess that's a bit longer,
> but it says what you're doing, rather than what you're *not* doing.
I think the primary reason people will want to use FP-based datetimes is
because they can't use integer-based datetimes for compatibility reasons
(e.g. no OS support for 64-bit integers, or they need to remain
compatible with old applications). The situation is analogous to
--without-spinlocks: we could call that --enable-slow-locking or
something, but that would sound like we're enabling an additional
feature.
It would also mean there would be an implicit relationship between
"--enable-integer-datetimes" and "--enable-fp-datetimes" (at most one
can be true). IMHO it would be simpler to just keep a single boolean
variable ("integer datetimes enabled or not").
-Neil
From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Neil Conway <neilc(at)samurai(dot)com> |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Enable integer datetimes by default |
Date: | 2007-05-06 04:20:35 |
Message-ID: | 463D5793.3010407@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
Neil Conway wrote:
> Attached is a patch that enables integer datetimes by default, per
> recent discussion on -hackers. It makes "--enable-integer-datetimes" the
> default, and documents the "--disable-integer-datetimes" configure
> option as a means to get the previous default behavior.
>
> Barring any objections, I'll apply this to HEAD tomorrow.
>
>
I object to the short notice. I think we need to give people a chance to
adjust their configs, especially on the buildfarm, where those who have
currently simply removed the --enable-integer-datetimes setting will
need to adjust their configs.
Once there is agreement I think we should at the very least give those
people a few days to adjust.
cheers
andrew
From: | Neil Conway <neilc(at)samurai(dot)com> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Enable integer datetimes by default |
Date: | 2007-05-06 06:15:25 |
Message-ID: | 1178432125.18303.157.camel@goldbach |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
On Sun, 2007-06-05 at 00:20 -0400, Andrew Dunstan wrote:
> I object to the short notice. I think we need to give people a chance to
> adjust their configs
Sure, I can wait a few days (although if we're going to do this for 8.3,
we should do it promptly). On reflection, it might actually be wiser to
delay making this change until the beginning of the 8.4 cycle...
-Neil
From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-patches(at)postgresql(dot)org |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, Neil Conway <neilc(at)samurai(dot)com> |
Subject: | Re: Enable integer datetimes by default |
Date: | 2007-05-06 13:14:34 |
Message-ID: | 200705061514.35117.peter_e@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
Andrew Dunstan wrote:
> I think we need to give people a chance to
> adjust their configs, especially on the buildfarm, where those who
> have currently simply removed the --enable-integer-datetimes setting
> will need to adjust their configs.
Why? They have previously been testing the default and now they would
be testing a different default.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Neil Conway <neilc(at)samurai(dot)com> |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Enable integer datetimes by default |
Date: | 2007-05-06 13:20:16 |
Message-ID: | 463DD610.1050403@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
Neil Conway wrote:
> On reflection, it might actually be wiser to
> delay making this change until the beginning of the 8.4 cycle...
>
>
>
I think that's probably true, but I can live with it either way as long
as there's enough notice.
cheers
andrew
From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | pgsql-patches(at)postgresql(dot)org, Neil Conway <neilc(at)samurai(dot)com> |
Subject: | Re: Enable integer datetimes by default |
Date: | 2007-05-06 15:02:42 |
Message-ID: | 463DEE12.70200@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
Peter Eisentraut wrote:
> Andrew Dunstan wrote:
>
>> I think we need to give people a chance to
>> adjust their configs, especially on the buildfarm, where those who
>> have currently simply removed the --enable-integer-datetimes setting
>> will need to adjust their configs.
>>
>
> Why? They have previously been testing the default and now they would
> be testing a different default.
>
>
It is not the default for the buildfarm - the default config has
--enable-integer-datetimes. I would rather people have a chance to
adjust their configs so they keep testing the same config set,
regardless of whether or not it's the default.
cheers
andrew
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Neil Conway <neilc(at)samurai(dot)com> |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Enable integer datetimes by default |
Date: | 2007-05-07 01:11:55 |
Message-ID: | 18582.1178500315@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
Neil Conway <neilc(at)samurai(dot)com> writes:
> On Sun, 2007-06-05 at 00:20 -0400, Andrew Dunstan wrote:
>> I object to the short notice. I think we need to give people a chance to
>> adjust their configs
> Sure, I can wait a few days (although if we're going to do this for 8.3,
> we should do it promptly). On reflection, it might actually be wiser to
> delay making this change until the beginning of the 8.4 cycle...
+1 ... this had not been previously discussed for 8.3 and so it's
arguably too late in the cycle.
regards, tom lane
From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Neil Conway <neilc(at)samurai(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Enable integer datetimes by default |
Date: | 2007-05-12 22:10:52 |
Message-ID: | 200705122210.l4CMAqq16404@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
Added to TODO:
* Have configure choose integer datetimes by default
http://archives.postgresql.org/pgsql-patches/2007-05/msg00046.php
---------------------------------------------------------------------------
Tom Lane wrote:
> Neil Conway <neilc(at)samurai(dot)com> writes:
> > On Sun, 2007-06-05 at 00:20 -0400, Andrew Dunstan wrote:
> >> I object to the short notice. I think we need to give people a chance to
> >> adjust their configs
>
> > Sure, I can wait a few days (although if we're going to do this for 8.3,
> > we should do it promptly). On reflection, it might actually be wiser to
> > delay making this change until the beginning of the 8.4 cycle...
>
> +1 ... this had not been previously discussed for 8.3 and so it's
> arguably too late in the cycle.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +