Re: How am I supposed to fix this?

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Peter Geoghegan <pg(at)bowt(dot)ie>
Cc: Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: How am I supposed to fix this?
Date: 2019-08-06 18:11:14
Message-ID: 48e45983e51328cdf24b43fcf524c02a@lerctr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)lerctr(dot)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(at)lerctr(dot)org
US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2019-08-06 18:16:44 Re: How am I supposed to fix this?
Previous Message Ibrar Ahmed 2019-08-06 18:07:20 Re: SQL:2011 PERIODS vs Postgres Ranges?