On 08/06/2019 12:45 pm, Larry Rosenman wrote:
> On 08/06/2019 12:35 pm, Peter Geoghegan wrote:
>> On Tue, Aug 6, 2019 at 10:34 AM Larry Rosenman <ler@lerctr.org> wrote:
>>> ERROR: function bt_index_check(index => oid) does not exist
>>> LINE 1: SELECT bt_index_check(index => c.oid),
>>> ^
>>> HINT: No function matches the given name and argument types. You
>>> might
>>> need to add explicit type casts.
>>
>> It's a contrib extension, so you have to "create extension amcheck"
>> first.
>
>
> the check is running (this is a HUGE table).
>
> For the initial error, it would be nice if:
> 1) the pg_toast schema was mentioned
> or
> 2) reindex searched pg_toast as well.
>
> I did do the reindex pg_toast. index.
As a followup, btcheck found another index that had issues, and a toast
table was missing a chunk.
I have ALL the data I used to create this table still around so I just
dropped it and am reloading the data.
I still think that the error message should mention the fully qualified
index name.
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 E-Mail: ler@lerctr.org
US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106