Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1thR24-002OS9-QY for pgsql-general@arkaria.postgresql.org; Mon, 10 Feb 2025 10:28:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1thR14-000CML-Uq for pgsql-general@arkaria.postgresql.org; Mon, 10 Feb 2025 10:27:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1thR14-000CM9-KF for pgsql-general@lists.postgresql.org; Mon, 10 Feb 2025 10:27:50 +0000 Received: from mail1.dalibo.net ([51.159.93.128] helo=mail.dalibo.com) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1thR12-0000Vo-22 for pgsql-general@lists.postgresql.org; Mon, 10 Feb 2025 10:27:49 +0000 Received: from [192.168.24.229] (unknown [78.203.164.42]) by mail.dalibo.com (Postfix) with ESMTPSA id 77A9D25653 for ; Mon, 10 Feb 2025 11:27:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1739183265; bh=2f+7/iUFAFnx+f0lfQvPJ2uGb5/H64NQf9PPYsCt4w4=; h=Date:Subject:To:References:From:In-Reply-To:From; b=mMBPvsaK8VinNuSdaNVsngj0RZea6MhCGkwyULv8/Harun9C3RltKHNdW3PVjxvfs wLXI+go7MWu7nZ7dYTgerXNwAyL1E966MA3L2rQqLljRGXNJq5nQ4yuGfljvzcS6YK /Mptu4azuSn96GuVbFlYDGX/3lNzz/21c+ctZlkk= Message-ID: <5e920c39-8587-4185-b7ef-7e820b23e59b@dalibo.com> Date: Mon, 10 Feb 2025 11:27:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Passwordcheck Extension Not Installing To: pgsql-general@lists.postgresql.org References: Content-Language: fr From: Guillaume Lelarge Organization: Dalibo In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 08/02/2025 20:28, Cihat Küçükbağrıaçık wrote: > Hi Community, > > I have a PostgreSQL 17.2 database running on Ubuntu 22.04. I'm trying to > install the |passwordcheck| extension, but I keep getting a "file not > found" error. > > postgres=# create extension passwordcheck; > ERROR:  extension "passwordcheck" is not available > DETAIL:  Could not open extension control file "/usr/share/ > postgresql/17/extension/passwordcheck.control": No such file or directory. > HINT:  The extension must first be installed on the system where > PostgreSQL is running. > > > Even though I have installed the |postgresql-contrib| packages, I still > cannot see the extension. Below, I have listed the steps I followed. > Could you help me with this issue? > > https://www.postgresql.org/docs/current/passwordcheck.html www.postgresql.org/docs/current/passwordcheck.html> > To install passwordcheck, you shouldn't use "CREATE EXTENSION". You need to add it to shared_preload_librarires, restart PostgreSQL, and that's all. Regards. -- Guillaume Lelarge Consultant https://dalibo.com