Re: Assignment to array elements
От | Greg Stark |
---|---|
Тема | Re: Assignment to array elements |
Дата | |
Msg-id | 87smd4viiv.fsf@stark.xeocode.com обсуждение исходный текст |
Ответ на | Assignment to array elements (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Assignment to array elements
|
Список | pgsql-hackers |
Tom Lane <tgl@sss.pgh.pa.us> writes: > What I would like to do about this is define INSERT to a subscripted > column name as working the same way that an assignment to a element or > slice of a zero-dimension array presently does --- that is, you get an > actual array back and not a NULL. It would also fall out that UPDATE > of a null array value would behave that way. That certainly seems nice. Though update of a part of a null array value seems a little sketchy in theory it would sure be convenient for me. What I'm curious about is where the original behaviour came from. Is it just because insert with subscripts was never implemented? Or was there a rationale for ignoring the subscripts? -- greg
В списке pgsql-hackers по дате отправления: