About #13489

Поиск
Список
Период
Сортировка
Искать
От
Bruno Bonfils
Тема
About #13489
Дата
Msg-id
ZD+14YZ4IUue8Rhi@gendo.asyd.net
Список
Дерево обсуждения
About #13489 Bruno Bonfils <asyd@asyd.net>
Re: About #13489, array dimensions and CREATE TABLE ... LIKE Bruce Momjian <bruce@momjian.us>
Hello there, 

A few years ago, someone reported a bug (#13489) about attndims, which
returned a false value on an array on a table created by CREATE TABLE
 (LIKE  INCLUDING ALL), 

example:

CREATE TABLE test (data integer, data_array integer[];
CREATE TABLE test_clone (LIKE test INCLUDING ALL);

SELECT attndims FROM pg_attribute WHERE attrelid = 'test'::regclass AND
attname = 'data_array';

returns 1

but

SELECT attndims FROM pg_attribute WHERE attrelid = 'test_clone'::regclass AND
attname = 'data_array';

returns 0

However, according to the documentation https://www.postgresql.org/docs/15/catalog-pg-attribute.html,
since data_array is an array I expected the returned value should be
greater than 0

Thanks

(tested on PostgreSQL 15.2 (Debian 15.2-1.pgdg110+1))



В списке pgsql-bugs по дате отправления
От: Richard Guo
Дата:
От: PG Bug reporting form
Дата:
FAQ