Re: Postgres 9.6 Streaming Replication on Solaris 10

From: <rich(at)salepointdata(dot)com>
To: "Venkata B Nagothi" <nag1010(at)gmail(dot)com>
Cc: "pgsql-general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postgres 9.6 Streaming Replication on Solaris 10
Date: 2016-12-20 04:15:11
Message-ID: 20161219211511.c02d0d5e78ab67c32aeb842150582eab.e0ce9ee475.wbe@email17.godaddy.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<html><body><span style="font-family:Verdana; color:#000; font-size:10pt;"><div>Hi,</div><div>&nbsp;&nbsp;&nbsp; Yes it is set in both the user's .profile and also in /etc/profile.&nbsp; In both files it is set using:</div><div>LD_LIBRARY_PATH=/usr/sfw/lib:/usr/postgres/9.6-pgdg/lib<br>export LD_LIBRARY_PATH</div><div><br></div><div>That said, if I execute the following<br></div><div>su password<br></div><div>su postgres</div><div>echo $LD_LIBRARY_PATH</div><div><br></div><div>then echo returns blank.&nbsp; Echo will return the correct value only in the usr login.&nbsp; The question then is if postgres is running as usr postgres how does it know the value of LD_LIBRARY_PATH.&nbsp; Isn't there another place where it must be set?</div><div><br></div><div>Regards,<br></div><div><br></div><div>Rich Rutkowski</div><div><a href="mailto:rich(at)salepointdata(dot)com">rich(at)salepointdata(dot)com</a></div><div><br></div><div><br><br></div>
<blockquote id="replyBlockquote" webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px; font-size:10pt; color:black; font-family:verdana;">
<div id="wmQuoteWrapper">
-------- Original Message --------<br>
Subject: Re: [GENERAL] Postgres 9.6 Streaming Replication on Solaris 10<br>
From: Venkata B Nagothi &lt;<a href="mailto:nag1010(at)gmail(dot)com">nag1010(at)gmail(dot)com</a>&gt;<br>
Date: Mon, December 19, 2016 5:03 pm<br>
To: <a href="mailto:rich(at)salepointdata(dot)com">rich(at)salepointdata(dot)com</a><br>
Cc: pgsql-general &lt;<a href="mailto:pgsql-general(at)postgresql(dot)org">pgsql-general(at)postgresql(dot)org</a>&gt;<br>
<br>
<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div></div></div></div></div></div></div><div class="gmail_quote">On Mon, Dec 19, 2016 at 4:40 AM, <span dir="ltr">&lt;<a href="mailto:rich(at)salepointdata(dot)com" target="_blank">rich(at)salepointdata(dot)com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><span style="font-family:verdana;color:rgb(0,0,0);font-size:10pt"><div>Hello List,</div><div>&nbsp;&nbsp;&nbsp; I am setting up Postgres 9.6 for streaming replication.&nbsp; The OS is Solaris X86&nbsp; I downloaded the postgres solaris binaries from the Postres site and installed on 2 instances of Solaris 10.&nbsp; I then used pg_dumpall to load the master server with data from our devel0pment server.&nbsp; That all worked as advertised and was checked using pgAdmin Version 4.&nbsp; No problems.&nbsp; I then setup up the standby configuration and the master configuration and then used pg_basebackup from the standby to initialize its data.&nbsp; Works, not a problem and verified using pgAdmin Version 4 that the data was there and read only.&nbsp; However when a change was made on the master it does not appear on the standby.&nbsp; A check of the standby server.log revealed the following message:</div><div><br></div><div> </div><div style="margin-bottom:0in;line-height:100%">FATAL: could not load library "/usr/postgres/9.6-pgdg/lib/<a href="http://libpqwalreceiver.so" target="_blank">li<wbr>bpqwalreceiver.so</a>": <a href="http://ld.so" target="_blank">ld.so</a>.1: postgres: fatal: relocation error: file /usr/postgres/9.6-pgdg/lib/<a href="http://libpqwalreceiver.so" target="_blank">lib<wbr>pqwalreceiver.so</a>: symbol PQconnectdbParams: referenced symbol not found</div><div style="margin-bottom:0in;line-height:100%"><br></div><div style="margin-bottom:0in;line-height:100%">The message repeats until the database is shutdown and restarted and then appears if a change is made on the master.&nbsp; I think it is strange that this error is occurring on what appears to be a </div></span></div></blockquote><div><br></div><div>Do you have <span style="color:rgb(0,0,0);font-family:verdana;font-size:13.3333px">"/usr/postgres/9.6-pgdg/lib" part of</span>&nbsp;LD_LIBRARY_PATH variable ?&nbsp;</div><div><br></div><div>Regards,</div><div><font color="#000000" face="verdana"><span style="font-size:13.3333px">Venkata B N</span></font></div><div><font color="#000000" face="verdana"><span style="font-size:13.3333px"><br></span></font></div><div><font color="#000000" face="verdana"><span style="font-size:13.3333px">Database Consultant</span></font></div></div></div></div>
</div>
</blockquote></span></body></html>

Attachment Content-Type Size
unknown_filename text/html 4.3 KB

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Joseph Krogh 2016-12-20 09:43:35 Replacing an existing unique constraint (not UNIQUE INDEX) with primary key
Previous Message Venkata B Nagothi 2016-12-20 01:03:12 Re: Postgres 9.6 Streaming Replication on Solaris 10