pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: pgsql-committers@postgresql.org
Subject: Re: pgsql: Add pg_sequence system catalog
Date: Tue, 20 Dec 2016 11:12:34 -0500
Message-ID: <dc80c30a-10bc-7c80-7a2f-7c17c0fbd742@2ndquadrant.com> (raw)
In-Reply-To: <76ce2ca3-40f2-d291-eae2-17b599f29ba0@2ndquadrant.com>
References: <E1cJKgv-0004eC-KE@gemulon.postgresql.org>
	<76ce2ca3-40f2-d291-eae2-17b599f29ba0@2ndquadrant.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

On 12/20/16 9:59 AM, Peter Eisentraut wrote:
> On 12/20/16 8:42 AM, Peter Eisentraut wrote:
>> Add pg_sequence system catalog
> 
> Looking into buildfarm failures on AIX from this.

Puzzling.

The error is

create table test1 (id serial, t text);
ERROR:  MINVALUE (4294967296) must be less than MAXVALUE (-4294967296)

Normal sequence creation works.

I think this error comes from the ALTER SEQUENCE OWNED BY call that the
serial column creation synthesizes.  This would read the existing
sequence parameters from the catalog (AlterSequence()), then parse the
parameters (init_params()), where nothing changes except the owner.  It
still runs the crosscheck min/max, which produces the error message.
The values complained about are 0x100000000 and 0xFFFFFFFF00000000, so
it's possible that it's reading the catalog off by 4 bytes or some bytes
are flipped somewhere else.

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


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



view thread (11+ messages)  latest in thread

Message-ID: <dc80c30a-10bc-7c80-7a2f-7c17c0fbd742@2ndquadrant.com>
Permalink:  ../dc80c30a-10bc-7c80-7a2f-7c17c0fbd742@2ndquadrant.com/
Also on:    postgresql.org/message-id/dc80c30a-10bc-7c80-7a2f-7c17c0fbd742@2ndquadrant.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com
  Subject: Re: pgsql: Add pg_sequence system catalog
  In-Reply-To: <dc80c30a-10bc-7c80-7a2f-7c17c0fbd742@2ndquadrant.com>
  References: <E1cJKgv-0004eC-KE@gemulon.postgresql.org> <76ce2ca3-40f2-d291-eae2-17b599f29ba0@2ndquadrant.com> <dc80c30a-10bc-7c80-7a2f-7c17c0fbd742@2ndquadrant.com>

* 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