Re: Slow index creation - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject Re: Slow index creation
Date
Msg-id 20210218174948.GA17102@depesz.com
Whole thread Raw
In response to Re: Slow index creation  (Michael Lewis <mlewis@entrata.com>)
List pgsql-general
On Thu, Feb 18, 2021 at 10:24:25AM -0700, Michael Lewis wrote:
>   [1]https://www.depesz.com/2010/03/18/profiling-stored-proceduresfunctions/
> 
> Thanks for this reference. I enjoy your blog, but haven't made the time to read all the archives somehow. Stuff
doesn'tstick very
 
> well when it isn't yet "needed" info besides.
> I have seen overhead from 'raise notice' in small functions that are sometimes called many thousands of times in a
singlequery, but
 
> hadn't done the test to verify if the same overhead still exists for raise debug or another level below
both client_min_messages
> and log_min_messages. Using your examples, I saw about .006 ms for each call to RAISE DEBUG with a client/log_min as
notice/warning.

Sure, this overhead is definitely possible, but kinda besides the point
- there will be some slowdowns in other places, and it will be good to
track them.
That's why I suggested to do it on small sample of data.

Best regards,

depesz




pgsql-general by date:

Previous
From: Michael Lewis
Date:
Subject: Re: Slow index creation
Next
From: Magnus Hagander
Date:
Subject: Re: How to post to this mailing list from a web based interface