Weird issue with truncation of values in array with some tables

Поиск
Список
Период
Сортировка
От Mike Martin
Тема Weird issue with truncation of values in array with some tables
Дата
Msg-id CAOwYNKYfKPfAL4rgP0AO_w0Mn7h8yiXd_Qi9swPdAc4CAUXeAQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Weird issue with truncation of values in array with some tables  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Weird issue with truncation of values in array with some tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Hi
I have come across a weird issue with truncation of text in an array (in this case using pg_indexes view)

This query truncates the second array element at 63 characters
SELECT ARRAY[indexname,indexdef] FROM pg_indexes

However reversing the order doesn't truncate

SELECT ARRAY[indexdef,indexname] FROM pg_indexes

Anyone know why this behaviour occurs?


thanks

Mike

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

Предыдущее
От: Mike Martin
Дата:
Сообщение: Re: Use multidimensional array as VALUES clause in insert
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Weird issue with truncation of values in array with some tables