Skip to content

Commit

Permalink
contrib: re-publish pg_search with loadable library (#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrmiguel authored Aug 7, 2024
1 parent 5731674 commit 627bb05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contrib/pg_search/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ ARG PG_VERSION=15
FROM quay.io/coredb/pgrx-builder:pg${PG_VERSION}-pgrx0.11.1
USER root

ARG RELEASE=v0.7.3
ARG RELEASE=v0.7.6

# Extension build dependencies
RUN apt-get update && apt-get install -y \
build-essential

# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN cargo install cargo-pgrx --version 0.11.0 --locked

# Set default Rust version
RUN /root/.cargo/bin/rustup default stable
RUN /root/.cargo/bin/rustup default 1.75.0-x86_64-unknown-linux-gnu
ARG PG_VERSION=15


# Clone repository
Expand All @@ -27,5 +27,5 @@ RUN git clone https://github.com/paradedb/paradedb.git && \
# Build the extension
RUN cd paradedb && \
cd pg_search && \
cargo pgrx init --pg15 /usr/bin/pg_config && \
cargo pgrx init --pg${PG_VERSION} /usr/bin/pg_config && \
cargo pgrx package
1 change: 1 addition & 0 deletions contrib/pg_search/Trunk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "Full text search over heap tables using the BM25 algorithm."
homepage = "https://www.paradedb.com/"
documentation = "https://github.com/paradedb/paradedb/tree/dev/pg_search"
categories = ["search"]
loadable_libraries = [{ library_name = "pg_search", requires_restart = true }]

[dependencies]
apt = ["libc6"]
Expand Down

0 comments on commit 627bb05

Please sign in to comment.