pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedDB Link returning Partial data rows
2+ messages / 2 participants
[nested] [flat]
* DB Link returning Partial data rows
@ 2020-04-21 18:18 AJ Rao <ajrao2728@gmail.com>
2020-04-21 18:25 ` Re: DB Link returning Partial data rows Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 1 reply; 2+ messages in thread
From: AJ Rao @ 2020-04-21 18:18 UTC (permalink / raw)
To: pgsql-general
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"; xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:731343151;
mso-list-template-ids:-1;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><div><p style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:0in;background:white;vertical-align:baseline'><span style='font-size:12.0pt;color:black'>Hi - </span><span style='font-size:12.0pt;color:#242729'>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.<o:p></o:p></span></p><p style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:0in;background:white;vertical-align:baseline;font-variant-ligatures: normal;font-variant-caps: normal;font-variant-numeric: inherit;font-variant-east-asian: inherit;font-stretch: inherit;line-height:inherit;box-sizing: inherit;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px'><span style='font-size:12.0pt;color:#242729'>Summary:<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:6.0pt;margin-left:22.5pt;text-indent:-.25in;mso-list:l0 level1 lfo1;background:white;vertical-align:baseline'><![if !supportLists]><span style='font-size:12.0pt;color:#242729'><span style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:12.0pt;color:#242729'>SourceDB = PostgreSQL 9.6.11<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:6.0pt;margin-left:22.5pt;text-indent:-.25in;mso-list:l0 level1 lfo1;background:white;vertical-align:baseline'><![if !supportLists]><span style='font-size:12.0pt;color:#242729'><span style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:12.0pt;color:#242729'>TargetDB = PostgreSQL 9.6.14<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:6.0pt;margin-left:22.5pt;text-indent:-.25in;mso-list:l0 level1 lfo1;background:white;vertical-align:baseline'><![if !supportLists]><span style='font-size:12.0pt;color:#242729'><span style='mso-list:Ignore'>3.<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:12.0pt;color:#242729'>Source Query = 15 columns with 3600 rows<o:p></o:p></span></p><p class=MsoNormal style='margin-left:22.5pt;text-indent:-.25in;mso-list:l0 level1 lfo1;background:white;vertical-align:baseline'><![if !supportLists]><span style='font-size:12.0pt;color:#242729'><span style='mso-list:Ignore'>4.<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:12.0pt;color:#242729'>Target Query via dblink: return 2365 rows only<o:p></o:p></span></p><p class=MsoNormal style='margin-left:22.5pt;background:white;vertical-align:baseline;font-variant-ligatures: normal;font-variant-caps: normal;font-variant-numeric: inherit;font-variant-east-asian: inherit;font-stretch: inherit;line-height:inherit;box-sizing: inherit;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px'><span style='font-size:12.0pt;color:#242729'><o:p> </o:p></span></p><p style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:0in;background:white;vertical-align:baseline'><span style='font-size:12.0pt;color:#242729'>Thanks, AJ<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: DB Link returning Partial data rows
2020-04-21 18:18 DB Link returning Partial data rows AJ Rao <ajrao2728@gmail.com>
@ 2020-04-21 18:25 ` Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Klaver @ 2020-04-21 18:25 UTC (permalink / raw)
To: AJ Rao <ajrao2728@gmail.com>; 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.klaver@aklaver.com
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-04-21 18:25 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-04-21 18:18 DB Link returning Partial data rows AJ Rao <ajrao2728@gmail.com>
2020-04-21 18:25 ` Adrian Klaver <adrian.klaver@aklaver.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox