pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Rewrite PageIndexDeleteNoCompact into a form that only deletes 1
Date: Fri, 09 Sep 2016 23:01:08 +0000
Message-ID: <E1biUnE-0004MI-3S@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Rewrite PageIndexDeleteNoCompact into a form that only deletes 1 tuple.

The full generality of deleting an arbitrary number of tuples is no longer
needed, so let's save some code and cycles by replacing the original coding
with an implementation based on PageIndexTupleDelete.

We can always get back the old code from git if we need it again for new
callers (though I don't care for its willingness to mess with line pointers
it wasn't told to mess with).

Discussion: <552.1473445163@sss.pgh.pa.us>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/24992c6db9fd40f342db1f22747ec9e56483796d

Modified Files
--------------
src/backend/access/brin/brin_pageops.c |   2 +-
src/backend/access/brin/brin_xlog.c    |   4 +-
src/backend/storage/page/bufpage.c     | 194 ++++++++++++---------------------
src/include/storage/bufpage.h          |   3 +-
4 files changed, 74 insertions(+), 129 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1biUnE-0004MI-3S@gemulon.postgresql.org>
Permalink:  ../E1biUnE-0004MI-3S@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1biUnE-0004MI-3S@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Rewrite PageIndexDeleteNoCompact into a form that only deletes 1
  In-Reply-To: <E1biUnE-0004MI-3S@gemulon.postgresql.org>
  References: <E1biUnE-0004MI-3S@gemulon.postgresql.org>

* 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