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 1mzm0R-0001Ih-42 for pgsql-admin@arkaria.postgresql.org; Tue, 21 Dec 2021 20:45:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mzm0O-00061z-LO for pgsql-admin@arkaria.postgresql.org; Tue, 21 Dec 2021 20:45:04 +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 1mzm0O-00061o-87 for pgsql-admin@lists.postgresql.org; Tue, 21 Dec 2021 20:45:04 +0000 Received: from mail-wr1-f51.google.com ([209.85.221.51]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mzm0L-0000KG-2N for pgsql-admin@lists.postgresql.org; Tue, 21 Dec 2021 20:45:03 +0000 Received: by mail-wr1-f51.google.com with SMTP id e5so461280wrc.5 for ; Tue, 21 Dec 2021 12:45:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:from:to:cc:subject:references :mime-version:content-disposition:in-reply-to:user-agent; bh=m3RiSZrzQ8gSO3ImZlzmuJCFeuKgwKJLllDd1wgcV8I=; b=urRH9edV/HvWxOkUniZjsNcb5KWIMbddYcdZ335+7yO+ERtc2yZhM59jx5Gj5Hj1aJ pktRBhRwVXjlGeiFTRrPgEqybc8N021EarAguoICSfvRvxjMnvVA4ofD7ePnX2jzrJv2 +tyzHgwcryWUi8HpN+EJs+++w2jrTLgOhrDQoab6Ekk7tloYByVWNZjX191Z8mACyn2t QAO03MgXy7U6u2hp7ODKK3gqaKwzc4t1zZa7OK4dlME4UyCk1Ek15fusY6ZBlJB+5PdU HE/WPnHeXYlCXE0r1Ya0gn31CrWk8Qq41/z3/mCYBD8KXHzfhrC07nkonp0d9CJL9x9m c/CQ== X-Gm-Message-State: AOAM5334VA9ZqNWClEQOQFyY282SHqCKe50ecWcghp7eAW222v6Tc8Xa bqDedRy0FlFD7LZ9NXUUFCoGhyiFlAI= X-Google-Smtp-Source: ABdhPJwpiKCgpyDPQRhAtzgzyK9ViS4NpgHNzG+2tbcxY0pIEe8Z2a5V5arRVQfU/fC37KdNm1AWsA== X-Received: by 2002:a5d:4889:: with SMTP id g9mr3996066wrq.455.1640119499335; Tue, 21 Dec 2021 12:44:59 -0800 (PST) Received: from lightning.caipicrew.dd-dns.de ([2001:a61:3b05:f201:ad43:9690:63e7:a0e4]) by smtp.gmail.com with ESMTPSA id u20sm1531277wml.45.2021.12.21.12.44.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Dec 2021 12:44:58 -0800 (PST) Message-ID: <61c23cca.1c69fb81.cabd6.8c7c@mx.google.com> X-Google-Original-Message-ID: <20211221204457.GG32283@caipicrew.dd-dns.de;lightning.caipicrew.dd-dns.de> Received: from mbanck by lightning.caipicrew.dd-dns.de with local (Exim 4.92) (envelope-from ) id 1mzm0H-00083U-Vx; Tue, 21 Dec 2021 21:44:57 +0100 Date: Tue, 21 Dec 2021 21:44:57 +0100 From: Michael Banck To: "Reno, Natalie" Cc: "pgsql-admin@lists.postgresql.org" Subject: Re: Reconfiguring active PostgreSQL instance References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Tue, Dec 21, 2021 at 01:42:41PM +0000, Reno, Natalie wrote: > We provide a PostgreSQL instance that we configure ourselves. Just saying, but this would not have been a problem if you had used the RPM packages. > 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. I guess you mean you ran "make world"? > 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? > 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 It /should/ work if you add --with-uuid=something to the above line, rerun it and then change intro the contrib/uuid-ossp/ directory and run "make" followed by "make install" from there. Then, "CREATE EXTENSION" should work. However, to be sure, I advise to make a backup of the full (built) source tree beforehand and to try it on a test/development instance first. Which uuid library you prefer (and replace for "something" above) should be something you can figure out yourself. Michael