Re: dblink without running the full query remotely? - Mailing list pgsql-admin

From Tom Lane
Subject Re: dblink without running the full query remotely?
Date
Msg-id 4193747.1692998206@sss.pgh.pa.us
Whole thread Raw
In response to dblink without running the full query remotely?  (Wells Oliver <wells.oliver@gmail.com>)
Responses Re: dblink without running the full query remotely?  (Wells Oliver <wells.oliver@gmail.com>)
List pgsql-admin
Wells Oliver <wells.oliver@gmail.com> writes:
> Per the documentation -- *dblink fetches the entire remote query result
> before returning any of it to the local system* -- I am guessing the answer
> is no, but I wondered if there was some way to do something like this:
> ...
> Where that remote sometable might have a bajillion rows and the local where
> would be passed to it

No, and it's unlikely anyone would ever put effort into making dblink
do that, because the newer foreign table (FDW) code *does* handle that
sort of thing.  dblink still has its uses, but it's pretty much at a
dead end developmentally.  Take a look at postgres_fdw.

            regards, tom lane



pgsql-admin by date:

Previous
From: Wells Oliver
Date:
Subject: dblink without running the full query remotely?
Next
From: Wells Oliver
Date:
Subject: Re: dblink without running the full query remotely?