From: Tom Lane <tgl@sss.pgh.pa.us>
To: evgeni-klimov@yandex.ru
Cc: 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 12:33:44 -0500
Message-ID: <31194.1520098424@sss.pgh.pa.us> (raw)
In-Reply-To: <152009601619.21242.262498029671910378@wrigleys.postgresql.org>
References: <152009601619.21242.262498029671910378@wrigleys.postgresql.org>
=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> CREATE TABLE public.test (id BIGINT GENERATED BY DEFAULT AS IDENTITY PRIMARY
> KEY, s TEXT);
> CREATE TABLE public.test_copy (LIKE public.test INCLUDING ALL);
> ERROR: MINVALUE (1) must be less than MAXVALUE (-1)
Hm ... works fine for me on a 64-bit Linux machine ... but it fails
as described on 32-bit. Something in the LIKE code path is shoving
the sequence's maxvalue through a variable with platform-dependent
width, probably of type "long". No time right now to locate the
exact problem.
regards, tom lane
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: tgl@sss.pgh.pa.us, evgeni-klimov@yandex.ru, peter.eisentraut@2ndquadrant.com
Subject: Re: BUG #15096: Unable to CREATE TABLE LIKE with bigint identity column
In-Reply-To: <31194.1520098424@sss.pgh.pa.us>
References: <152009601619.21242.262498029671910378@wrigleys.postgresql.org> <31194.1520098424@sss.pgh.pa.us>
* 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