A link to the actual question would be appreciated. > "FOREIGN_TABLE" created with postgres_fdw. LOCAL_TABLE is just a local table... > > Symptoms: > > I run in psql query SELECT * from FOREIGN_TABLE. No log generated > I run in bash psql -c "SELECT * from LOCAL_TABLE". No log generated > I run in bash psql -c "SELECT * from FOREIGN_TABLE". ::LOG: could not receive data from client: Connection reset by peer generated in postgres log
Please provide more information, and preferably a self-contained test case (one that anyone can run on an empty database to see the problem).