Re: Index Ignored Due To Use Of View - Mailing list pgsql-general

From Tom Lane
Subject Re: Index Ignored Due To Use Of View
Date
Msg-id 10646.1298611975@sss.pgh.pa.us
Whole thread Raw
In response to Index Ignored Due To Use Of View  ("David Johnston" <polobo@yahoo.com>)
Responses Re: Index Ignored Due To Use Of View
List pgsql-general
"David Johnston" <polobo@yahoo.com> writes:
> Now, if I simply replace the original FROM clause with the view definition
> (i.e., SELECT * FROM (SELECT ... ) alias WHERE ) I get:
> [ a different plan ]
> I now have index scans on both "filetaskinstance" and "filereference" - but
> all I appeared to do is the same as what rule re-writing should have done.

If you really just manually plugged in the view definition, then yeah
you should have gotten the same results.  Could we see a complete test
case?

            regards, tom lane

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: pg_dump makes our system unusable - any way to pg_dump in the middle of the day? (postgres 8.4.4)
Next
From: Adam Bruss
Date:
Subject: Re: pg_dump makes our system unusable - any way to pg_dump in the middle of the day? (postgres 8.4.4)