pgsql: Rename bbstreamer to astreamer.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Rename bbstreamer to astreamer.
Date: 2024-08-05 14:01:28
Message-ID: E1sayHA-002nf0-30@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Rename bbstreamer to astreamer.

I (rhaas) intended "bbstreamer" to stand for "base backup streamer,"
but that implies that this infrastructure can only ever be used by
pg_basebackup. In fact, it is a generally useful way of streaming
data from a tar or compressed tar file, and it could be extended to
work with other archive formats as well if we ever wanted to do that.
Hence, rename it to "astreamer" (archive streamer) in preparation for
reusing the infrastructure from pg_verifybackup (and perhaps
eventually also other utilities, such as pg_combinebackup or
pg_waldump).

This is purely a renaming commit. Comment adjustments and relocation
of the actual code to someplace from which it can be reused are left
to future commits.

Amul Sul, reviewed by Sravan Kumar and by me.

Discussion: http://postgr.es/m/CAAJ_b94StvLWrc_p4q-f7n3OPfr6GhL8_XuAg2aAaYZp1tF-nw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3c905698114d6c4de4dc607c110c27e0723ae70c

Modified Files
--------------
src/bin/pg_basebackup/Makefile | 12 +-
src/bin/pg_basebackup/astreamer.h | 226 ++++++++++++++
.../{bbstreamer_file.c => astreamer_file.c} | 152 +++++-----
.../{bbstreamer_gzip.c => astreamer_gzip.c} | 156 +++++-----
.../{bbstreamer_inject.c => astreamer_inject.c} | 156 +++++-----
.../{bbstreamer_lz4.c => astreamer_lz4.c} | 178 +++++------
.../{bbstreamer_tar.c => astreamer_tar.c} | 324 ++++++++++-----------
.../{bbstreamer_zstd.c => astreamer_zstd.c} | 166 +++++------
src/bin/pg_basebackup/bbstreamer.h | 226 --------------
src/bin/pg_basebackup/meson.build | 12 +-
src/bin/pg_basebackup/nls.mk | 12 +-
src/bin/pg_basebackup/pg_basebackup.c | 104 +++----
src/tools/pgindent/typedefs.list | 26 +-
13 files changed, 875 insertions(+), 875 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2024-08-05 14:59:22 pgsql: Move recovery injector astreamer to a separate header file.
Previous Message Masahiko Sawada 2024-08-05 13:07:25 pgsql: Restrict accesses to non-system views and foreign tables during