Skip to content

Commit 9417e30

Browse files
committed
fix: patch timescaledb to compile for orioledb
1 parent 08e4e1a commit 9417e30

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

docker/orioledb/Dockerfile

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,28 @@ RUN tar -xvf /tmp/timescaledb.tar.gz -C /tmp && \
310310
# Build from source
311311
WORKDIR /tmp/timescaledb-${timescaledb_release}/build
312312
RUN cmake -DAPACHE_ONLY=1 ..
313+
# error: too few arguments to function ‘table_multi_insert’
314+
RUN sed -i \
315+
-e "358s|^| bool *insert_indexes = NULL;|g" \
316+
-e "364s|);|, insert_indexes);|g" \
317+
-e "930s|^| bool *insert_indexes = NULL;|g" \
318+
-e "1115s|);|, insert_indexes);|g" \
319+
-e "1134s|);|, insert_indexes);|g" \
320+
../src/copy.c
321+
# error: static declaration of ‘replace_nestloop_params’ follows non-static declaration
322+
RUN sed -i \
323+
-e "48s|static ||g" \
324+
-e "943s|static ||g" \
325+
../src/import/planner.c
326+
# error: too few arguments to function ‘table_tuple_insert’
327+
RUN sed -i \
328+
-e "1672s|*/|*/ bool *insert_indexes = NULL;|g" \
329+
-e "1673s|);|, insert_indexes);|g" \
330+
-e "1971s|*/|*/ bool *insert_indexes = NULL;|g" \
331+
-e "1981s|);|, insert_indexes);|g" \
332+
-e "2559s|}|} bool *insert_indexes = NULL;|g" \
333+
-e "2567s|);|, insert_indexes);|g" \
334+
../src/nodes/hypertable_modify.c
313335
RUN --mount=type=cache,target=/ccache,from=public.ecr.aws/supabase/postgres:ccache \
314336
make -j$(nproc)
315337
# Create debian package
@@ -777,7 +799,7 @@ COPY --from=pgjwt-source /tmp/*.deb /tmp/
777799
COPY --from=pgsql-http-source /tmp/*.deb /tmp/
778800
COPY --from=plpgsql_check-source /tmp/*.deb /tmp/
779801
COPY --from=pg-safeupdate-source /tmp/*.deb /tmp/
780-
# COPY --from=timescaledb-source /tmp/*.deb /tmp/
802+
COPY --from=timescaledb-source /tmp/*.deb /tmp/
781803
COPY --from=wal2json-source /tmp/*.deb /tmp/
782804
# COPY --from=pljava /tmp/*.deb /tmp/
783805
COPY --from=plv8 /tmp/*.deb /tmp/

0 commit comments

Comments
 (0)