pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Galbavy <peter.galbavy@knowtion.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: weighting (the results of) a query ?
Date: Tue, 7 Jan 2003 16:25:43 -0000
Message-ID: <023f01c2b669$6ce39270$4528a8c0@cblan.mblox.com> (raw)
References: <001301c2b4a6$f969b360$36bd10ac@walrus>
	<021001c2b666$752c1d60$4528a8c0@cblan.mblox.com>
	<13705.1041956070@sss.pgh.pa.us>

> Most likely you should write UNION ALL, not UNION.  As given, the query
> will go through a pass of attempted duplicate-row-elimination, which is
> almost certainly not what you want.

Not sure - what I want is only one row per real row but ordered as per the
constants. When you say duplicate-row-elimination do you mean including the
'constant' weighting, in which case UNION ALL is probably right. At the
moment, the dataset returned appears correctly de-duplicated.

What I mean is when an image row has both 'eat static' in the caption and as
a keyword, I want it returned only once...

Peter




view thread (6+ messages)  latest in thread

Message-ID: <023f01c2b669$6ce39270$4528a8c0@cblan.mblox.com>
Permalink:  ../023f01c2b669$6ce39270$4528a8c0@cblan.mblox.com/
Also on:    postgresql.org/message-id/023f01c2b669$6ce39270$4528a8c0@cblan.mblox.com

 · 

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: pgsql-sql@postgresql.org
  Cc: peter.galbavy@knowtion.net, tgl@sss.pgh.pa.us
  Subject: Re: weighting (the results of) a query ?
  In-Reply-To: <023f01c2b669$6ce39270$4528a8c0@cblan.mblox.com>

* 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