Re: Enhancement to SQL query capabilities - Mailing list pgsql-sql

From Tom Lane
Subject Re: Enhancement to SQL query capabilities
Date
Msg-id 15320.1458307020@sss.pgh.pa.us
Whole thread Raw
In response to Enhancement to SQL query capabilities  (Andrew Smith <laconical@gmail.com>)
Responses Re: Enhancement to SQL query capabilities
List pgsql-sql
Andrew Smith <laconical@gmail.com> writes:
> Looking to migrate a software product to postgres coming from a home-grown
> DBMS. Whilst the majority of features in postgres are a gazillion times
> better than what our own DBMS has, one feature that I find I am missing is
> the ability to dereference foreign key fields in queries without having to
> join a bunch of tables together.

Aside from the other solutions that have been mentioned, have you
considered querying a view that contains the desired join?

There's no substitute for fixing that nonstandard syntax, in any case.
Even if you could persuade pgsql-hackers that the concept was good
(which I really doubt), they'd not go for using : as a selector.
        regards, tom lane



pgsql-sql by date:

Previous
From: "Mike Sofen"
Date:
Subject: Re: Enhancement to SQL query capabilities
Next
From: Michael Moore
Date:
Subject: recursive WITH nested union ALL with NOCYCLE logic