-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
contrib: add pg_search
#499
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
79551c4
contrib: add `pg_search`
vrmiguel 44e23eb
Merge branch 'main' into pg_search
vrmiguel 566b70d
Merge branch 'main' into pg_search
sjmiller609 7657a63
Merge branch 'main' into pg_search
vrmiguel 206779b
Merge branch 'main' into pg_search
vrmiguel 6de629f
Merge branch 'main' into pg_search
ianstanton b157c6f
Update Dockerfile
ianstanton 498c754
Merge branch 'main' into pg_search
vrmiguel 057cd6c
Merge branch 'main' into pg_search
vrmiguel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
ARG PG_VERSION=15 | ||
FROM quay.io/coredb/pgrx-builder:pg${PG_VERSION}-pgrx0.9.7 | ||
USER root | ||
|
||
ARG RELEASE=v0.2.21 | ||
|
||
# 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 | ||
|
||
# Set default Rust version | ||
RUN /root/.cargo/bin/rustup default stable && /root/.cargo/bin/rustup override set 1.73.0 | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/paradedb/paradedb.git && \ | ||
cd paradedb && \ | ||
git fetch --tags && \ | ||
git fetch --depth 1 origin tag ${RELEASE} && \ | ||
git checkout ${RELEASE} | ||
|
||
# Build the extension | ||
RUN cd paradedb && \ | ||
cd pg_search && \ | ||
cargo pgrx init --pg15 /usr/bin/pg_config && \ | ||
cargo pgrx package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[extension] | ||
name = "pg_search" | ||
version = "0.4.0" | ||
repository = "https://github.com/paradedb/paradedb/tree/dev/pg_search" | ||
license = "AGPL-3.0" | ||
description = "Hybrid search for PostgreSQL" | ||
homepage = "https://www.paradedb.com/" | ||
documentation = "https://github.com/paradedb/paradedb/tree/dev/pg_search" | ||
categories = ["search"] | ||
|
||
[dependencies] | ||
apt = ["libc6"] | ||
|
||
[build] | ||
postgres_version = "15" | ||
platform = "linux/amd64" | ||
dockerfile = "Dockerfile" | ||
install_command = """ | ||
cd paradedb/ | ||
mv target/release/pg_search-pg15/usr/lib/postgresql/15/lib/* /usr/lib/postgresql/15/lib | ||
mv target/release/pg_search-pg15/usr/share/postgresql/15/extension/* /usr/share/postgresql/15/extension | ||
""" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these not already in pgrx-builder:pg?