Re: Re: [COMMITTERS] pgsql: Ensure age() returns a stable value rather than the latest value

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Simon Riggs <simon(at)2ndQuadrant(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: [COMMITTERS] pgsql: Ensure age() returns a stable value rather than the latest value
Date: 2012-05-14 19:11:44
Message-ID: 16236.1337022704@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> On lr, 2012-05-12 at 12:59 -0400, Tom Lane wrote:
>> Now it's entirely likely that there is nobody out there relying on
>> such a thing, but nonetheless this is a compatibility break, and an
>> unnecessary one IMO. You haven't shown any convincing reason why we
>> need to change the behavior of age() on master servers at all.

> Recall that this thread originally arose out of age() being called by a
> monitoring tool. It would be nice if repeatedly calling age() on an
> otherwise idle database would not change the result. Currently, you
> would never get a "stable" state on such a check, and moreover, you
> would not only get different results but different long-term behavior
> between master and standby.

Hm. Interesting argument, but why exactly would you expect that age()
would work differently from, say, wall clock time? And how likely is it
that a database that requires monitoring is going to have exactly zero
transactions over a significant length of time?

(In any case, my primary beef at the moment is not with whether it's a
good idea to change age()'s behavior going forward, but rather with
having back-patched such a change.)

regards, tom lane

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2012-05-14 19:56:41 Re: Re: [COMMITTERS] pgsql: Ensure age() returns a stable value rather than the latest value
Previous Message Peter Eisentraut 2012-05-14 19:05:21 Re: Re: [COMMITTERS] pgsql: Ensure age() returns a stable value rather than the latest value

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2012-05-14 19:21:37 Re: Draft release notes complete
Previous Message Peter Eisentraut 2012-05-14 19:05:21 Re: Re: [COMMITTERS] pgsql: Ensure age() returns a stable value rather than the latest value