public inbox for [email protected]
help / color / mirror / Atom feedFrom: Bill Martin <[email protected]>
To: Tom Lane <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Planner selects different execution plans depending on limit
Date: Tue, 18 Sep 2012 07:28:25 +0000
Message-ID: <D48BF41C96B16442B542F5E25C259047011E8118EC@COM211.communardo.local> (raw)
In-Reply-To: <[email protected]>
References: <D48BF41C96B16442B542F5E25C259047011E80F02A@COM211.communardo.local>
<[email protected]>
<[email protected]>
<D48BF41C96B16442B542F5E25C259047011E811299@COM211.communardo.local>
<[email protected]>
Tom Lane <mailto:[email protected]> writes:
> Bill Martin <[email protected]> writes:
>> Tom Lane <[email protected]> writes:
>>> He can do it without having to change his schema --- but it's the
>>> index column, not the underlying content column, that needs its
>>> statistics target adjusted.
>> How can I adjust the statistics target of the index?
> Just pretend it's a table.
> ALTER TABLE index_name ALTER COLUMN column_name SET STATISTICS ...
> You'll need to look at the index (eg with \d) to see what the name of the desired column is, since index expressions have system-assigned
> column names.
> regards, tom lane
I tried:
ALTER TABLE ft_simple_core_content_content_idx ALTER column to_tsvector SET STATISTICS 10000;
ANALYZE;
and
REINDEX INDEX ft_simple_core_content_content_idx;
All the trouble was for nothing.
Are there any other possibilities to solve my problem?
Best regards,
Bill Martin
view thread (9+ messages) latest in thread
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], [email protected]
Subject: Re: Planner selects different execution plans depending on limit
In-Reply-To: <D48BF41C96B16442B542F5E25C259047011E8118EC@COM211.communardo.local>
* 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