From: | Alexander Lakhin <exclusion(at)gmail(dot)com> |
---|---|
To: | Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com> |
Cc: | Peter Eisentraut <peter(at)eisentraut(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: partitioning and identity column |
Date: | 2024-04-27 15:00:01 |
Message-ID: | 677c665e-a56c-9ee7-9c39-24d7edf6d25a@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hello Ashutosh,
26.04.2024 21:00, Alexander Lakhin wrote:
> 26.04.2024 15:57, Ashutosh Bapat wrote:
>> Thanks Alexander for the report.
>>
>> On Fri, Apr 26, 2024 at 5:30 PM Alexander Lakhin <exclusion(at)gmail(dot)com> wrote:
>>
>>
>> CREATE TABLE tbl3 (LIKE tbl2 INCLUDING IDENTITY);
>> ERROR: no owned sequence found
>>
>>
>
>>
>> Do you want to track this in open items?
>>
>
> If you are inclined to fix this behavior, I would add this item.
Please look also at another script, which produces the same error:
CREATE TABLE tbl1 (a int GENERATED BY DEFAULT AS IDENTITY, b text)
PARTITION BY LIST (b);
CREATE TABLE tbl2 PARTITION OF tbl1 DEFAULT;
ALTER TABLE tbl1 ALTER COLUMN a SET DATA TYPE bigint;
ERROR: no owned sequence found
(On 699586315~1, it executes successfully and changes the data type of the
identity column and it's sequence.)
Best regards,
Alexander
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2024-04-27 15:15:47 | Re: add tab-complete for memory, serialize option and other minor issues. |
Previous Message | Imseih (AWS), Sami | 2024-04-27 14:57:44 | Re: query_id, pg_stat_activity, extended query protocol |