From: Tom Lane <tgl@sss.pgh.pa.us>
To: Henry House <hajhouse@houseag.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: UNION and rows improperly unified: query optimization question
Date: Mon, 11 Feb 2002 20:18:22 -0500
Message-ID: <18659.1013476702@sss.pgh.pa.us> (raw)
In-Reply-To: <20020211200524.GA17170@wotan>
References: <20020211200524.GA17170@wotan>
Henry House <hajhouse@houseag.com> writes:
> So I run two select and combine them
> using a union statement, but this improperly combines two gl_entry lines th=
> at
> do not differ in amount or transaction ID.
AFAICT you do not want duplicate-row elimination at all. Why don't you
use UNION ALL?
regards, tom lane
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: tgl@sss.pgh.pa.us, hajhouse@houseag.com
Subject: Re: UNION and rows improperly unified: query optimization question
In-Reply-To: <18659.1013476702@sss.pgh.pa.us>
* 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