public inbox for [email protected]
help / color / mirror / Atom feedFrom: David Rowley <[email protected]>
To: Wong, Kam Fook (TR Technology) <[email protected]>
To: pgsql-general <[email protected]>
Subject: Re: [EXT] Re: How to delete column level Stats/Histogram
Date: Fri, 31 May 2024 13:55:38 +1200
Message-ID: <CAApHDvqhAiv7So_dDLLuuyjErpckQj2pwK8i9GzhMfOt5cweBA@mail.gmail.com> (raw)
In-Reply-To: <CH0PR03MB610027C8A60B1B252490E749FEFC2@CH0PR03MB6100.namprd03.prod.outlook.com>
References: <CH0PR03MB61008E885DA648855B38E273FEF32@CH0PR03MB6100.namprd03.prod.outlook.com>
<CAApHDvp05Q5jw4zqC9TLQqhdJQ9E6kjs=aYMr4DedONsJDPBCg@mail.gmail.com>
<CH0PR03MB610027C8A60B1B252490E749FEFC2@CH0PR03MB6100.namprd03.prod.outlook.com>
(please keep communication on the list)
On Fri, 31 May 2024 at 13:43, Wong, Kam Fook (TR Technology)
<[email protected]> wrote:
>
> Silly question why did I run into this problem below? Will the autovacuum analyze abc reset it back which I don't want it to.
>
> DELETE FROM pg_statistic WHERE starelid = 'abc'::regclass and staattnum = (SELECT attnum FROM pg_attribute WHERE attrelid = 'abc'::regclass AND attname = 'bg_org_partner');
>
> SQL Error [42P01]: ERROR: relation "abc" does not exist
> Position: 52
The schema for the abc table will need to be in your search_path.
You'll need to be connected to the correct database too.
David
view thread (3+ messages)
reply
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: [EXT] Re: How to delete column level Stats/Histogram
In-Reply-To: <CAApHDvqhAiv7So_dDLLuuyjErpckQj2pwK8i9GzhMfOt5cweBA@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox