From: | Konstantin Knizhnik <k(dot)knizhnik(at)postgrespro(dot)ru> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Why it is not possible to create custom AM which behaves similar to btree? |
Date: | 2020-07-23 12:35:42 |
Message-ID: | 3a66de75-cba0-ccdb-db11-41f4779a813c@postgrespro.ru |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 23.07.2020 03:11, Tom Lane wrote:
> Konstantin Knizhnik <k(dot)knizhnik(at)postgrespro(dot)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),
> ...
Thank you very much.
It works!
From | Date | Subject | |
---|---|---|---|
Next Message | Bharath Rupireddy | 2020-07-23 12:37:14 | Re: Parallel copy |
Previous Message | Pavel Stehule | 2020-07-23 11:55:19 | Re: Compatible defaults for LEAD/LAG |