pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Christoph Berg <myon@debian.org>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Andres Freund <andres@anarazel.de>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: compute_query_id and pg_stat_statements
Date: Thu, 13 May 2021 21:47:02 -0400
Message-ID: <1787238.1620956822@sss.pgh.pa.us> (raw)
In-Reply-To: <CAOBaU_aim8mKxDsX+etUzFF7M8SSP3UDL9J98a6x2USXFNgHrw@mail.gmail.com>
References: <20210513015700.fp33q5rfvwl2ahfx@nol>
	<20210513030652.GB11075@momjian.us>
	<20210513031613.j47baglf6xl3mgbs@nol>
	<20210513033332.GF11075@momjian.us>
	<20210513040342.fouh7ryglrfgxglu@nol>
	<20210513144143.GG11075@momjian.us>
	<YJ1kYeKvYBk0cxti@msg.df7cb.de>
	<20210513175947.GP11075@momjian.us>
	<20210513180706.GG20766@tamriel.snowman.net>
	<1579535.1620930549@sss.pgh.pa.us>
	<20210513191159.GA22929@momjian.us>
	<CAOBaU_aim8mKxDsX+etUzFF7M8SSP3UDL9J98a6x2USXFNgHrw@mail.gmail.com>

Julien Rouhaud <rjuju123@gmail.com> writes:
> On Fri, May 14, 2021 at 3:12 AM Bruce Momjian <bruce@momjian.us> wrote:
>> I was surprised it was ~2%.

> Just to be clear, the 2% was a worst case scenario, ie. a very fast
> read-only query on small data returning a single row.  As soon as you
> get something more realistic / expensive the overhead goes away.

Of course, for plenty of people that IS the realistic scenario that
they care about max performance for.

			regards, tom lane





view thread (158+ messages)  latest in thread

Message-ID: <1787238.1620956822@sss.pgh.pa.us>
Permalink:  ../1787238.1620956822@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1787238.1620956822@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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rjuju123@gmail.com, bruce@momjian.us, sfrost@snowman.net, myon@debian.org, pavel.stehule@gmail.com, horikyota.ntt@gmail.com, magnus@hagander.net, masao.fujii@oss.nttdata.com, michael@paquier.xyz, andres@anarazel.de, alvherre@alvh.no-ip.org, peter.eisentraut@enterprisedb.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: compute_query_id and pg_stat_statements
  In-Reply-To: <1787238.1620956822@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