pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomasz Myrta <jasiek@klaster.net>
To: Tambet Matiisen <t.matiisen@aprote.ee>
Cc: pgsql-sql@postgresql.org
Subject: Re: full join in view
Date: Wed, 08 Jan 2003 14:41:54 +0100
Message-ID: <3E1C2AA2.3000103@klaster.net> (raw)
In-Reply-To: <81132473206F3A46A72BD6116E1A06AE1B14BC@black.aprote.com>
References: <81132473206F3A46A72BD6116E1A06AE1B14BC@black.aprote.com>

Tambet Matiisen wrote:

> I'm making a report in Crystal Reports, which makes use of full join. 
> As Crystal Reports does not support full join natively, I created a 
> view which contains the join and based my report on that view. The 
> report has also a parameter to filter only subset of rows from view. 
> My problem is, that when selecting from this view, optimizer never 
> uses indexes of neither of two tables.
>
> I understand, that optimizing the filter to the bottom of query tree 
> may not always give the same result with full join (although it should 
> in my case). Alternative could be to use function returning a table, 
> but I doubt I could use this function from Crystal Reports. What other 
> options I have?
>
>   Tambet

Can you add some sql examples - table & index definition, view definition?
If your view doesn't contain other views or sub-selects, postgres should 
use indexes.
Tomasz Myrta




view thread (7+ messages)  latest in thread

Message-ID: <3E1C2AA2.3000103@klaster.net>
Permalink:  ../3E1C2AA2.3000103@klaster.net/
Also on:    postgresql.org/message-id/3E1C2AA2.3000103@klaster.net

 · 

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: pgsql-sql@postgresql.org
  Cc: jasiek@klaster.net, t.matiisen@aprote.ee
  Subject: Re: full join in view
  In-Reply-To: <3E1C2AA2.3000103@klaster.net>

* 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