pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: evgeni-klimov@yandex.ru, pgsql-bugs@lists.postgresql.org, Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Subject: Re: BUG #15096: Unable to CREATE TABLE LIKE with bigint identity column
Date: Sat, 03 Mar 2018 19:55:41 +0000
Message-ID: <87po4lkkaj.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <31194.1520098424@sss.pgh.pa.us>
References: <152009601619.21242.262498029671910378@wrigleys.postgresql.org>
	<31194.1520098424@sss.pgh.pa.us>

>>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> 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)




view thread (13+ messages)  latest in thread

Message-ID: <87po4lkkaj.fsf@news-spur.riddles.org.uk>
Permalink:  ../87po4lkkaj.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87po4lkkaj.fsf@news-spur.riddles.org.uk

 · 

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-bugs@postgresql.org
  Cc: andrew@tao11.riddles.org.uk, tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com
  Subject: Re: BUG #15096: Unable to CREATE TABLE LIKE with bigint identity column
  In-Reply-To: <87po4lkkaj.fsf@news-spur.riddles.org.uk>
  References: <152009601619.21242.262498029671910378@wrigleys.postgresql.org> <31194.1520098424@sss.pgh.pa.us> <87po4lkkaj.fsf@news-spur.riddles.org.uk>

* 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