pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: captainx0r@yahoo.com
Cc: pgsql-performance@postgresql.org
Subject: Re: Sun vs. Mac - gprof output
Date: Thu, 16 Jan 2003 01:11:48 -0500
Message-ID: <12202.1042697508@sss.pgh.pa.us> (raw)
In-Reply-To: <20030115172250.54953.qmail@web21110.mail.yahoo.com>
References: <20030115172250.54953.qmail@web21110.mail.yahoo.com>

CaptainX0r <captainx0r@yahoo.com> writes:
>    %  cumulative    self              self    total          
>  time   seconds   seconds    calls  ms/call  ms/call name    
>  15.8     111.61   111.61                            rl_signal_handler [5]
>   4.3     142.18    30.57                            rl_sigwinch_handler [6]
>   1.9     155.42    13.24                            rl_set_sighandler [8]
>   1.9     168.52    13.10                            rl_maybe_set_sighandler
> [9]
>   1.1     176.37     7.85                            _rl_next_macro_key [11]
>   0.9     182.38     6.01                            rl_read_key [12]
>   0.8     188.07     5.69                            rl_backward_kill_line [13]

All of these names correspond to internal routines in libreadline.

It'd not be surprising for libreadline to suck a good deal of the
runtime of psql ... but I don't believe the backend will call it at all.
So, either this trace is erroneous, or you profiled the wrong process
(client instead of backend), or there's something truly weird going on.

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <12202.1042697508@sss.pgh.pa.us>
Permalink:  ../12202.1042697508@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12202.1042697508@sss.pgh.pa.us

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, captainx0r@yahoo.com
  Subject: Re: Sun vs. Mac - gprof output
  In-Reply-To: <12202.1042697508@sss.pgh.pa.us>
  References: <20030115172250.54953.qmail@web21110.mail.yahoo.com> <12202.1042697508@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