public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Alvaro Herrera <[email protected]>
Cc: [email protected]
Cc: Joe Conway <[email protected]>
Subject: Re: Proposal for documenting 8.2 VALUES syntax
Date: Fri, 15 Sep 2006 17:49:38 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
Alvaro Herrera <[email protected]> writes:
> ... One likely useful example, if not already covered, is
> select ... FROM ... WHERE op ANY (VALUES ( ... ))
> I tripped over it a couple of days ago and it seems useful and non
> obvious. ISTM it beats the current practice of
> op ANY(ARRAY[ ... ])
> which seems a bit of a kludge.
Unfortunately, we don't optimize the former nearly as well as the latter
:-(. I was thinking of showing an example of a multi-column IN:
where (firstname,lastname) in (values ('joe','blow'), ('anne','smith'), ...
but I don't think we want to encourage people to use it in cases where
a scalar list or ANY(ARRAY) will serve. Maybe next year ;-)
regards, tom lane
view thread (3+ messages)
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: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Proposal for documenting 8.2 VALUES syntax
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox