This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
So it's impossible to test it on Travis for now 😥
PostgreSQL is build with default Python path, aka
'PYTHON=/usr/bin/python'
(checked usingpg_config
, which is 2.7.6)But with virtualenv and python env defined, everything is under
/home/travis/virtualenv/python2.7.10/
. This mean the python binary is at/home/travis/virtualenv/python2.7.10/bin/python
.Since they aren't the same, installed module with default Python binary – ie 2.7.6 – (PostgreSQL & multicorn) aren't the same as other one installed using virtualenv – ie 2.7.10 – (pg_rabbitmq).
So, when trying to install the
multicorn_rabbitmq
server, it can't find the modulepg_rabbitmq
.Trying to move the default binary away and replace with the virtualenv one, doesn't help.
One solution should be to recompile PostgreSQL by changing the path to Python (as suggested here)
I've also tried using a completely different env by defining
language: php
but it doesn't use the default python, but an other installed one in/opt/python/2.7.10/lib/python2.7
....Finally switching to Docker to run my own PostgreSQL, compile the extension & define the FDW inside it (using the Dockerfile) ✅ 🙋♂️