pgsql: Remove incorrect assertion in clog.c

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Remove incorrect assertion in clog.c
Date: 2017-08-10 15:25:48
Message-ID: E1dfpLI-000417-9F@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove incorrect assertion in clog.c

We must advance the oldest XID that can be safely looked up in clog
*before* truncating CLOG, and the oldest XID that can't be reused
*after* truncating CLOG. This assertion, and the accompanying
comment, are confused; remove them.

Reported by Neha Sharma.

Discussion: http://postgr.es/m/CANiYTQumC3T=UMBMd1Hor=5XWZYuCEQBioL3ug0YtNQCMMT5wQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ec99dd5aee8b831760046d43098c2d1cf23157ed

Modified Files
--------------
src/backend/access/transam/clog.c | 4 ----
1 file changed, 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-08-10 17:12:49 pgsql: pgstatindex: Insert some casts to prevent overflow.
Previous Message Michael Paquier 2017-08-10 07:33:30 Re: Re: [COMMITTERS] pgsql: Fix inadequacies in recently added wait events