pgsql: Cleanup commit timestamp module activaction, again

Started by Alvaro Herreraover 10 years ago6 messageshackers
Jump to latest
#1Alvaro Herrera
alvherre@2ndquadrant.com

Cleanup commit timestamp module activaction, again

Further tweak commit_ts.c so that on a standby the state is completely
consistent with what that in the master, rather than behaving
differently in the cases that the settings differ. Now in standby and
master the module should always be active or inactive in lockstep.

Author: Petr Jelínek, with some further tweaks by Álvaro Herrera.

Backpatch to 9.5, where commit timestamps were introduced.

Discussion: /messages/by-id/5622BF9D.2010409@2ndquadrant.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/531d21b75ff6b18ea8638c736a05326ebd519f49

Modified Files
--------------
src/backend/access/transam/commit_ts.c | 149 +++++++++++++++++---------------
src/backend/commands/vacuum.c | 2 +-
src/include/access/commit_ts.h | 2 +-
3 files changed, 81 insertions(+), 72 deletions(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

#2Robert Haas
robertmhaas@gmail.com
In reply to: Alvaro Herrera (#1)
Re: [COMMITTERS] pgsql: Cleanup commit timestamp module activaction, again

On Tue, Oct 27, 2015 at 7:07 PM, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:

Cleanup commit timestamp module activaction, again

Further tweak commit_ts.c so that on a standby the state is completely
consistent with what that in the master, rather than behaving
differently in the cases that the settings differ. Now in standby and
master the module should always be active or inactive in lockstep.

Author: Petr Jelínek, with some further tweaks by Álvaro Herrera.

Backpatch to 9.5, where commit timestamps were introduced.

The buildfarm seems to be very unhappy right now, and it looks as if
this commit is to blame.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Robert Haas (#2)
Re: [COMMITTERS] pgsql: Cleanup commit timestamp module activaction, again

Robert Haas <robertmhaas@gmail.com> writes:

On Tue, Oct 27, 2015 at 7:07 PM, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:

Cleanup commit timestamp module activaction, again

The buildfarm seems to be very unhappy right now, and it looks as if
this commit is to blame.

I think it's just failure to update an expected-file, but will leave it
to Alvaro.

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#4Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Tom Lane (#3)
Re: [COMMITTERS] pgsql: Cleanup commit timestamp module activaction, again

Tom Lane wrote:

Robert Haas <robertmhaas@gmail.com> writes:

On Tue, Oct 27, 2015 at 7:07 PM, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:

Cleanup commit timestamp module activaction, again

The buildfarm seems to be very unhappy right now, and it looks as if
this commit is to blame.

I think it's just failure to update an expected-file, but will leave it
to Alvaro.

I don't understand. It passed make check fine for me on both branches.
Will fix in a jiffy.

--
�lvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#5Tom Lane
tgl@sss.pgh.pa.us
In reply to: Alvaro Herrera (#4)
Re: [COMMITTERS] pgsql: Cleanup commit timestamp module activaction, again

Alvaro Herrera <alvherre@2ndquadrant.com> writes:

Tom Lane wrote:

I think it's just failure to update an expected-file, but will leave it
to Alvaro.

I don't understand. It passed make check fine for me on both branches.
Will fix in a jiffy.

There are two variant expected files for that module --- did you fix
both?

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#6Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Tom Lane (#5)
Re: [COMMITTERS] pgsql: Cleanup commit timestamp module activaction, again

Tom Lane wrote:

Alvaro Herrera <alvherre@2ndquadrant.com> writes:

Tom Lane wrote:

I think it's just failure to update an expected-file, but will leave it
to Alvaro.

I don't understand. It passed make check fine for me on both branches.
Will fix in a jiffy.

There are two variant expected files for that module --- did you fix
both?

Yeah, this was the problem: make installcheck almost always exercises
the case with the setting disabled, which make check doesn't test.

--
�lvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers