Closed dataselfservice closed 1 year ago
pg_hashids
was not udpated to latest. This solved the problem:
RUN apk add --no-cache --virtual .build-deps build-base postgresql-dev clang15 llvm15 ; \
wget -qO- https://github.com/iCyberon/pg_hashids/archive/cd0e1b31d52b394a0df64079406a14a4f7387cd6.tar.gz | tar xzf - -C /tmp && \
make -C /tmp/pg_hashids-cd0e1b31d52b394a0df64079406a14a4f7387cd6 && \
make -C /tmp/pg_hashids-cd0e1b31d52b394a0df64079406a14a4f7387cd6 install && \
rm -rf /tmp/pg_hashids-cd0e1b31d52b394a0df64079406a14a4f7387cd6 && \
apk del .build-deps
Hi,
(NOTE this is also posted here https://github.com/docker-library/postgres/issues/1122#issue-1896632578)
I'm running a kubernetes instance of
15.4-alpine3.18
, with modified imageIMG_POSTGRES_TAG
added withpg_hashids
via followingDockerfile
:Deployed to the cluster with:
The issue is that a trigger function which generates hashes during insert, miss-behaves and generates a wrong hash ending with a space.
Reproduce it by running the following SQL:
Run it with:
cat test.sql | psq -U testdb
.Output looks like:
The issue is the space in the end of "zmnb ". Utilizing
myfunc_fix()
which basically runs separatedUPDATE
, works i.e. generates hashes without the trailing space. But I am not at all satisfied and I would like to understand what is the root cause?!?!I noticed the
WARNING: database "testdb" has no actual collation version, but a version was recorded
and I am not sure how that is realted (I do not really know what is the impact of that.Any help or ideas?
Cheers, DataSelfService team