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 1knOhj-0001Zk-A5 for pgsql-admin@arkaria.postgresql.org; Thu, 10 Dec 2020 16:22: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 1knOhi-0005LT-7d for pgsql-admin@arkaria.postgresql.org; Thu, 10 Dec 2020 16:22:06 +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 1knOhh-0005LL-TV for pgsql-admin@lists.postgresql.org; Thu, 10 Dec 2020 16:22:06 +0000 Received: from mail-oi1-x241.google.com ([2607:f8b0:4864:20::241]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1knOhe-0006fJ-Lr for pgsql-admin@lists.postgresql.org; Thu, 10 Dec 2020 16:22:04 +0000 Received: by mail-oi1-x241.google.com with SMTP id d189so6291152oig.11 for ; Thu, 10 Dec 2020 08:22:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=Nwr8mnpUNjkVoQs1T9SFEFDx6D2UNDSSkj/n+8WIAIw=; b=gH36JJcluycr/wuBvU2NJ+3K9sh1EcZDYBztcK8UrpWpFv4pStK+vlqnSAMpgApEVw 1uDlmS/+C8o+/s6VJzHSaIGySTI2RsAFKU4bUQ5wrM9Xd/SHbf3CXWHdTlAE5zQzVXWq Gtar5nE5gb5O+aKEWLuME+jy2jP1vKQqgZasH5cI7DXRPzzE4D/gO3IHw6XUMVio9lL6 3YyIs2pKYncNBzDk/mnTSk5rpcWAwVZqha1SVJPXqeLRWAxlj2Pf1LQ1lqu6eWkIM3D0 JOhGb9P5jRusw2GoajuwGZZQfcyFrpYsdA3lA7EFU6fJPGpKCar++x/9RmxTWfqRnfVh N2PQ== 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-transfer-encoding :content-language; bh=Nwr8mnpUNjkVoQs1T9SFEFDx6D2UNDSSkj/n+8WIAIw=; b=PsHN1Qoo4XP7cOphTSo7jYnsV8BmRJBVOOS2h8/vxkAOG+4+UUBSShcJjvyQVxLk21 n0zzMOgG6aVkdOqWrgJYpVBKYz7yjdb9QhCAKu28WS05W3rmYdMo1rcyNn8NTDii4zEh 7VMOsJIFoFzXFURtvSXb5bjLILcmT75ZQyTi+qCgD+Szq2U8hL6ouupz1PfJFk9q72oN wPUQy2wOun/Q80dET6kAKfy3LImXKvwaJTwBFlBXFc5HBFmkD46YC9GykFJpfXi6VboS HO+FNJOSPn31jDY7ZXTfKZZ3aJdAhh9nrqJ4a2wE5ZTWYt04A72j9jr/yvXWblvYkAZp Yp0g== X-Gm-Message-State: AOAM531hQnp+kzPWUK4uQK0/LaldczltypoZNERFQllHOuxrQvLyqgmd D7g7dfFdpwpjOw4J/lMjzGBJjgPHbp5RxA== X-Google-Smtp-Source: ABdhPJxOtrL89ey8K/jxsuHvWriZUq5F70vUSB4kb+TgNoeYIYD3NOTDsapwXCo3vpCP2lbpeUQypQ== X-Received: by 2002:a05:6808:49a:: with SMTP id z26mr5702057oid.137.1607617321445; Thu, 10 Dec 2020 08:22:01 -0800 (PST) Received: from [192.168.1.10] (ip174-67-141-204.no.no.cox.net. [174.67.141.204]) by smtp.googlemail.com with ESMTPSA id p28sm926777ota.14.2020.12.10.08.22.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Dec 2020 08:22:00 -0800 (PST) Subject: Re: psql (13.1 (Debian 13.1-1.pgdg100+1), server 12.5 (Debian 12.5-1.pgdg100+1)) To: pgsql-admin@lists.postgresql.org References: From: Ron Message-ID: <85a89a29-47e9-e11f-32b9-f8205d7a570f@gmail.com> Date: Thu, 10 Dec 2020 10:22:00 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/10/20 9:43 AM, Roberto Carna wrote: > Dear, I'm new at postgresql and I've installed it on a Debian 10 > (stable) server. > > I don't know why, but after executing the psql command, I see this message: > > psql (13.1 (Debian 13.1-1.pgdg100+1), server 12.5 (Debian 12.5-1.pgdg100+1)) > > It seems both the posqgresql 12 and 13 are installed at the same time... > > I think I've installed postgresql 12, but here I see I have these > packages after upgrade with apt: > > ii postgresql 13+223.pgdg100+1 all > object-relational SQL database (supported version) > ii postgresql-12 12.5-1.pgdg100+1 amd64 > object-relational SQL database, version 12 server > ii postgresql-13 13.1-1.pgdg100+1 amd64 > object-relational SQL database, version 13 server > ii postgresql-client-12 12.5-1.pgdg100+1 amd64 > front-end programs for PostgreSQL 12 > ii postgresql-client-13 13.1-1.pgdg100+1 amd64 > front-end programs for PostgreSQL 13 > ii postgresql-client-common 223.pgdg100+1 all > manager for multiple PostgreSQL client versions > ii postgresql-common 223.pgdg100+1 all > PostgreSQL database-cluster manager > > Is this correct or do I have to uninstall the postgresql 13 packages ? "Correct" is in the eye of the beholder.  Leave both installed, or deinstall the one you don't want. > Within psql CLI, the version is: > > SELECT version(); > > PostgreSQL 12.5 (Debian 12.5-1.pgdg100+1) on x86_64-pc-linux-gnu, > compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit > (1 row) Run the pg_lsclusters to see what database instances (Postgres confusingly calls them "clusters") are configured. Also, echo $PATH to see what binaries that Debian will see first. -- Angular momentum makes the world go 'round.