Re: How am I supposed to fix this? - Mailing list pgsql-hackers

From Larry Rosenman
Subject Re: How am I supposed to fix this?
Date
Msg-id 48e45983e51328cdf24b43fcf524c02a@lerctr.org
Whole thread Raw
In response to Re: How am I supposed to fix this?  (Larry Rosenman <ler@lerctr.org>)
Responses Re: How am I supposed to fix this?  (Peter Geoghegan <pg@bowt.ie>)
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Ibrar Ahmed
Date:
Subject: Re: SQL:2011 PERIODS vs Postgres Ranges?
Next
From: Peter Geoghegan
Date:
Subject: Re: How am I supposed to fix this?