Re: btree_gin and btree_gist for enums

From: Emre Hasegeli <emre(at)hasegeli(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: btree_gin and btree_gist for enums
Date: 2017-02-25 17:14:55
Message-ID: CAE2gYzxM6L2VQzuRzQPK3x=UWsSi=47jLtLoeCPE5BeLwPfnjQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> The reason this is kind of scary is that it's just blithely assuming
> that the function won't look at the *other* fields of the FmgrInfo.
> If it did, it would likely get very confused, since those fields
> would be describing the GIN support function, not the function we're
> calling.

I am sorry if it doesn't make sense, but wouldn't the whole thing be
better, if we refactor enum.c to call only he internal functions with
TypeCacheEntry just like the rangetypes?

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2017-02-25 17:27:36 Re: btree_gin and btree_gist for enums
Previous Message Tom Lane 2017-02-25 17:04:21 Re: btree_gin and btree_gist for enums