From: Tom Lane <tgl@sss.pgh.pa.us>
To: jobapply <jobapply@nextmail.ru>
Cc: pgsql-performance@postgresql.org
Subject: Re: Sorting on longer key is faster ?
Date: Mon, 11 Jul 2005 19:47:50 -0400
Message-ID: <12961.1121125670@sss.pgh.pa.us> (raw)
In-Reply-To: <20050709183842.2EABF52820@svr1.postgresql.org>
References: <20050709183842.2EABF52820@svr1.postgresql.org>
"jobapply" <jobapply@nextmail.ru> writes:
> The 2 queries are almost same, but ORDER BY x||t is FASTER than ORDER BY x..
> How can that be possible?
Hmm, how long are the x values? Is it possible many of them are
TOASTed?
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-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, jobapply@nextmail.ru
Subject: Re: Sorting on longer key is faster ?
In-Reply-To: <12961.1121125670@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