pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Michael Lewis <mlewis@entrata.com>
Cc: Paul van der Linden <paul.doskabouter@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Slow index creation
Date: Thu, 18 Feb 2021 18:49:48 +0100
Message-ID: <20210218174948.GA17102@depesz.com> (raw)
In-Reply-To: <CAHOFxGq9_7i_BjLhmCEu4TCugR6ktcMUtwhaYT431fE_6D9QBg@mail.gmail.com>
References: <CAEC-EqBdBNeBd+ssUZbuKPyd4gTE2sjMFEmioSCa=2bsHtJvMA@mail.gmail.com>
	<20210217184808.GA14032@depesz.com>
	<CAEC-EqCqanUZMG0Y++sb6nKBjsMsZhK6cOVsMjDCGX2G9_64zg@mail.gmail.com>
	<20210218091553.GA25223@depesz.com>
	<CAHOFxGq9_7i_BjLhmCEu4TCugR6ktcMUtwhaYT431fE_6D9QBg@mail.gmail.com>

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't stick 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 single query, 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






view thread (13+ messages)  latest in thread

Message-ID: <20210218174948.GA17102@depesz.com>
Permalink:  ../20210218174948.GA17102@depesz.com/
Also on:    postgresql.org/message-id/20210218174948.GA17102@depesz.com

 · 

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-general@postgresql.org
  Cc: depesz@depesz.com, mlewis@entrata.com, paul.doskabouter@gmail.com
  Subject: Re: Slow index creation
  In-Reply-To: <20210218174948.GA17102@depesz.com>
  References: <CAEC-EqBdBNeBd+ssUZbuKPyd4gTE2sjMFEmioSCa=2bsHtJvMA@mail.gmail.com> <20210217184808.GA14032@depesz.com> <CAEC-EqCqanUZMG0Y++sb6nKBjsMsZhK6cOVsMjDCGX2G9_64zg@mail.gmail.com> <20210218091553.GA25223@depesz.com> <CAHOFxGq9_7i_BjLhmCEu4TCugR6ktcMUtwhaYT431fE_6D9QBg@mail.gmail.com> <20210218174948.GA17102@depesz.com>

* 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