From: Tom Lane <tgl@sss.pgh.pa.us>
To: Morris de Oryx <morrisdeoryx@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: ERROR: could not find tuple for statistics object - is there a way to clean this up?
Date: Sun, 15 Nov 2020 11:34:43 -0500
Message-ID: <629440.1605458083@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKqnccgXPpc7vQEfH2u97dX8jUBurpBi6eDReaaYghN7jidmEQ@mail.gmail.com>
References: <CAKqnccgZyxr4geb5zodnm2-gTtLx5QWPeA-VKHw2cm=YQQvOdw@mail.gmail.com>
<606867.1605424106@sss.pgh.pa.us>
<CAKqnccgXPpc7vQEfH2u97dX8jUBurpBi6eDReaaYghN7jidmEQ@mail.gmail.com>
Morris de Oryx <morrisdeoryx@gmail.com> writes:
> After posting, I realized that this is likely a Stupid User Error. I was
> mucking around, and did something along the lines of
> delete from pg_statistic_ext;
> or
> delete from pg_stats_ext;
> ...instead of DROP STATISTICS calls. Would this likely explain what I'm
> seeing?
Ah, yeah, it likely would.
If this isn't a throwaway database, what you'd have to do to clear the
errors is to find and remove the now-dangling links to the deleted objects
in pg_depend.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, morrisdeoryx@gmail.com
Subject: Re: ERROR: could not find tuple for statistics object - is there a way to clean this up?
In-Reply-To: <629440.1605458083@sss.pgh.pa.us>
References: <CAKqnccgZyxr4geb5zodnm2-gTtLx5QWPeA-VKHw2cm=YQQvOdw@mail.gmail.com> <606867.1605424106@sss.pgh.pa.us> <CAKqnccgXPpc7vQEfH2u97dX8jUBurpBi6eDReaaYghN7jidmEQ@mail.gmail.com> <629440.1605458083@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox