Re: Optimizing view

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Victor Yegorov" <viy(at)pirmabanka(dot)lv>
Cc: "PostgreSQL SQL List" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Optimizing view
Date: 2003-03-10 15:14:27
Message-ID: 17355.1047309267@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Victor Yegorov" <viy(at)pirmabanka(dot)lv> writes:
> I'm running `PostgreSQL 7.2 on i586-pc-linux-gnu, compiled by GCC 2.95.3'
> and have some problems with queries on a view.

Try 7.3. 7.2 won't push down WHERE conditions into a union.

BTW, if the archive table is disjoint from the main table, you'd be
better off using UNION ALL instead of UNION.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jeroen T. Vermeulen 2003-03-10 15:32:46 Re: Cursors and backwards scans and SCROLL
Previous Message Tom Lane 2003-03-10 15:07:32 Re: Help on indexing timestamps