Skip to content

Commit fd22ef8

Browse files
committed
Remove libpq build dependency
The TSL library was linked against libpq, but no client library functions were used. The only remaining reference was a stale include of libpq-fe.h in compression/api.c. Drop both so the build no longer requires libpq.
1 parent cbf8e76 commit fd22ef8

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

tsl/src/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ target_include_directories(${TSL_LIBRARY_NAME} PRIVATE ${PG_INCLUDEDIR})
3535
target_compile_definitions(${TSL_LIBRARY_NAME} PUBLIC TS_TSL)
3636
target_compile_definitions(${TSL_LIBRARY_NAME} PUBLIC TS_SUBMODULE)
3737

38-
if(WIN32)
39-
target_link_libraries(${TSL_LIBRARY_NAME} ${PG_LIBDIR}/libpq.lib)
40-
else()
41-
target_link_libraries(${TSL_LIBRARY_NAME} pq)
42-
endif()
43-
4438
install(TARGETS ${TSL_LIBRARY_NAME} DESTINATION ${PG_PKGLIBDIR})
4539

4640
# if (WIN32) target_link_libraries(${PROJECT_NAME}

tsl/src/compression/api.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <commands/event_trigger.h>
1818
#include <commands/tablecmds.h>
1919
#include <commands/trigger.h>
20-
#include <libpq-fe.h>
2120
#include <miscadmin.h>
2221
#include <nodes/makefuncs.h>
2322
#include <nodes/parsenodes.h>

0 commit comments

Comments
 (0)