Skip to content
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

Add pg_bestmatch in WarpSQL #150

Closed
singhalkarun opened this issue Aug 9, 2024 · 1 comment
Closed

Add pg_bestmatch in WarpSQL #150

singhalkarun opened this issue Aug 9, 2024 · 1 comment
Assignees

Comments

@singhalkarun
Copy link
Collaborator

https:/tensorchord/pg_bestmatch.rs

@singhalkarun
Copy link
Collaborator Author

Cracked pg_bestmatch, yet to be integrated as part of WarpSQL. Sharing Dockerfile for unblocking dev team

FROM samagragovernance/postgres:1.0.1-pg15

WORKDIR /pgrx

RUN apk update
RUN apk upgrade 
RUN apk add git curl build-base clang llvm
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.profile && \
    source ~/.profile && \
    rustup update stable && \
    git clone --branch main https:/tensorchord/pg_bestmatch.rs.git && \
    cd pg_bestmatch.rs && \
    cargo install --locked cargo-pgrx --version 0.12.0-alpha.1 &&\
    cargo pgrx init --pg15=$(which pg_config) && \
    RUSTFLAGS="-C target-feature=-crt-static" cargo pgrx install --release

@KDwevedi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants