Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6m1U-0008J4-8w for pgsql-general@arkaria.postgresql.org; Tue, 02 Feb 2021 03:06:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l6m0x-0001dx-M8 for pgsql-general@arkaria.postgresql.org; Tue, 02 Feb 2021 03:06:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6m0x-0001do-0d for pgsql-general@lists.postgresql.org; Tue, 02 Feb 2021 03:06:03 +0000 Received: from solsfw01a.snapon.com ([63.240.152.4]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6m0r-0002nw-PI for pgsql-general@postgresql.org; Tue, 02 Feb 2021 03:06:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=s1024; d=snapon.com; h=from:to:subject:date:message-id:content-type:mime-version; bh=hvXgr+0LBiH7I4Hpjh93MdgQjnGumdGK1TC1hGBMyCg=; b=RiBXvuIO8HTFjIwzkxLRq8mk5V+hch6T0zYBpEqmkHeMYnaT3N8o/Zrn289Ntv yunOSokW4f6Twk4cVeIrV3KCNS4QvhBDHwCBoBa+SPVQFAeeIKM1V13afK/lJS ibJ12jtyqqCvOj8+MHHJaXtmfOAMsYLBDcSMR8W2/mVZnR8= Received: from LISL-EXCH-01-PV.snaponglobal.com (10.245.128.123) by LISL-EXCH-05-PV.snaponglobal.com (10.245.128.127) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2044.4; Mon, 1 Feb 2021 21:05:55 -0600 Received: from LISL-EXCH-01-PV.snaponglobal.com ([fe80::919a:5f24:2bcd:5625]) by LISL-EXCH-01-PV.snaponglobal.com ([fe80::919a:5f24:2bcd:5625%4]) with mapi id 15.01.2044.004; Mon, 1 Feb 2021 21:05:55 -0600 From: "Jain, Ankit" To: "pgsql-general@postgresql.org" Subject: Issues with using plpgsql debugger using PG13 on Centos 7 Thread-Topic: Issues with using plpgsql debugger using PG13 on Centos 7 Thread-Index: Adb5DabBiyVEU7lZTS+3EiJ/gSqzPA== Date: Tue, 2 Feb 2021 03:05:55 +0000 Message-ID: <00f10bf59d6e4233a416977dc953d107@snapon.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.245.8.193] Content-Type: multipart/alternative; boundary="_000_00f10bf59d6e4233a416977dc953d107snaponcom_" MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_00f10bf59d6e4233a416977dc953d107snaponcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I am trying to setup the debugger plugin on Centos 7 where PG 13 server has= been setup using the git repository located here - https://git.postgresql.= org/gitweb/?p=3Dpldebugger.git;a=3Dsummary The OS version is CentOS Linux release 7.9.2009 (Core). However, after making the changes to postgresql.conf to reference the plugi= n_debugger.so library that was created on CentOS 7 using several variations= to ensure that the .so file was being referenced - shared_preload_libraries =3D '/usr/lib64/pgsql/plugin_debugger' or shared_preload_libraries =3D 'plugin_debugger' or shared_preload_libraries =3D '/usr/pgsql-13/lib/plugin_debugger.so' I encountered the following error during postgres start up- -- Unit postgresql-13.service has begun starting up. Feb 01 21:53:20 myserver.com postmaster[22726]: 2021-02-02 02:53:20.482 GMT= [22726] LOG: skipping missing configuration file "/data/pgdata/data/postg= resql.auto.conf" Feb 01 21:53:20 myserver.com postmaster[22726]: 2021-02-01 21:53:20.485 EST= [22726] FATAL: could not load library "/usr/lib64/pgsql/plugin_debugger.s= o": /usr/lib64/pgsql/plug Feb 01 21:53:20 myserver.com postmaster[22726]: 2021-02-01 21:53:20.486 EST= [22726] LOG: database system is shut down Feb 01 21:53:20 myserver.com systemd[1]: postgresql-13.service: main proces= s exited, code=3Dexited, status=3D1/FAILURE Feb 01 21:53:20 myserver.com systemd[1]: Failed to start PostgreSQL 13 data= base server. -- Subject: Unit postgresql-13.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit postgresql-13.service has failed. -- -- The result is failed. Feb 01 21:53:20 rich-arch-01-pp.ipa.snapbs.com systemd[1]: Unit postgresql-= 13.service entered failed state. Feb 01 21:53:20 rich-arch-01-pp.ipa.snapbs.com systemd[1]: postgresql-13.se= rvice failed. Though the library wasn't loaded, I attempted to add the extension at the D= B level using CREATE EXTENSION pldbgapi; 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 ? Thanks Ankit --_000_00f10bf59d6e4233a416977dc953d107snaponcom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I am trying to setup the debugger plugin on Centos 7= where PG 13 server has been setup using the git repository located here - https://git.postgresql.org/gitweb/?p=3Dpldebugger.git;a=3Dsummary

The OS version is CentOS Linux release 7.9.2009 (Cor= e).

 

However, after making the changes to postgresql.conf= to reference the plugin_debugger.so library that was created on CentOS 7 u= sing several variations to ensure that the .so file was being referenced -<= o:p>

shared_preload_libraries = =3D '/usr/lib64/pgsql/plugin_debugger'

or

shared_preload_libraries = =3D 'plugin_debugger'

or

shared_preload_libraries = =3D '/usr/pgsql-13/lib/plugin_debugger.so'

 

I encountered the following error during postgres st= art up–

-- Unit postgresql-13.ser= vice has begun starting up.

Feb 01 21:53:20 myserver.= com postmaster[22726]: 2021-02-02 02:53:20.482 GMT [22726] LOG:  skipp= ing missing configuration file "/data/pgdata/data/postgresql.auto.conf= "

Feb 01 21:53:20 myserver.= com postmaster[22726]: 2021-02-01 21:53:20.485 EST [22726] FATAL:  cou= ld not load library "/usr/lib64/pgsql/plugin_debugger.so": /usr/l= ib64/pgsql/plug

Feb 01 21:53:20 myserver.= com postmaster[22726]: 2021-02-01 21:53:20.486 EST [22726] LOG:  datab= ase system is shut down

Feb 01 21:53:20 myserver.= com systemd[1]: postgresql-13.service: main process exited, code=3Dexited, = status=3D1/FAILURE

Feb 01 21:53:20 myserver.= com systemd[1]: Failed to start PostgreSQL 13 database server.

-- Subject: Unit postgres= ql-13.service has failed

-- Defined-By: systemd

-- Support: http://lists.= freedesktop.org/mailman/listinfo/systemd-devel

--

-- Unit postgresql-13.ser= vice has failed.

--

-- The result is failed.<= o:p>

Feb 01 21:53:20 rich-arch= -01-pp.ipa.snapbs.com systemd[1]: Unit postgresql-13.service entered failed= state.

Feb 01 21:53:20 rich-arch= -01-pp.ipa.snapbs.com systemd[1]: postgresql-13.service failed.<= /p>

 

 

Though the library wasn’t loaded, I attempted = to add the extension at the DB level using

CREATE EXTENS= ION pldbgapi;

 

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 workin= g ?

 

Thanks

Ankit

--_000_00f10bf59d6e4233a416977dc953d107snaponcom_--