Re: DB Link returning Partial data rows

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: AJ Rao <ajrao2728(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: DB Link returning Partial data rows
Date: 2020-04-21 18:25:21
Message-ID: 17917a17-6b28-d1ab-c9ab-a79278cd7949@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 4/21/20 11:18 AM, AJ Rao wrote:
> Hi - I setup dblink in my PostgreSQL 9.6.14 db and reading data from
> PostgreSQL 9.6.11 db. My query returns 3600 rows when I run it in the
> Source Db, but returns only 2365 rows when I run it from the Target db
> through dblink. Is there a setting that I need to update or is there a
> limitation with dblink? Your help will be greatly appreciated.

Not that I know of.

1) Are you sure you are pointing at the same database from your target
database?

2) What are the queries?

3) Have you tried postgres_fdw?:
https://www.postgresql.org/docs/9.6/postgres-fdw.html

>
> Summary:
>
> 1.SourceDB = PostgreSQL 9.6.11
>
> 2.TargetDB = PostgreSQL 9.6.14
>
> 3.Source Query = 15 columns with 3600 rows
>
> 4.Target Query via dblink: return 2365 rows only
>
> Thanks, AJ
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2020-04-21 18:28:31 Re: Triggers and Full Text Search *
Previous Message Ericson Smith 2020-04-21 18:25:18 Re: Triggers and Full Text Search *