Skip site navigation (1) Skip section navigation (2)

Re: external sort performance

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: external sort performance
Date: 2011-11-18 00:46:05
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
> The first log statement is expected. The second log statement, however, isn't.
> The total table size is (as noted earlier) about 5GB and, in fact, fit
> into one nice hash table (approx 15GB in size).
> Is the sorting that is necessary for index creation unable to use a
> hash table? (This is a standard btree index).

How big is the source table?  You're not sorting the *result* table,
you're sorting the source table if you're summarizing it.

If the original source data is only 5GB, I'd check your code for a
cartesian join.

Josh Berkus
PostgreSQL Experts Inc.

In response to

pgsql-performance by date

Next:From: Greg MatthewsDate: 2011-11-18 01:07:51
Subject: probably cause (and fix) for floating-point assist faults on itanium
Previous:From: Tom LaneDate: 2011-11-18 00:33:49
Subject: Re: external sort performance

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group