The following bug has been logged on the website:
Bug reference: 15096
Logged by: Evgeny
Email address: evgeni-klimov(at)yandex(dot)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.