pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: andrew <andrew.ylzhou@gmail.com>
To: pgsql-sql@postgresql.org
Subject: filtering after join
Date: Wed, 25 Jan 2006 18:27:33 +0100
Message-ID: <29d3b0b90601250927o2a5ee6e6mc33a7647da4438ce@mail.gmail.com> (raw)

I want to use a UDF to filter tuples t that are generated after a join.
More specifially, I have a UDF foo(record), which computes a value for
a given tuple.  I can do the filtering before the join. e.g.:

select * from A, B where foo(A)<2 and A.a=B.b;

But I want to apply foo() to the tuples generated by the join
operation. How can I do that?
Thanks!

--
andrew



view thread (14+ messages)  latest in thread

Message-ID: <29d3b0b90601250927o2a5ee6e6mc33a7647da4438ce@mail.gmail.com>
Permalink:  ../29d3b0b90601250927o2a5ee6e6mc33a7647da4438ce@mail.gmail.com/
Also on:    postgresql.org/message-id/29d3b0b90601250927o2a5ee6e6mc33a7647da4438ce@mail.gmail.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: andrew.ylzhou@gmail.com
  Subject: Re: filtering after join
  In-Reply-To: <29d3b0b90601250927o2a5ee6e6mc33a7647da4438ce@mail.gmail.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