pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Dilip Kumar <dilipbalaut@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Move pg_attribute.attcompression to earlier in struct for reduced size?
Date: Fri, 04 Jun 2021 18:51:00 -0400
Message-ID: <449921.1622847060@sss.pgh.pa.us> (raw)
In-Reply-To: <202106042242.s46x3xz5vtjw@alvherre.pgsql>
References: <202106042242.s46x3xz5vtjw@alvherre.pgsql>

Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> It seems to me that most of the overhead is the function call for
> toast_get_compression_id(), so we should get rid of that.

Nice result.  I'm willing to live with 1.5% slowdown ... IME that's
usually below the noise threshold anyway.

> Now, while this patch does seem to work correctly, it raises a number of
> weird cpluspluscheck warnings, which I think are attributable to the
> new macro definitions.  I didn't look into it closely, but I suppose it
> should be fixable given sufficient effort:

Didn't test, but the first one is certainly fixable by adding a cast,
and I guess the others might be as well.

			regards, tom lane





view thread (73+ messages)  latest in thread

Message-ID: <449921.1622847060@sss.pgh.pa.us>
Permalink:  ../449921.1622847060@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/449921.1622847060@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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org, michael@paquier.xyz, robertmhaas@gmail.com, dilipbalaut@gmail.com, andres@anarazel.de
  Subject: Re: Move pg_attribute.attcompression to earlier in struct for reduced size?
  In-Reply-To: <449921.1622847060@sss.pgh.pa.us>
  References: <202106042242.s46x3xz5vtjw@alvherre.pgsql> <449921.1622847060@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