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 1mzgki-0003ld-Nz for pgsql-admin@arkaria.postgresql.org; Tue, 21 Dec 2021 15:08:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mzgkg-0002FT-Es for pgsql-admin@arkaria.postgresql.org; Tue, 21 Dec 2021 15:08:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mzgkg-0002FJ-37 for pgsql-admin@lists.postgresql.org; Tue, 21 Dec 2021 15:08:30 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mzgkb-0007Wj-Df for pgsql-admin@lists.postgresql.org; Tue, 21 Dec 2021 15:08:28 +0000 Received: from smadev.internal.net (pc131.internal.net [10.9.200.131]) by hermes.gatewaynet.com (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 1BLF8HjP008809 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 21 Dec 2021 17:08:22 +0200 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id 1BLF8Hix085439 for ; Tue, 21 Dec 2021 17:08:17 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: Reconfiguring active PostgreSQL instance To: pgsql-admin@lists.postgresql.org References: <5cc502e1-db7a-bdeb-847b-3bf8e483d016@matrix.gatewaynet.com> From: Achilleas Mantzios Message-ID: Date: Tue, 21 Dec 2021 17:08:17 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <5cc502e1-db7a-bdeb-847b-3bf8e483d016@matrix.gatewaynet.com> Content-Type: multipart/alternative; boundary="------------4A691D475C96C7597DB1B04A" Content-Language: en-US X-Virus-Scanned: clamav-milter 0.102.4 at hermes X-Virus-Status: Clean X-Spam-Status: No, score=-27.9 required=5.0 tests=ALL_TRUSTED,DYN_HAM_COORD, DYN_HAM_IT,DYN_HAM_NAUTICAL,HTML_MESSAGE,TW_UU,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on hermes.gatewaynet.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------4A691D475C96C7597DB1B04A Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 21/12/21 4:00 μ.μ., Achilleas Mantzios wrote: > On 21/12/21 3:42 μ.μ., Reno, Natalie wrote: >> >> We provide a PostgreSQL instance that we configure ourselves. An application is now needing the uuid-ossp extension which requires the –with-uuid=ossp flag added to the configuration. When we did >> the original configuration, we did the entire world which means the libraries are available. Is there any way to add this to the configuration without having to re-run the make and installs? Or is >> there a way around this like copying the .sql and .lib files to the appropriate directories? Or can the configure statement be run again with just the new flag? >> > My gut is telling me you won't need to recompile. (since you are compiling from the source tree, with the source include files), but you need to check. > Why don't you give it a try the easy way first? Do you have a test system? confirmed, with 11.x , ossp-uuid-1.6.2_9 and FreeBSD 11.4 Side note: you might to play (unset) USE_PGXS >> >> Here is what we run for each install: >> >>      ./configure --prefix=${POSTGRES_DIR} --bindir=${POSTGRES_DIR}/bin --sbindir=${POSTGRES_DIR}/sbin --libexecdir=${POSTGRES_DIR}/libexec --sysconfdir=${POSTGRES_DIR}/etc >> --libdir=${POSTGRES_DIR}/lib --includedir=${POSTGRES_DIR}/include --datadir=${POSTGRES_DIR}/data --mandir=${POSTGRES_DIR}/man --docdir=${POSTGRES_DIR}/doc --htmldir=${POSTGRES_DIR}/doc >> --dvidir=${POSTGRES_DIR}/doc --pdfdir=${POSTGRES_DIR}/doc --psdir=${POSTGRES_DIR}/doc --with-perl  --with-systemd --with-pam >> >>    make world >> >>    make install >> >>    make install-docs >> >>    make install-world >> >> Here is what is in the contrib directory: >> >> /u01/app/postgres/product/postgresql/contrib/uuid-ossp>ls >> >> expected/  Makefile  sql/ uuid-ossp--1.0--1.1.sql  uuid-ossp--1.1.sql  uuid-ossp.c uuid-ossp.control  uuid-ossp--unpackaged--1.0.sql >> >> */Natalie Reno (she/her/hers)/* >> >> Lead Database Administrator >> >> Database Infrastructure Team >> >> /Research IT/ >> >> /Cincinnati Children's Hospital/ >> >> natalie.reno@cchmc.org >> >> 513.803.5370 >> > > > -- > Achilleas Mantzios > DBA, Analyst, IT Lead > IT DEPT > Dynacom Tankers Mgmt -- Achilleas Mantzios DBA, Analyst, IT Lead IT DEPT Dynacom Tankers Mgmt --------------4A691D475C96C7597DB1B04A Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 21/12/21 4:00 μ.μ., Achilleas Mantzios wrote:
On 21/12/21 3:42 μ.μ., Reno, Natalie wrote:

We provide a PostgreSQL instance that we configure ourselves. An application is now needing the uuid-ossp extension which requires the –with-uuid=ossp flag added to the configuration. When we did the original configuration, we did the entire world which means the libraries are available. Is there any way to add this to the configuration without having to re-run the make and installs? Or is there a way around this like copying the .sql and .lib files to the appropriate directories? Or can the configure statement be run again with just the new flag?

My gut is telling me you won't need to recompile. (since you are compiling from the source tree, with the source include files), but you need to check.
Why don't you give it a try the easy way first? Do you have a test system?
confirmed, with 11.x , ossp-uuid-1.6.2_9 and FreeBSD 11.4
Side note: you might to play (unset) USE_PGXS

 

Here is what we run for each install:

 

     ./configure --prefix=${POSTGRES_DIR} --bindir=${POSTGRES_DIR}/bin --sbindir=${POSTGRES_DIR}/sbin --libexecdir=${POSTGRES_DIR}/libexec --sysconfdir=${POSTGRES_DIR}/etc --libdir=${POSTGRES_DIR}/lib --includedir=${POSTGRES_DIR}/include --datadir=${POSTGRES_DIR}/data --mandir=${POSTGRES_DIR}/man --docdir=${POSTGRES_DIR}/doc --htmldir=${POSTGRES_DIR}/doc --dvidir=${POSTGRES_DIR}/doc --pdfdir=${POSTGRES_DIR}/doc --psdir=${POSTGRES_DIR}/doc --with-perl  --with-systemd --with-pam

 

   make world

   make install

   make install-docs

   make install-world

 

Here is what is in the contrib directory:

/u01/app/postgres/product/postgresql/contrib/uuid-ossp>ls

expected/  Makefile  sql/  uuid-ossp--1.0--1.1.sql  uuid-ossp--1.1.sql  uuid-ossp.c  uuid-ossp.control  uuid-ossp--unpackaged--1.0.sql

 

Natalie Reno (she/her/hers)

Lead Database Administrator

Database Infrastructure Team

Research IT

Cincinnati Children's Hospital

natalie.reno@cchmc.org

513.803.5370

 



-- 
Achilleas Mantzios
DBA, Analyst, IT Lead
IT DEPT
Dynacom Tankers Mgmt


-- 
Achilleas Mantzios
DBA, Analyst, IT Lead
IT DEPT
Dynacom Tankers Mgmt
--------------4A691D475C96C7597DB1B04A--