Skip to content

Commit

Permalink
Add uuid-ossp to the supported extensions (#181)
Browse files Browse the repository at this point in the history
* Add uuid-ossp to the supported extensions

Also update compile flags to `-O2` to trade compile time for PostgreSQL performance, and removes --enable-cassert.
  • Loading branch information
MMeent authored and tristan957 committed Feb 6, 2024
1 parent fadb421 commit 561bee3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ FROM neondatabase/compute-tools:$COMPUTE_TOOLS_TAG AS compute-deps
FROM debian:buster-slim AS build-deps

RUN apt-get update && apt-get -yq install automake libtool build-essential bison flex libreadline-dev zlib1g-dev libxml2-dev \
libcurl4-openssl-dev
libcurl4-openssl-dev libossp-uuid-dev

#
# Image with built Postgres
Expand All @@ -30,7 +30,7 @@ COPY . /pg/

# Build and install Postgres locally
RUN mkdir /pg/compute_build && cd /pg/compute_build && \
../configure CFLAGS='-O0 -g3' --prefix=$(pwd)/postgres_bin --enable-debug --enable-cassert --enable-depend && \
../configure CFLAGS='-O2 -g3' --prefix=$(pwd)/postgres_bin --enable-debug --enable-uuid=ossp && \
# Install main binaries and contribs
make MAKELEVEL=0 -j $(getconf _NPROCESSORS_ONLN) -s install && \
make MAKELEVEL=0 -j $(getconf _NPROCESSORS_ONLN) -s -C contrib/ install && \
Expand Down

0 comments on commit 561bee3

Please sign in to comment.