Thom Brown <thom@linux.com> writes:
> Is there a way to ensure we don't end up with a foreign table feedback loop?
Yeah, I've run into that too :-(. I'm not sure how big a deal it is for
real-world use, but certainly the "loopback" server the postgres_fdw
regression test sets up is rather risky.
But I don't really want to disallow chains of foreign tables, so it's
hard to see how to prevent it without breaking possibly-useful cases.
regards, tom lane