not reducing same values in IN

From: vojtech(at)hafro(dot)is
To: pgsql-hackers(at)postgresql(dot)org
Subject: not reducing same values in IN
Date: 2003-09-12 14:32:28
Message-ID: 684b7d47.0309120632.2e8b8bff@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello,

I'd like to ask some pg developer how complicated task would
be to patch query processing (most likely parser) to allow
for the following non-sql change. For a certain scientific
application where a bootstrapping of data is needed I would
like to select from a database "with replacement", i.e.
to be able to send "SELECT col FROM tab WHERE col IN (5,5)"
and receive two line of output (two fives) where only one
is stored in the database. One way is to workaround by
with SELECT ... col IN (5) UNION ALL SELECT ... col IN (5),
for complex queries however, I run into difficulties.
Would a rather small patch at some point in the source code
made this possible or it sounds a bit unrealistic?
Thank you.

--Vojtech

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2003-09-12 14:33:16 Re: massive quotes?
Previous Message Tom Lane 2003-09-12 14:10:20 Re: massive quotes?