| От | Tom Lane |
|---|---|
| Тема | Re: Proposal: new function array_init |
| Дата | |
| Msg-id | 6506.1212619137@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Proposal: new function array_init ("Pavel Stehule" <pavel.stehule@gmail.com>) |
| Ответы |
Re: Proposal: new function array_init
|
| Список | pgsql-hackers |
"Pavel Stehule" <pavel.stehule@gmail.com> writes:
> postgres=# select array_fill('p',array[4,4]);
> ERROR: could not determine polymorphic type because input has type "unknown"
[ shrug... ] I don't really see a problem with that.
> I can use hack:
> CREATE OR REPLACE FUNCTION array_fill(dv text, dims int[])
> RETURNS text[]
This would be a bad idea, I think; what will happen with
array_fill(null, array[1,2])
I think we *want* that to throw error rather than defaulting to text.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера