Re: Collect frequency statistics for arrays - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Collect frequency statistics for arrays
Date
Msg-id 18867.1330640362@sss.pgh.pa.us
Whole thread Raw
In response to Re: Collect frequency statistics for arrays  (Nathan Boley <npboley@gmail.com>)
List pgsql-hackers
Nathan Boley <npboley@gmail.com> writes:
> Maybe this is bad design, but I've gotten in the habit of storing
> sequences as arrays and I commonly join on them. I looked through my
> code this morning, and I only have one 'range' query ( of the form
> described up-thread ), but there are tons of the form

> SELECT att1, attb2 FROM rela, relb where rela.seq_array_1 = relb.seq_array;

What do you mean by "storing sequences as arrays"?  Can you demonstrate
that the existing stats are relevant at all to the query you're worried
about?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Nathan Boley
Date:
Subject: Re: Collect frequency statistics for arrays
Next
From: Jaime Casanova
Date:
Subject: Re: Caching for stable expressions with constant arguments v6