pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julien Rouhaud <rjuju123@gmail.com>
To: Kirk Wolak <wolakk@gmail.com>
Cc: pf@pfortin.com
Cc: pgsql-general@lists.postgresql.org
Subject: Re: psql and pgpass.conf on Windows
Date: Sat, 1 Jul 2023 14:06:57 +0800
Message-ID: <20230701060657.xesvncdjkhz7j2at@jrouhaud> (raw)
In-Reply-To: <CACLU5mTxsGTafjfo+cZXtV_y12=TdJE06Qp7mS2aR0YKBBcN2w@mail.gmail.com>
References: <20230629224200.080cc1a4.pfortin@pfortin.com>
	<20230630031636.jot6q5v77dlinlro@jrouhaud>
	<20230630083854.1668913d@pfortin.com>
	<CACLU5mTxsGTafjfo+cZXtV_y12=TdJE06Qp7mS2aR0YKBBcN2w@mail.gmail.com>

On Sat, Jul 01, 2023 at 01:40:49AM -0400, Kirk Wolak wrote:
>
> FWIW, I discovered that psql is case sensitive on the dbname, without
> quoting it!

That's on purpose, since shell quoting behavior is entirely different from SQL.
The quotes are discarded by the shell, so it would otherwise require users
doing something like

psql -d '"MyDbName"'

The behavior is the same for all client tools, and other object arguments like
username.





view thread (8+ messages)  latest in thread

Message-ID: <20230701060657.xesvncdjkhz7j2at@jrouhaud>
Permalink:  ../20230701060657.xesvncdjkhz7j2at@jrouhaud/
Also on:    postgresql.org/message-id/20230701060657.xesvncdjkhz7j2at@jrouhaud

 · 

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: rjuju123@gmail.com, wolakk@gmail.com, pf@pfortin.com
  Subject: Re: psql and pgpass.conf on Windows
  In-Reply-To: <20230701060657.xesvncdjkhz7j2at@jrouhaud>
  References: <20230629224200.080cc1a4.pfortin@pfortin.com> <20230630031636.jot6q5v77dlinlro@jrouhaud> <20230630083854.1668913d@pfortin.com> <CACLU5mTxsGTafjfo+cZXtV_y12=TdJE06Qp7mS2aR0YKBBcN2w@mail.gmail.com> <20230701060657.xesvncdjkhz7j2at@jrouhaud>

* 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