From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: evgeni-klimov@yandex.ru
Subject: BUG #15096: Unable to CREATE TABLE LIKE with bigint identity column
Date: Sat, 03 Mar 2018 16:53:36 +0000
Message-ID: <152009601619.21242.262498029671910378@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15096
Logged by: Evgeny
Email address: evgeni-klimov@yandex.ru
PostgreSQL version: 10.2
Operating system: Windows 7 x64
Description:
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)
However, if I change the id column type to INT, the second command
succeeds.
Checked on 10.3 and 10.2.
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: noreply@postgresql.org, evgeni-klimov@yandex.ru
Subject: Re: BUG #15096: Unable to CREATE TABLE LIKE with bigint identity column
In-Reply-To: <152009601619.21242.262498029671910378@wrigleys.postgresql.org>
References: <152009601619.21242.262498029671910378@wrigleys.postgresql.org>
* 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