Re: Proposal: new function array_init
От | Pavel Stehule |
---|---|
Тема | Re: Proposal: new function array_init |
Дата | |
Msg-id | 162867790806041423m7199ece0ocb42e81a2b10d517@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Proposal: new function array_init (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Proposal: new function array_init
|
Список | pgsql-hackers |
2008/6/4 Tom Lane <tgl@sss.pgh.pa.us>: > "Pavel Stehule" <pavel.stehule@gmail.com> writes: >> 2008/6/4 Tom Lane <tgl@sss.pgh.pa.us>: >>> If you mean an array of nulls, it still has to have an element type. > >> I know it - but there was discus about untyped array for empty arrays >> like ARRAY[] > > What's that have to do with array_init? It will not (usually) be trying > to create an empty array. > sparse arrays?? Or it emulation in pg idealized code: a = array_set(array[10,10]); // untyped null array a[10,10] = 'text'; -- now array is typed without a = array_set(NULL::text, array[10,10]); a[10,10] = 'text'; this is only some ideas, I don't plan do it Pavel > regards, tom lane >
В списке pgsql-hackers по дате отправления: