From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jean-Yves MARTIN <Jean-Yves.Martin@ec-nantes.fr>
Cc: pgsql-bugs@postgresql.org
Subject: Re: using WHERE and AND in SELECT
Date: Thu, 08 Jun 2017 10:10:39 -0400
Message-ID: <11788.1496931039@sss.pgh.pa.us> (raw)
In-Reply-To: <27B4C0D6-6744-4F25-9DA5-2BAE3AF8B6A3@ec-nantes.fr>
References: <27B4C0D6-6744-4F25-9DA5-2BAE3AF8B6A3@ec-nantes.fr>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Jean-Yves MARTIN <Jean-Yves.Martin@ec-nantes.fr> writes:
> We had an issue when writing a SELECT request : we write:
> select personne_id from personne inner join conducteur on (conducteur.personne_id=personne.personne_id) and personne.personne_id<20
There's no requirement for parentheses around the JOIN condition,
so that's perfectly legal.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, Jean-Yves.Martin@ec-nantes.fr
Subject: Re: using WHERE and AND in SELECT
In-Reply-To: <11788.1496931039@sss.pgh.pa.us>
References: <27B4C0D6-6744-4F25-9DA5-2BAE3AF8B6A3@ec-nantes.fr> <11788.1496931039@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