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 1mBueE-0003Du-7H for pgsql-general@arkaria.postgresql.org; Fri, 06 Aug 2021 07:52:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mBueD-0003s8-1V for pgsql-general@arkaria.postgresql.org; Fri, 06 Aug 2021 07:52:05 +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 1mBueC-0003qN-NA for pgsql-general@lists.postgresql.org; Fri, 06 Aug 2021 07:52:04 +0000 Received: from ms-10.1blu.de ([178.254.4.101]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mBue6-00023O-0S for pgsql-general@lists.postgresql.org; Fri, 06 Aug 2021 07:52:03 +0000 Received: from [188.174.48.136] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBue4-0003sD-06; Fri, 06 Aug 2021 09:51:56 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.16.1/8.14.9) with ESMTPS id 1767ptiX001792 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 6 Aug 2021 09:51:55 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.16.1/8.14.9/Submit) id 1767ptCh001791; Fri, 6 Aug 2021 09:51:55 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Fri, 6 Aug 2021 09:51:55 +0200 From: Matthias Apitz To: Guillaume Lelarge Cc: "pgsql-generallists.postgresql.org" Subject: Re: psql's default database on connect (our internal ref. SRP-30861) Message-ID: Reply-To: Matthias Apitz References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 13.0-CURRENT r368166 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.48.136 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk El día viernes, agosto 06, 2021 a las 09:34:42a. m. +0200, Guillaume Lelarge escribió: > > No, it does not match all my examples. Read again what it says as > > default on --help. > > > > Actually, it does. You launched "psql --help" without specifying a > PostgreSQL username and database name, so it used your OS username as both > of them, hence the "default: testpos" for the database. Sorry, it does not: testpos@srap53dxr1:~> psql --help -Usisis | grep DBNAME psql [OPTION]... [DBNAME [USERNAME]] -d, --dbname=DBNAME database name to connect to (default: "testpos") matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub Tear it down! Defund the Humboldt Forum! https://www.jungewelt.de/artikel/406715.humboldt-forum-feudaler-themenpark.html