Skip to content

Commit 1119cf9

Browse files
author
王平10304955
committed
Extending gpfdist in Cloudberry Database to Support SFTP Protocol for Data Ingestion
gpfdist is a file distribution program in Cloudberry that can parallel load external data into the database. However, it has the drawback that data files must reside on the same machine as the tool. Therefore,extending it to support the SFTP protocol can address the above drawback and enable loading files from a remote server. Add the libssh2 library and specify the link. Implement remote data file reading using the libssh2 library with gpfdist. Extending gpfdist in Cloudberry Database to Support SFTP Protocol for Data Ingestion -- add LIBSSH2 macro ADD LIBSSH2 macro Label the SFTP-related code to indicate its characteristics.
1 parent f7cbca1 commit 1119cf9

File tree

10 files changed

+763
-47
lines changed

10 files changed

+763
-47
lines changed

src/backend/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ LIBS := $(filter-out -lreadline -ledit -ltermcap -lncurses -lcurses, $(LIBS))
6767

6868
# Cloudberry uses threads in the backend
6969
LIBS := $(LIBS) -lpthread
70+
LIBS := $(LIBS) -lssh2
7071

7172
ifeq ($(with_systemd),yes)
7273
LIBS += -lsystemd

src/backend/utils/misc/fstream/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ subdir = src/backend/utils/misc/fstream
99
top_builddir = ../../../../..
1010
include $(top_builddir)/src/Makefile.global
1111

12-
override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
12+
LDFLAGS += -lssh2
13+
14+
override CPPFLAGS := -I$(srcdir) $(CPPFLAGS) $(CPPFLAGS)
1315

1416
OBJS = fstream.o gfile.o
1517

0 commit comments

Comments
 (0)