Re: BUG #14239: Array of array type reporting

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: BUG #14239: Array of array type reporting
Дата
Msg-id
20160729032557.GB17219@momjian.us
Ответ на
Список
Дерево обсуждения
BUG #14239: Array of array type reporting yrashk@gmail.com
Re: BUG #14239: Array of array type reporting Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: BUG #14239: Array of array type reporting Bruce Momjian <bruce@momjian.us>
On Sat, Jul  9, 2016 at 03:03:34PM -0400, Peter Eisentraut wrote:
> On 7/9/16 12:57 PM, yrashk@gmail.com wrote:
> >Is there any reason why schedule text[][] is reported as text[]?
> 
> There is no such thing as text[][].  I'm not sure why it's accepted (perhaps
> backward compatibility), but PostgreSQL only supports one level of
> array-ness, which can, however, be multidimensional.
> 
> So this is nothing to worry about.

Yeah, arrays basically don't store any supplied dimmensions:

	test=> CREATE TABLE test(x TEXT[3]);
	CREATE TABLE

	test=> \d test
	     Table "public.test"
	 Column |  Type  | Modifiers
	--------+--------+-----------
	 x      | text[] |

	              ^^

-- 
  Bruce Momjian          http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I. As I am, so you will be. +
+                     Ancient Roman grave inscription +
В списке pgsql-bugs по дате отправления
От: Michael Paquier
Дата:
FAQ