Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iAG9s-0003Yk-VM for pgsql-general@arkaria.postgresql.org; Tue, 17 Sep 2019 16:16:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iAG9r-0005lP-MH for pgsql-general@arkaria.postgresql.org; Tue, 17 Sep 2019 16:16:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iAG9q-0005lE-HZ for pgsql-general@lists.postgresql.org; Tue, 17 Sep 2019 16:16:51 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iAG9n-0007o7-0r for pgsql-general@lists.postgresql.org; Tue, 17 Sep 2019 16:16:49 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 2CF0A2099D; Tue, 17 Sep 2019 12:16:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 17 Sep 2019 12:16:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=v 9HlirufIsFOF/pByTEN676uoN1PTQKW6RSRV29A5iA=; b=Dj8kHPYgyarFaJj4U gpwXM7ePp7ph/WwQHblk3dYqX1wOagLNjEogrrfWzc8u1bs5GWFFLYltjW3mVIug 4w7+PBgwrIYW5dizJJgiJCK/JBu3Gjjww+p47Cb0gUVS40HBjOD63NageA0NEw2v FwjfYiH8TOmN5loeVMbEKGzvt2q/DyifaiGygjK3IGkclfSRxYXHZE/5lxqz+3pE VYrRhEt5wXdiWTECmxQ+JJVatcdtm9ujgDZiycmoSmlx8ndr9Oj2n1VCWuFlLouY 4/mEgp/9By7e9v1A/u5Qidq7iaj9ZOcce1Keqbse88OYXFyz+H6sAoIkarvnb3lm GC/Cw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=v9HlirufIsFOF/pByTEN676uoN1PTQKW6RSRV29A5 iA=; b=lTDCI8Fy6Y28sHrZ42DNIHZnc8HxegJqkdTAy4snxB4DC5MslHx8DPaee 1F/Phxgm5c4CVGmVHGZ8EA8k1HlznQZP084ytB41QZmkczxOAHiD2QMbhE+1iKlM YMe90bqCRQLXiF0QsicC/jOM1dCciEn/0jt55wCiuFbh3pd/oMa+Z5vSvbC+CiGp Dfm0I+XXBNvqKjgdjzO20PrFkRRDgg7PhhhCQpRTJkXTJkuHTk/+pbdy0ycVyV+B ptkn1D/WBs3IqNszdPQsZ28e1QI4xmn5o+XuUdsMjgI3bZvayN6gDrAbPiY3X/X9 VMpbqIlH4HFWXPCWmHaYkMb3Bbq2A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudeigdejudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghdphhhomhgvrdhlohgtrghl necukfhppedujedvrdehkedrgeeirddvtdefnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsthgvrhfu ihiivgeptd X-ME-Proxy: Received: from ranger.suse (unknown [172.58.46.203]) by mail.messagingengine.com (Postfix) with ESMTPA id CC282D60062; Tue, 17 Sep 2019 12:16:44 -0400 (EDT) Subject: Re: pldbgapi extension To: Prakash Ramakrishnan Cc: "pgsql-generallists.postgresql.org" References: From: Adrian Klaver Message-ID: Date: Tue, 17 Sep 2019 09:16:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/17/19 7:44 AM, Prakash Ramakrishnan wrote: > I installed devel and contrib also but not worked here. Yeah, --contrib won't help as pldbpgapi is not one of the contrib modules as found here: https://www.postgresql.org/docs/11/contrib.html The basic issue is you are using two install methods YUM for your Postgres server and source build for the pldbpgapi extension. They are using different directory structures. I think the best bet for the time being is to use the symklink suggestion I posted earlier. Someone with more experience with RH may also chime in with a better solution. > > > Regards, > Prakash.R > > On Tue, Sep 17, 2019, 19:58 Adrian Klaver > wrote: > > On 9/17/19 7:20 AM, Prakash Ramakrishnan wrote: > > Hi Adrian, > > > > I did it yum installation postgresql 11 from repo file.but I > don't know > > why it's giving wrong path and symbolic link how to create it > please advise. > > Looks like it is installing to source built extension directory, not > the > package one. > > You are using the PGDG repos? > > Did you install postgresql11-devel from the repo? > > I am not that familiar with the RH based multi-version install so I am > not sure that -devel will help or not, but it is worth a try. > > > > > > > Regards, > > Prakash.R > > > > On Tue, Sep 17, 2019, 19:10 Adrian Klaver > > > >> wrote: > > > >     On 9/16/19 11:51 PM, Prakash Ramakrishnan wrote: > >      > Hi Team, > >      > > >      > Not able to create the extension pldbgapi in cluster and > if i run > >     make > >      > and make install it will going .sql file in > >     /usr/share/pgsql/extension > >      > this path but actually i need to create these files into > below path, > >      > > >      > How to create this one please advise > > > >     Questions: > > > >     1) OS and version? > > > >     2) How was Postgres installed? > > > >     3) How about symlinking /usr/share/pgsql/extension into > >     /usr/pgsql-11/share/extension/? > > > > > >      > > >      > ==> psql > >      > psql (11.5) > >      > Type "help" for help. > >      > > >      > postgres=# CREATE EXTENSION pldbgapi; > >      > ERROR:  could not open extension control file > >      > *"/usr/pgsql-11/share/extension/*pldbgapi.control": No > such file or > >      > directory > >      > postgres=# > >      > postgres=# > >      > postgres=# \q > >      > > >      > [root@cvgrhehhsd006 pldebugger-master]# export > >      > > > >  PATH=$PGHOME/bin:$PATH:$HOME/.local/bin:$HOME/bin:$PGBASE/edbmtk/bin:/usr/pgsql-11/bin > >      > [root@cvgrhehhsd006 pldebugger-master]#  make USE_PGXS=1 > >      > make: Nothing to be done for `all'. > >      > [root@cvgrhehhsd006 pldebugger-master]# > >      > [root@cvgrhehhsd006 pldebugger-master]# make install > USE_PGXS=1 > >      > /usr/bin/mkdir -p '/usr/lib64/pgsql' > >      > /usr/bin/mkdir -p '/usr/share/pgsql/extension' > >      > /usr/bin/mkdir -p '/usr/share/pgsql/extension' > >      > /usr/bin/mkdir -p '/usr/share/doc/pgsql/extension' > >      > /bin/sh > >     /usr/lib64/pgsql/pgxs/src/makefiles/../../config/install-sh -c > >      > -m 755  plugin_debugger.so > '/usr/lib64/pgsql/plugin_debugger.so' > >      > /bin/sh > >     /usr/lib64/pgsql/pgxs/src/makefiles/../../config/install-sh -c > >      > -m 644 ./pldbgapi.control '/usr/share/pgsql/extension/' > >      > /bin/sh > >     /usr/lib64/pgsql/pgxs/src/makefiles/../../config/install-sh -c > >      > -m 644 ./pldbgapi--1.0.sql ./pldbgapi--unpackaged--1.0.sql > >      >   '/usr/share/pgsql/extension/' > >      > /bin/sh > >     /usr/lib64/pgsql/pgxs/src/makefiles/../../config/install-sh -c > >      > -m 644 ./README.pldebugger '/usr/share/doc/pgsql/extension/' > >      > [root@cvgrhehhsd006 pldebugger-master]# > >      > [root@cvgrhehhsd006 pldebugger-master]# cd > /usr/share/pgsql/extension > >      > [root@cvgrhehhsd006 extension]# ls > >      > pldbgapi--1.0.sql  pldbgapi.control >  pldbgapi--unpackaged--1.0.sql > >      > [root@cvgrhehhsd006 extension]# ll > >      > total 16 > >      > -rw-r--r--. 1 root root 7457 Sep 17 02:46 pldbgapi--1.0.sql > >      > -rw-r--r--. 1 root root  181 Sep 17 02:46 pldbgapi.control > >      > -rw-r--r--. 1 root root 2258 Sep 17 02:46 > >     pldbgapi--unpackaged--1.0.sql > >      > > >      > -- > >      > Thanks, > >      > Prakash.R > >      > PostgreSQL - Offshore DBA support TCS / Nielsen Infrastructure > >     Team On > >      > call : +91-8939599426 > > > > > >     -- > >     Adrian Klaver > > adrian.klaver@aklaver.com > > > > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com