pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-sql@postgresql.org
Cc: andrew <andrew.ylzhou@gmail.com>
Subject: Re: filtering after join
Date: Thu, 26 Jan 2006 12:22:34 +0100
Message-ID: <200601261222.34906.peter_e@gmx.net> (raw)
In-Reply-To: <29d3b0b90601260254n10d2c9aby77651744337020f8@mail.gmail.com>
References: <29d3b0b90601250927o2a5ee6e6mc33a7647da4438ce@mail.gmail.com>
	<200601261127.05442.peter_e@gmx.net>
	<29d3b0b90601260254n10d2c9aby77651744337020f8@mail.gmail.com>

andrew wrote:
> But the function foo() would produce different values for the two
> queries, so the result will be different.
> A simple example is foo() computes the sum of all the integer fields
> of the input record.

OK, I see now where you're getting at.  You want to combine the record 
type of A and B into one.  Then the proposed solution is right.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



view thread (14+ messages)  latest in thread

Message-ID: <200601261222.34906.peter_e@gmx.net>
Permalink:  ../200601261222.34906.peter_e@gmx.net/
Also on:    postgresql.org/message-id/200601261222.34906.peter_e@gmx.net

 · 

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_e@gmx.net, andrew.ylzhou@gmail.com
  Subject: Re: filtering after join
  In-Reply-To: <200601261222.34906.peter_e@gmx.net>

* 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