pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthias Apitz <guru@unixarea.de>
To: Guillaume Lelarge <guillaume@lelarge.info>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: psql's default database on connect (our internal ref. SRP-30861)
Date: Fri, 6 Aug 2021 09:51:55 +0200
Message-ID: <YQzqGyKS26qthhEv@c720-r368166> (raw)
In-Reply-To: <CAECtzeWCnDg9NUpx0j111vS6Z3T=8n9czekPPe3Pn-nUsukDRg@mail.gmail.com>
References: <YQzcYh1tAdp72LIZ@c720-r368166>
	<CAECtzeXep-aPLgT1hr_QmQv6SyO6W31EE=Z=kMZKJ9J+D=Kt1Q@mail.gmail.com>
	<YQzj6YEyfyfJ8t1C@c720-r368166>
	<CAECtzeWCnDg9NUpx0j111vS6Z3T=8n9czekPPe3Pn-nUsukDRg@mail.gmail.com>

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





view thread (9+ messages)  latest in thread

Message-ID: <YQzqGyKS26qthhEv@c720-r368166>
Permalink:  ../YQzqGyKS26qthhEv@c720-r368166/
Also on:    postgresql.org/message-id/YQzqGyKS26qthhEv@c720-r368166

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: guru@unixarea.de, guillaume@lelarge.info
  Subject: Re: psql's default database on connect (our internal ref. SRP-30861)
  In-Reply-To: <YQzqGyKS26qthhEv@c720-r368166>
  References: <YQzcYh1tAdp72LIZ@c720-r368166> <CAECtzeXep-aPLgT1hr_QmQv6SyO6W31EE=Z=kMZKJ9J+D=Kt1Q@mail.gmail.com> <YQzj6YEyfyfJ8t1C@c720-r368166> <CAECtzeWCnDg9NUpx0j111vS6Z3T=8n9czekPPe3Pn-nUsukDRg@mail.gmail.com> <YQzqGyKS26qthhEv@c720-r368166>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox