Re: capturing/viewing sort_mem utilization on a per query basis

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Lonni J Friedman <netllama(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: capturing/viewing sort_mem utilization on a per query basis
Date: 2005-02-02 18:23:11
Message-ID: 682.1107368591@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Lonni J Friedman <netllama(at)gmail(dot)com> writes:
> I'm afraid i'm not clear on what i'm supposed to be checking here.
> Which conditions should I be looking at? thanks.

Well, for instance,

>> -> Hash (cost=108.96..108.96 rows=28 width=24)
>> -> Index Scan using mntr_subscr_usrevt on mntr_subscription sfmain_monitoringsubscriptio0 (cost=0.00..108.96 rows=28 width=24)
>> Index Cond: (((user_id)::text = 'user1187'::text) AND ((event_operation)::text = 'update'::text))

select count(*) from mntr_subscription where (((user_id)::text =
'user1187'::text) AND ((event_operation)::text = 'update'::text));

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-02-02 18:25:03 Re: plpython.so
Previous Message Thomas F.O'Connell 2005-02-02 18:21:00 Re: PL/PgSQL, Inheritance, Locks, and Deadlocks