Re: BUMP: Using foreign key constraint to eliminate unnecessary joins in view

From: Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec>
To: Paul Wehr <sf_psql_general(at)informationsoftworks(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: BUMP: Using foreign key constraint to eliminate unnecessary joins in view
Date: 2009-04-13 22:09:19
Message-ID: 3073cc9b0904131509n3e95e908raf40e3a6216247cd@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Apr 13, 2009 at 2:36 PM, Paul Wehr
<sf_psql_general(at)informationsoftworks(dot)com> wrote:
>
> I am looking for a way to get the plan to show only a seq scan of test2,
> since test1 does not contribute any columns, and we know from the
> not-deferrable-not-null-primary-key that there will always be exactly one
> match.
>
> Am I just missing something obvious, or does postgresql (currently) not do
> that?
>

postgres will look at all tables involved, i think there is work to
make it smart enough to make what you describe but that's in the
future...

--
Atentamente,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Asesoría y desarrollo de sistemas
Guayaquil - Ecuador
Cel. +59387171157

In response to

Browse pgsql-general by date

  From Date Subject
Next Message NTPT 2009-04-13 22:58:15 Re: In memory Database for postgres
Previous Message Joshua D. Drake 2009-04-13 22:08:11 Re: "PostgreSQL in the cloud" now up on media.postgresql.org