Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1esDG7-0007xa-TF for pgsql-bugs@arkaria.postgresql.org; Sat, 03 Mar 2018 19:55:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1esDG6-0006JI-Aa for pgsql-bugs@arkaria.postgresql.org; Sat, 03 Mar 2018 19:55:54 +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.89) (envelope-from ) id 1esDG6-0006J9-1B for pgsql-bugs@lists.postgresql.org; Sat, 03 Mar 2018 19:55:54 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1esDG2-0007Uc-V1 for pgsql-bugs@lists.postgresql.org; Sat, 03 Mar 2018 19:55:52 +0000 Received: from [192.168.127.1] (port=24682 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1esDFv-0000ES-Ja; Sat, 03 Mar 2018 19:55:43 +0000 Received: from [127.0.0.1] (port=33835 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1esDFu-000ACP-P3; Sat, 03 Mar 2018 19:55:42 +0000 From: Andrew Gierth To: Tom Lane Cc: evgeni-klimov@yandex.ru, pgsql-bugs@lists.postgresql.org, Peter Eisentraut Subject: Re: BUG #15096: Unable to CREATE TABLE LIKE with bigint identity column In-Reply-To: <31194.1520098424@sss.pgh.pa.us> (Tom Lane's message of "Sat, 03 Mar 2018 12:33:44 -0500") Message-ID: <87po4lkkaj.fsf@news-spur.riddles.org.uk> References: <152009601619.21242.262498029671910378@wrigleys.postgresql.org> <31194.1520098424@sss.pgh.pa.us> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Sat, 03 Mar 2018 19:55:41 +0000 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Tom" == Tom Lane writes: >> ERROR: MINVALUE (1) must be less than MAXVALUE (-1) Tom> Hm ... works fine for me on a 64-bit Linux machine ... but it Tom> fails as described on 32-bit. Something in the LIKE code path is Tom> shoving the sequence's maxvalue through a variable with Tom> platform-dependent width, probably of type "long". No time right Tom> now to locate the exact problem. The Value node's "ival" field is declared as a long. sequence_options thinks it can put all the sequence parameters through makeInteger and have them come out intact. -- Andrew (irc:RhodiumToad)