This extension is intended to simplify the task of learning the query optimization process. By separating complex C code, and bringing logic into Python
mkdir build
cd build
make -f ../pg_py_plan_forwarding/Makefile # compile
make install # install
make check # check whether it works correctly (optional)
export PYTHONPATH=/home/vagrant/pg_py_plan_forwarding