Re: BUG #16285: bt_metap fails with value is out of range for type integer
Peter Geoghegan <pg@bowt.ie>
From: Peter Geoghegan <pg@bowt.ie>
To: Victor Yegorov <vyegorov@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2020-03-08T00:45:27Z
Lists: pgsql-bugs
On Fri, Mar 6, 2020 at 2:23 PM Peter Geoghegan <pg@bowt.ie> wrote: > This has to be the oldest_xact field. If it was any of the other > fields, the "%d" format would not result in an error (it would just > result in incorrectly displaying a negative integer). oldest_xact is > the only field that uses "%u" (unfortunately, the declaration makes > the field an int4/integer, so you may see this error). Pushed a fix for this just now. Thanks for the report! -- Peter Geoghegan
Commits
-
Paper over bt_metap() oldest_xact bug in backbranches.
- 393b449f1a64 12.3 landed
- c788115b5eb5 11.8 landed
-
pageinspect: Fix types used for bt_metap() columns.
- 691e8b2e1889 13.0 landed
-
Skip full index scan during cleanup of B-tree indexes when possible
- 857f9c36cda5 11.0 cited
-
pg_stat_statements: Widen query IDs from 32 bits to 64 bits.
- cff440d36869 11.0 cited