Skip to content

Commit 53bb426

Browse files
committed
add cstore_fdw extension
1 parent e8d08d9 commit 53bb426

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

9.5-cstore_fdw/Dockerfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,23 @@ RUN apt-get update \
3838
&& apt-get install -y \
3939
postgresql-$PG_MAJOR=$PG_VERSION \
4040
postgresql-contrib-$PG_MAJOR=$PG_VERSION \
41-
&& rm -rf /var/lib/apt/lists/*
41+
postgresql-server-dev-$PG_MAJOR=$PG_VERSION
42+
43+
# Install cstore_fdw and dependencies
44+
RUN apt-get install -y build-essential pgxnclient
45+
RUN apt-get install -y protobuf-c-compiler libprotobuf-c0-dev && pgxn install cstore_fdw
46+
# RUN echo 'shared_preload_libraries = \'cstore_fdw\'' > /usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample
47+
48+
RUN rm -rf /var/lib/apt/lists/*
4249

4350
# make the sample config easier to munge (and "correct by default")
4451
RUN mv -v /usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample /usr/share/postgresql/ \
4552
&& ln -sv ../postgresql.conf.sample /usr/share/postgresql/$PG_MAJOR/ \
4653
&& sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample
4754

55+
# Extension settings
56+
RUN echo "shared_preload_libraries = 'cstore_fdw'" >> /usr/share/postgresql/postgresql.conf.sample
57+
4858
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
4959

5060
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH

0 commit comments

Comments
 (0)