pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Victor Yegorov <vyegorov@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #16285: bt_metap fails with value is out of range for type integer
Date: Mon, 9 Mar 2020 15:09:30 -0700
Message-ID: <20200309220930.ozdulsvymhfgm4dq@alap3.anarazel.de> (raw)
In-Reply-To: <CAH2-Wz=esJqUO_QTasnjGPHvER7Bo5iac04UgUqR7V7N-YPMDg@mail.gmail.com>
References: <16285-df8fc1000ab3d5fc@postgresql.org>
	<20200303013936.GA27326@alvherre.pgsql>
	<CAGnEbogyKh_UN1n_fGvmb_O5AWHdHvHipmktfvBFzRKw66z33w@mail.gmail.com>
	<CAH2-Wzm1he651X9NKiBtuBa5D7i7dw0zfY9X699+3OKpnW4=ug@mail.gmail.com>
	<CAH2-Wz=esJqUO_QTasnjGPHvER7Bo5iac04UgUqR7V7N-YPMDg@mail.gmail.com>

Hi,

On 2020-03-07 16:45:27 -0800, Peter Geoghegan wrote:
> 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!

ISTM that we need some fix for the back-branches too. Being unable to
look at some indexes till 12 has aged out doesn't strike me as good.

How about simply printing the wrapped value? That's far from perfect, of
course, but clearly better than the current situation in the back
branches.

Greetings,

Andres Freund





view thread (16+ messages)  latest in thread

Message-ID: <20200309220930.ozdulsvymhfgm4dq@alap3.anarazel.de>
Permalink:  ../20200309220930.ozdulsvymhfgm4dq@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20200309220930.ozdulsvymhfgm4dq@alap3.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: andres@anarazel.de, pg@bowt.ie, vyegorov@gmail.com, alvherre@2ndquadrant.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16285: bt_metap fails with value is out of range for type integer
  In-Reply-To: <20200309220930.ozdulsvymhfgm4dq@alap3.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox