From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ben Kim <bkim@tamu.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: compare two rows
Date: Tue, 12 Oct 2010 17:11:17 -0400
Message-ID: <6900.1286917877@sss.pgh.pa.us> (raw)
In-Reply-To: <20101012201747.GA720@tamu.edu>
References: <AANLkTimX4BNmUm7KJ72FUBu+FgcKDxZdMcK4FkTfOmwA@mail.gmail.com>
<4CB479DB02000025000368A9@gw.wicourts.gov>
<20101012201747.GA720@tamu.edu>
Ben Kim <bkim@tamu.edu> writes:
> What is the best way to compare two rows from within psql cli client?
In 8.4 and up you can just compare the row values, eg
select x.* = y.*
if x and y are known to be of the same rowtype.
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, bkim@tamu.edu
Subject: Re: compare two rows
In-Reply-To: <6900.1286917877@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