Skip to content

Commit

Permalink
[OSS ONLY] Update RPM spec file to rename pg_dump/pg_dumpall binaries (
Browse files Browse the repository at this point in the history
…babelfish-for-postgresql#243)

This commit makes the following changes:
1. Updates the logic to rename the names of pg_dump/pg_dumpall binaries.
2. Newer version string:
bbf_dumpall (pg_dumpall compatible with Babelfish for PostgreSQL) 15.4
bbf_dump (pg_dump compatible with Babelfish for PostgreSQL) 15.4
3. bbf_dumpall will reference bbf_dump instead of pg_dump binary.

Signed-off-by: Rishabh Tanwar [email protected]
  • Loading branch information
rishabhtanwar29 authored and priyansx committed Nov 22, 2023
1 parent 5d35657 commit a011fbb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions BabelfishDump.spec
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ This package provides utilities to dump a Babelfish database.
%prep
%setup -q -n %{name}

# Update binary versions
# Change binary names
sed -i "s/pg_dump/bbf_dump/g" src/bin/pg_dump/pg_dumpall.c
sed -i "s/pg_dump (PostgreSQL)/bbf_dump (pg_dump compatible with Babelfish for PostgreSQL)/g" src/bin/pg_dump/pg_dump.c
sed -i "s/pg_dumpall (PostgreSQL)/bbf_dumpall (pg_dumpall compatible with Babelfish for PostgreSQL)/g" src/bin/pg_dump/pg_dumpall.c
sed -i "s/bbf_dump (PostgreSQL)/bbf_dump (pg_dump compatible with Babelfish for PostgreSQL)/g" src/bin/pg_dump/pg_dumpall.c
sed -i "s/bbf_dumpall (PostgreSQL)/bbf_dumpall (pg_dumpall compatible with Babelfish for PostgreSQL)/g" src/bin/pg_dump/pg_dumpall.c

%build
# Building BabelfishDump
Expand Down

0 comments on commit a011fbb

Please sign in to comment.