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 1mzfhO-0001S3-Hz for pgsql-admin@arkaria.postgresql.org; Tue, 21 Dec 2021 14:01:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mzfhN-0003XE-9X for pgsql-admin@arkaria.postgresql.org; Tue, 21 Dec 2021 14:01:01 +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 1mzfhM-0003X5-R9 for pgsql-admin@lists.postgresql.org; Tue, 21 Dec 2021 14:01:00 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mzfhJ-0005jg-Nd for pgsql-admin@lists.postgresql.org; Tue, 21 Dec 2021 14:00:59 +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 1BLE0mYo032706 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 21 Dec 2021 16:00:53 +0200 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id 1BLE0mGe078355 for ; Tue, 21 Dec 2021 16:00:48 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: Reconfiguring active PostgreSQL instance To: pgsql-admin@lists.postgresql.org References: From: Achilleas Mantzios Message-ID: <5cc502e1-db7a-bdeb-847b-3bf8e483d016@matrix.gatewaynet.com> Date: Tue, 21 Dec 2021 16:00:48 +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: Content-Type: multipart/alternative; boundary="------------D53D4B1DEE9210E5F8DC180C" 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. --------------D53D4B1DEE9210E5F8DC180C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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? > > 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 --------------D53D4B1DEE9210E5F8DC180C Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
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?

 

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
--------------D53D4B1DEE9210E5F8DC180C--