Re: Why it is not possible to create custom AM which behaves similar to btree?
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Why it is not possible to create custom AM which behaves similar to btree? |
| Дата | |
| Msg-id | 88176.1595463069@sss.pgh.pa.us обсуждение |
| Ответ на | Why it is not possible to create custom AM which behaves similar to btree? (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>) |
| Ответы |
Re: Why it is not possible to create custom AM which behaves similar to btree?
|
| Список | pgsql-hackers |
Konstantin Knizhnik <k.knizhnik@postgrespro.ru> writes:
> But then I get error for btfloat48cmp and btfloat84cmp functions:
> ERROR: associated data types must be specified for index support function
You need to specify the amproclefttype and amprocrighttype types you
want the function to be registered under. The core code knows that
for btree, those are the same as the actual parameter types of the
function; but there's no reason to make such an assumption for other AMs.
So you have to write it out; perhaps
...
FUNCTION 1(float4,float8) btfloat48cmp(float4,float8),
...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера