From: | M Sarwar <sarwarmd02(at)outlook(dot)com> |
---|---|
To: | Wells Oliver <wells(dot)oliver(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-admin <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: dblink without running the full query remotely? |
Date: | 2023-08-25 22:26:28 |
Message-ID: | DM4PR19MB5978A582793C19430C87B77BD3E3A@DM4PR19MB5978.namprd19.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Probably this is neither possible in Oracle nor in Postgres.
If you are willing to take a complex route, Postgres will allow you to point to PUBLIC schema where you will need to export the objects at least once for each schema from the source environment.
I hope that I am not slipping any thing.
Thanks,
Sarwar
________________________________
From: Wells Oliver <wells(dot)oliver(at)gmail(dot)com>
Sent: Friday, August 25, 2023 6:12 PM
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: dblink without running the full query remotely?
Thanks, this it exactly.
Correlated, is there a way to define a fdw user mapping for a role versus for every single individual user in a database?
On Fri, Aug 25, 2023 at 2:16 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us<mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us>> wrote:
Wells Oliver <wells(dot)oliver(at)gmail(dot)com<mailto:wells(dot)oliver(at)gmail(dot)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
--
Wells Oliver
wells(dot)oliver(at)gmail(dot)com<mailto:wellsoliver(at)gmail(dot)com>
From | Date | Subject | |
---|---|---|---|
Next Message | Victor Sudakov | 2023-08-26 18:12:22 | Re: Temporary disabling a replica in a Patroni cluster |
Previous Message | Wells Oliver | 2023-08-25 22:12:32 | Re: dblink without running the full query remotely? |