pgsql: pg_rewind: Replace the hybrid list+array data structure with sim

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_rewind: Replace the hybrid list+array data structure with sim
Date: 2020-11-04 09:22:56
Message-ID: E1kaF0K-0001nH-Ke@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_rewind: Replace the hybrid list+array data structure with simplehash.

Now that simplehash can be used in frontend code, let's make use of it.

Reviewed-by: Kyotaro Horiguchi, Soumyadeep Chakraborty
Discussion: https://www.postgresql.org/message-id/0c5b3783-af52-3ee5-f8fa-6e794061f70d%40iki.fi

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f81e97d0475cd4bc597adc23b665bd84fbf79a0d

Modified Files
--------------
src/bin/pg_rewind/copy_fetch.c | 4 +-
src/bin/pg_rewind/fetch.c | 2 +-
src/bin/pg_rewind/fetch.h | 2 +-
src/bin/pg_rewind/filemap.c | 294 ++++++++++++++++++----------------------
src/bin/pg_rewind/filemap.h | 67 ++++-----
src/bin/pg_rewind/libpq_fetch.c | 4 +-
src/bin/pg_rewind/pg_rewind.c | 14 +-
7 files changed, 176 insertions(+), 211 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2020-11-04 10:27:53 Re: pgsql: Get rid of the dedicated latch for signaling the startup process
Previous Message Heikki Linnakangas 2020-11-04 08:54:57 pgsql: pg_rewind: Move syncTargetDirectory() to file_ops.c