Re: Fix for Index Advisor related hooks - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Fix for Index Advisor related hooks
Date
Msg-id 24951.1297869908@sss.pgh.pa.us
Whole thread Raw
In response to Re: Fix for Index Advisor related hooks  (Gurjeet Singh <singh.gurjeet@gmail.com>)
Responses Re: Fix for Index Advisor related hooks  (Gurjeet Singh <singh.gurjeet@gmail.com>)
List pgsql-hackers
Gurjeet Singh <singh.gurjeet@gmail.com> writes:
> I understand that we need to hide guts of an implementation. But without
> this the Index Advisor will have to emulate what LookupOpclassInfo() does
> and that's a lot of code that I am afraid, if emulated by another function
> in Index Advisor, is more prone to obsolecence than calling
> IndexSupportInitialize().

The only reason you'd need that code is if you were trying to construct
a fake Relation structure, which seems unnecessary and undesirable.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Fwd: [JDBC] Weird issues when reading UDT from stored function
Next
From: Tom Lane
Date:
Subject: Re: Fix for Index Advisor related hooks