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 1icBVy-0005IO-6Q for pgsql-general@arkaria.postgresql.org; Tue, 03 Dec 2019 16:59:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1icBVw-0004IP-Vc for pgsql-general@arkaria.postgresql.org; Tue, 03 Dec 2019 16:59:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1icBVw-0004II-LQ for pgsql-general@lists.postgresql.org; Tue, 03 Dec 2019 16:59:04 +0000 Received: from mail-pj1-x1041.google.com ([2607:f8b0:4864:20::1041]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1icBVt-0005qu-UX for pgsql-general@lists.postgresql.org; Tue, 03 Dec 2019 16:59:04 +0000 Received: by mail-pj1-x1041.google.com with SMTP id v93so1752102pjb.6 for ; Tue, 03 Dec 2019 08:59:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=illuminatedcomputing-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=tWamUPtwEU5ta4QDd48UlQsEmHm+qDjZii26vCLCHzQ=; b=BSo6PFN5HXPgufvP7X77IY6MfXyMlEZjWnmTleYFmBw1Zg5RwsdecfAjUtfJZTrb5Q JC+4GWwxabcDhNjLwHmLqEuqmVIQiEaNIjf170ejOY9omoGtI1WfyDjLLwSU9s/cTCRk FM+3uEiGmnpHZ48X75pUnlt1b6W3faOojKednrl2IyE0j/pmx9LjMmrWUe9bPj7sJlii uqXK9S+9R+uDud8dFo81AZHrjxOTSSU30bb7bwY4OYunchXze3p7nisRjLlnK5X8ukCp /Ddpczah+2EU+AKeKbTZx4NlGjmVsvlXmNZ9SdweaBCNZeOiLKc4xUBcYIbZnLpQVFpS uxQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=tWamUPtwEU5ta4QDd48UlQsEmHm+qDjZii26vCLCHzQ=; b=PUkK8uB2a5Tqy5QkjL4hHDv2Am8c28pqWV1ibTV+gkARYJbGJfV44AShzjvPblkW2a 2BKjj3yBnrlXcBmC8qPBsItutiUBSM5VdDt9OjwbH9l0Et7KNWBwpJa0JSQ71Us96Wdo aTpnfquFAK5nX4sLJt3mlqJ6myF+2t+blGiuak9zCY63mdqXmfLxGPvXvWGi+tZhIVuu OBCkcrIZGLjrvzZpalv51A/y5jqgK6VtfFXAQapeCvlIIAGEzmNsAYCHefzbFlx+rlk4 RKQdtjkdGuD02r55HzVRnRj8FU92fnoqQaxG/LDCkUGcTz8MThPRzGa947kJYE0gKuO1 8++A== X-Gm-Message-State: APjAAAUw0Xz03Af0xh4NOZc75JnKToJIaoxW3w+oMSt7t5xmzS8ze1G+ QLWZ42yHsi6RAfQO3yfM0X6vfMd5qPc= X-Google-Smtp-Source: APXvYqxJ9LbIO7zf22QGZ9nXAeuL0BcHV0GXTg9ZNDD1JkhpmVI106OasK6PQR47BQYLpQ917WD7eQ== X-Received: by 2002:a17:90a:8903:: with SMTP id u3mr6482626pjn.137.1575392339518; Tue, 03 Dec 2019 08:58:59 -0800 (PST) Received: from [192.168.2.101] (static-50-53-109-254.bvtn.or.frontiernet.net. [50.53.109.254]) by smtp.googlemail.com with ESMTPSA id 125sm4625465pfu.136.2019.12.03.08.58.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Dec 2019 08:58:58 -0800 (PST) Subject: Re: Issue upgrading from V11 to V12 on Debian To: pgsql-general@lists.postgresql.org References: <20191203155347.GA15007@panix.com> <4513.1575389635@sss.pgh.pa.us> <20191203164622.GA3615@panix.com> From: Paul Jungwirth Message-ID: <337db11b-4490-7747-e978-118d555f8838@illuminatedcomputing.com> Date: Tue, 3 Dec 2019 08:58:58 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <20191203164622.GA3615@panix.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/3/19 8:46 AM, stan wrote:> So, I have V12 running as the default on the machine I am testing this on > now: > > Ver Cluster Port Status Owner Data directory Log file > 11 main 5433 down postgres /var/lib/postgresql/11/main > /var/log/postgresql/postgresql-11-main.log > 12 main 5432 online postgres /var/lib/postgresql/12/main > /var/log/postgresql/postgresql-12-main.log > > BUT, I went to the directory where I have the exentsion's source, did a > make clean ; make ; make install, and the files were still installed in the > V11 tree. How can I instruct the system to put these in the V12 tree? > > The extension in question is pgemailaddr if this matters, BTW. That extension (and every extension I've seen) uses Postgres's normal extension-building infrastructure, so it runs pg_config to learn where to put files. If you run pg_config on your system it will probably report directories belonging to v11. (That's a little surprising because on Ubuntu systems I've always had it report the latest version.) Many other Ubuntu Postgres commands accept a PGCLUSTER envvar to specific which cluster to use. If you want to add that to your pg_config you could do it like this: https://stackoverflow.com/a/43403193/122087 Then just set PGCLUSTER before building. (Make sure you `make clean` first.) -- Paul ~{:-) pj@illuminatedcomputing.com