Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJN1t-0001Ox-2U for pgsql-committers@arkaria.postgresql.org; Tue, 20 Dec 2016 16:12:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cJN1s-0002dL-EL for pgsql-committers@arkaria.postgresql.org; Tue, 20 Dec 2016 16:12:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cJN1r-0002cu-Oq for pgsql-committers@postgresql.org; Tue, 20 Dec 2016 16:12:39 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cJN1p-00066K-2x for pgsql-committers@postgresql.org; Tue, 20 Dec 2016 16:12:38 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 32A7720774 for ; Tue, 20 Dec 2016 11:12:36 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Tue, 20 Dec 2016 11:12:36 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=xMXk/Sb7adIDZBIdzTVgrx2x4QM=; b=VddpoEUvDwHzHME2bvji QRZMBKnRif65CLBxDmwXVwqnAQUY0nxTuDWw5/kZtaTpf1ybc9meMohgNYcPQxrB TmasavShT6x1ns1pTxXM1B8ouuQ+EsG3GJizyJgAxILNX5rLBEPDCP5pbCAydOBm n+hV9TjmFUU1AbV2QDk/vD0= X-ME-Sender: X-Sasl-enc: p4PEyCVCyd612PZAZrwnrjLmVB6GboG1rTvUG4CrHMiR 1482250356 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id EEDC57E753 for ; Tue, 20 Dec 2016 11:12:35 -0500 (EST) Subject: Re: pgsql: Add pg_sequence system catalog To: pgsql-committers@postgresql.org References: <76ce2ca3-40f2-d291-eae2-17b599f29ba0@2ndquadrant.com> From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Tue, 20 Dec 2016 11:12:34 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <76ce2ca3-40f2-d291-eae2-17b599f29ba0@2ndquadrant.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org 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