BUG #14862: create table with missing sequence bug

From: gezeala(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Cc: gezeala(at)gmail(dot)com
Subject: BUG #14862: create table with missing sequence bug
Date: 2017-10-19 17:04:24
Message-ID: 20171019170424.1471.41843@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14862
Logged by: pgyayix
Email address: gezeala(at)gmail(dot)com
PostgreSQL version: 9.4.9
Operating system: CentOS 7
Description:

--on a fresh db:
CREATE SCHEMA testschema;

--sequence is missing
--create table fails:
CREATE TABLE testschema.sometable1 (
col1 bigint DEFAULT
nextval('missingschema.missingsequence_id1'::regclass) NOT NULL,
col2 text
);

--sequence is missing
--create table works fine:
CREATE TABLE testschema.sometable2 (
col1 bigint DEFAULT
nextval(('missingschema.missingsequence_id2'::text)::regclass) NOT NULL,
col2 text
);

Only difference is sometable2 sequence definition has ::text::regclass.

Thanks.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2017-10-19 17:46:33 Re: BUG #14862: create table with missing sequence bug
Previous Message Michael Paquier 2017-10-19 15:25:45 Re: BUG #14849: jsonb_build_object doesn't like VARIADIC calls very much