Re: partitioning and identity column

Поиск
Список
Период
Сортировка
От Alexander Lakhin
Тема Re: partitioning and identity column
Дата
Msg-id fd291cc3-05e9-145e-8ea0-dbb9a2c85aec@gmail.com
обсуждение исходный текст
Ответ на Re: partitioning and identity column  (Alexander Lakhin <exclusion@gmail.com>)
Ответы Re: partitioning and identity column  (Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>)
Список pgsql-hackers
27.04.2024 18:00, Alexander Lakhin wrote:
>
> Please look also at another script, which produces the same error:

I've discovered yet another problematic case:
CREATE TABLE tbl1 (a int GENERATED ALWAYS AS IDENTITY, b text)
     PARTITION BY LIST (a);
CREATE TABLE tbl2 (b text, a int NOT NULL);
ALTER TABLE tbl1 ATTACH PARTITION tbl2 DEFAULT;

INSERT INTO tbl2 DEFAULT VALUES;
ERROR:  no owned sequence found

Though it works with tbl2(a int NOT NULL, b text)...
Take a look at this too, please.

Best regards,
Alexander



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Joseph Koshakow
Дата:
Сообщение: Re: Fix overflow hazard in timestamp_pl_interval
Следующее
От: David Rowley
Дата:
Сообщение: Re: Typos in the code and README