Re: Some array semantics issues
От | Joe Conway |
---|---|
Тема | Re: Some array semantics issues |
Дата | |
Msg-id | 437D251B.50304@joeconway.com обсуждение исходный текст |
Ответ на | Re: Some array semantics issues (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Some array semantics issues
|
Список | pgsql-hackers |
Tom Lane wrote: > Joe Conway <mail@joeconway.com> writes: >>... My hope was that eventually anyarray I/O functions >>could eliminate the need to create an array type for every data type you >>wanted to use as an array element. > > Interesting thought, but then how do you declare the type of an array > column, or the type of a function argument that's not supposed to range > over every array type? If we can't use an OID to identify a data type > completely, we're going to have lots of problems. > You only really need two pieces of information to uniquely identify an array data type -- the OID of the (leaf-node) scalar elements, and the fact that what you have is an array. Even if it is a nested structure of arrays, by recursing (max 5 times), you can eventually find the scalar elements. Last year I played around with this and had it partially working, but then got too busy to pursue it further. Joe
В списке pgsql-hackers по дате отправления: