From: Tom Lane <tgl@sss.pgh.pa.us>
To: Victor Yegorov <viy@pirmabanka.lv>
Cc: PostgreSQL SQL List <pgsql-sql@postgresql.org>
Subject: Re: Optimizing view
Date: Mon, 10 Mar 2003 10:14:27 -0500
Message-ID: <17355.1047309267@sss.pgh.pa.us> (raw)
In-Reply-To: <20030310135231.GA3791@pirmabanka.lv>
References: <20030310135231.GA3791@pirmabanka.lv>
"Victor Yegorov" <viy@pirmabanka.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
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: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, viy@pirmabanka.lv
Subject: Re: Optimizing view
In-Reply-To: <17355.1047309267@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox