pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: AJ Rao <ajrao2728@gmail.com>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: DB Link returning Partial data rows
Date: Tue, 21 Apr 2020 11:18:25 -0700
Message-ID: <5e9f38f5.1c69fb81.5a708.5c4e@mx.google.com> (raw)

<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"'>&nbsp;&nbsp;&nbsp;&nbsp; </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"'>&nbsp;&nbsp;&nbsp;&nbsp; </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"'>&nbsp;&nbsp;&nbsp;&nbsp; </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"'>&nbsp;&nbsp;&nbsp;&nbsp; </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>&nbsp;</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>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>





view thread (2+ messages)  latest in thread

Message-ID: <5e9f38f5.1c69fb81.5a708.5c4e@mx.google.com>
Permalink:  ../5e9f38f5.1c69fb81.5a708.5c4e@mx.google.com/
Also on:    postgresql.org/message-id/5e9f38f5.1c69fb81.5a708.5c4e@mx.google.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ajrao2728@gmail.com
  Subject: Re: DB Link returning Partial data rows
  In-Reply-To: <5e9f38f5.1c69fb81.5a708.5c4e@mx.google.com>
  References: <5e9f38f5.1c69fb81.5a708.5c4e@mx.google.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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