Re: [HACKERS] [PATCH] Generic type subscription
От | Robert Haas |
---|---|
Тема | Re: [HACKERS] [PATCH] Generic type subscription |
Дата | |
Msg-id | CA+TgmoZQz-jJHfd2ND8DFmUzWhbBoQOKorJXVrFtzca2==mYTQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [HACKERS] [PATCH] Generic type subscription (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: [HACKERS] [PATCH] Generic type subscription
|
Список | pgsql-hackers |
On Mon, Jan 23, 2017 at 2:07 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote: > Can we arrange to do that differently? I'd prefer something in which the > argument and result types are visibly connected to the actual datatypes > at hand, for instance > array_subscript(anyarray, internal) returns anyelement > array_assign(anyarray, internal, anyelement) returns anyarray What about having no internal arguments here at all? Like if you want to support foo[4] define a subscript function that takes (mytype, int) and returns whatever. You might have to allow for multiple subscripting functions with different argument types for this to really work, though. /me ducks -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления: