Re: [HACKERS] RFC: Key normalization for nbtree
От | Greg Stark |
---|---|
Тема | Re: [HACKERS] RFC: Key normalization for nbtree |
Дата | |
Msg-id | CAM-w4HPRrXZY-gMYxPkWPV8QqeEDB3EptW9FtuPiWM=fPB==vg@mail.gmail.com обсуждение исходный текст |
Ответ на | [HACKERS] RFC: Key normalization for nbtree (Peter Geoghegan <pg@bowt.ie>) |
Ответы |
Re: [HACKERS] RFC: Key normalization for nbtree
|
Список | pgsql-hackers |
On 10 July 2017 at 19:40, Peter Geoghegan <pg@bowt.ie> wrote: > Key normalization means creating a representation for internal page > items that we always just memcmp(), regardless of the details of the > underlying datatypes. One thing I would like to see is features like this added to the opclasses (or opfamilies?) using standard PG functions that return standard PG data types. So if each opclass had a function that took the data type in question and returned a bytea then you could implement that function using a language you felt like (in theory), test it using standard SQL, and possibly even find other uses for it. That kind of abstraction would be more promising for the future than having yet another C api that is used for precisely one purpose and whose definition is "provide the data needed for this usage". -- greg
В списке pgsql-hackers по дате отправления: