[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-general
Subject:    RE: Issues with using plpgsql debugger using PG13 on Centos 7
From:       "Jain, Ankit" <Ankit.Jain () snapon ! com>
Date:       2021-03-31 15:58:51
Message-ID: ac33ef902ab148f08d722bab7260c2b7 () snapon ! com
[Download RAW message or body]

[Attachment #2 (text/plain)]

Thank you for the pointer. We were able to build it correctly after setting the PG-13 \
path PATH=$PATH:/usr/pgsql-13/bin

From: Ian Lawrence Barwick <barwick@gmail.com>
Sent: Tuesday, February 2, 2021 2:54 AM
To: Jain, Ankit <Ankit.Jain@snapon.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Issues with using plpgsql debugger using PG13 on Centos 7


CAUTION: This email originated from outside of Snap-on. Do not click on links or open \
attachments unless you have validated the sender, even if it is a known contact. \
Contact the sender by phone to validate the contents. 2021年2月2日(火) 12:06 \
Jain, Ankit <Ankit.Jain@snapon.com<mailto:Ankit.Jain@snapon.com>>: (...)
But got the following error –
ERROR: could not load library "/usr/pgsql-13/lib/plugin_debugger.so": \
/usr/pgsql-13/lib/plugin_debugger.so: undefined symbol: LWLockAssign SQL state: 58P01

Can you please help with getting the debugger working ?

It looks like the extension code was compiled against an older PostgreSQL
version (presumably 9.5 or earlier; LWLockAssign was removed in 9.6).

You'll need to make sure it's compiled against the major version you're using.

Regards

Ian Barwick

--
EnterpriseDB: https://www.enterprisedb.com<https://urldefense.com/v3/__https:/www.ente \
rprisedb.com__;!!Lf_9VycLqA!wy8Xt5SI_nkVMC9Dq-R09xxO1WchcfRW8jcZjq4_qf8tzl1GQ5ZcajoSJQ1DY1M8$>



[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
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:"MS Gothic";
	panose-1:2 11 6 9 7 2 5 8 2 4;}
@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;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
	{font-family:"\@MS Gothic";
	panose-1:2 11 6 9 7 2 5 8 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
p.msonormal0, li.msonormal0, div.msonormal0
	{mso-style-name:msonormal;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Thank \
you for the pointer. We were able to build it correctly after setting the PG-13 path \
<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">PATH=$PATH:/usr/pgsql-13/bin<o:p></o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> Ian Lawrence \
Barwick &lt;barwick@gmail.com&gt; <br>
<b>Sent:</b> Tuesday, February 2, 2021 2:54 AM<br>
<b>To:</b> Jain, Ankit &lt;Ankit.Jain@snapon.com&gt;<br>
<b>Cc:</b> pgsql-general@postgresql.org<br>
<b>Subject:</b> Re: Issues with using plpgsql debugger using PG13 on Centos \
7<o:p></o:p></span></p> </div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p align="center" style="margin:15.0pt;text-align:center"><b><span \
style="font-size:10.5pt;color:red">CAUTION: This email originated from outside of \
Snap-on. Do not click on links or open attachments unless you have validated the \
sender, even if it is a known  contact. Contact the sender by phone to validate the \
contents. <o:p></o:p></span></b></p> <div>
<div>
<div>
<div>
<p class="MsoNormal">2021<span style="font-family:&quot;MS \
Gothic&quot;">年</span>2<span style="font-family:&quot;MS \
Gothic&quot;">月</span>2<span style="font-family:&quot;MS \
Gothic&quot;">日</span>(<span style="font-family:&quot;MS Gothic&quot;">火</span>) \
12:06 Jain, Ankit &lt;<a \
href="mailto:Ankit.Jain@snapon.com">Ankit.Jain@snapon.com</a>&gt;:<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal">(...) <o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in \
6.0pt;margin-left:4.8pt;margin-right:0in"> <div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">But \
got the following error –<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-indent:.5in"> <span \
style="font-size:9.5pt;font-family:Consolas;color:#222222;background:white">ERROR: \
could not load library &quot;/usr/pgsql-13/lib/plugin_debugger.so&quot;: \
/usr/pgsql-13/lib/plugin_debugger.so: undefined symbol: LWLockAssign SQL state: \
58P01</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Can you \
please help with getting the debugger working ?<o:p></o:p></p> </div>
</div>
</blockquote>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">It looks like the extension code was compiled against an older \
PostgreSQL<br> version (presumably 9.5 or earlier; LWLockAssign was removed in \
9.6).<br> <br>
You'll need to make sure it's compiled against the major version you're \
using.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Regards<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Ian Barwick<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">EnterpriseDB: <a \
href="https://urldefense.com/v3/__https:/www.enterprisedb.com__;!!Lf_9VycLqA!wy8Xt5SI_nkVMC9Dq-R09xxO1WchcfRW8jcZjq4_qf8tzl1GQ5ZcajoSJQ1DY1M8$" \
target="_blank"> https://www.enterprisedb.com</a> <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic