@samay-sharma discovered that postgres_fdw does not work when shared_preload_libraries is set to 'pg_shard'.
When the instructions on this link is followed for postgres_fdw, we get the following error on INSERT statements to postgres_fdw table:
WARNING: Connection failed to ~�:30098872
DETAIL: Remote message: invalid port number: "30098872"
ERROR: connection pointer is NULL
The root of the problem seems to be about linking/loading of shared libraries. postgres_fdw extension calls a function GetConnection() in somewhere in the code. However, since pg_shard is also loaded, pg_shard's GetConnection() function is called.
We might consider this comment in the Makefile.
Also note that, call to DeterminePlannerType(), returns PLANNER_TYPE_POSTGRES, and standard_planner() is called. This error is thrown after standard_planner() is called.
@samay-sharma discovered that postgres_fdw does not work when shared_preload_libraries is set to 'pg_shard'.
When the instructions on this link is followed for postgres_fdw, we get the following error on INSERT statements to postgres_fdw table:
The root of the problem seems to be about linking/loading of shared libraries. postgres_fdw extension calls a function GetConnection() in somewhere in the code. However, since pg_shard is also loaded, pg_shard's GetConnection() function is called.
We might consider this comment in the Makefile.
Also note that, call to DeterminePlannerType(), returns PLANNER_TYPE_POSTGRES, and standard_planner() is called. This error is thrown after standard_planner() is called.