Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ concurrency:
cancel-in-progress: true

env:
EXTENSION_LIST: adbc;azure;delta;duckdb;fts;httpfs;iceberg;json;llm;neo4j;postgres;sqlite;unity_catalog;vector;algo
# pg_client requires libpq (PostgreSQL) at build time and a running
# PostgreSQL instance at test time (provided by run_pgembed_fixture.py).
EXTENSION_LIST: adbc;azure;delta;duckdb;fts;httpfs;iceberg;json;llm;neo4j;pg_client;postgres;sqlite;unity_catalog;vector;algo

jobs:
# ─────────────────────────────────────────────────────────────────
Expand Down Expand Up @@ -206,7 +208,8 @@ jobs:
dnf install -y 'dnf-command(config-manager)'
dnf config-manager --set-enabled powertools
dnf install -y cmake ninja-build python3 python3-pip git wget unzip \
gcc-toolset-13 openssl3 openssl3-devel pkg-config
gcc-toolset-13 openssl3 openssl3-devel pkg-config \
libpq libpq-devel

- name: Install uv
working-directory: ladybug
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,4 @@ add_extension_if_enabled("llm")
add_extension_if_enabled("httpfs")
add_extension_if_enabled("neo4j")
add_extension_if_enabled("algo")
add_extension_if_enabled("pg_client")
2 changes: 1 addition & 1 deletion extension_config.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(EXTENSION_LIST adbc azure delta duckdb fts httpfs iceberg json llm postgres sqlite unity_catalog vector neo4j algo)
set(EXTENSION_LIST adbc azure delta duckdb fts httpfs iceberg json llm pg_client postgres sqlite unity_catalog vector neo4j algo)

#set(EXTENSION_STATIC_LINK_LIST fts)
foreach(extension IN LISTS EXTENSION_STATIC_LINK_LIST)
Expand Down
1 change: 1 addition & 0 deletions pg_client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
19 changes: 19 additions & 0 deletions pg_client/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
find_package(PostgreSQL REQUIRED)

include_directories(
${PROJECT_SOURCE_DIR}/src/include
${CMAKE_BINARY_DIR}/src/include
src/include
${PostgreSQL_INCLUDE_DIRS})

add_subdirectory(src/connector)
add_subdirectory(src/storage)
add_subdirectory(src/main)
add_subdirectory(src/catalog)
add_subdirectory(src/function)

build_extension_lib(${BUILD_STATIC_EXTENSION} "pg_client")

target_link_libraries(lbug_${EXTENSION_LIB_NAME}_extension
PRIVATE
${PostgreSQL_LIBRARIES})
9 changes: 9 additions & 0 deletions pg_client/src/catalog/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
add_library(lbug_pg_client_catalog
OBJECT
pg_client_catalog.cpp
pg_client_table_catalog_entry.cpp)
add_dependencies(lbug_pg_client_catalog lbug_common lbug_catalog)

set(PG_CLIENT_EXTENSION_OBJECT_FILES
${PG_CLIENT_EXTENSION_OBJECT_FILES} $<TARGET_OBJECTS:lbug_pg_client_catalog>
PARENT_SCOPE)
Loading
Loading