conditional joins and views - Mailing list pgsql-general

From Jonathan Vanasco
Subject conditional joins and views
Date
Msg-id EA1E8567-C46D-4B05-8423-C1332104359D@2xlp.com
Whole thread Raw
Responses Re: conditional joins and views  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-general
Is it possible at all to use conditional joins in views?

ie:
    select a.* , b.* from a inner join b ON ( (a.id = b.id) AND
(a.otherfield <> ?) )

I have a few 15-20 table joins that i'd like to push into views.
i've never wanted to push something with a conditional join into a
view before, so am at a loss on this being a possibility.

seeing little documentation on this, i'm thinking its not possible
and i'll have to use a function.






// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
| SyndiClick.com
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
|      FindMeOn.com - The cure for Multiple Web Personality Disorder
|      Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
|      RoadSound.com - Tools For Bands, Stuff For Fans
|      Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -



pgsql-general by date:

Previous
From: Jorge Godoy
Date:
Subject: Re: Audit-trail engine: getting the application's layer user_id
Next
From: William Garrison
Date:
Subject: postgres on Windows: PAE and max memory