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 1nAylf-0005dg-26 for pgsql-general@arkaria.postgresql.org; Fri, 21 Jan 2022 18:36:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nAyld-00039y-U3 for pgsql-general@arkaria.postgresql.org; Fri, 21 Jan 2022 18:36:09 +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 1nAyld-00039h-Iv for pgsql-general@lists.postgresql.org; Fri, 21 Jan 2022 18:36:09 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nAylX-0002ok-T7 for pgsql-general@postgresql.org; Fri, 21 Jan 2022 18:36:08 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 71F1832022E8 for ; Fri, 21 Jan 2022 13:36:01 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 21 Jan 2022 13:36:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm2; bh=Fyc32BldXdWBraAwfCrsgqCgpP9odRJojGWh1t CsFJA=; b=QSUhCakBd5odh1XbTm8QTQ6T11X+EUakGUwaz/gByRwCceqhttWFiP v3VWJcwf7/qFeHuvLRKxHCGLAXj4gSQ/vgRwc33gO60kUYwmUKyOSSQgHWy+S20A LvOPKLt+eWNV8dG2OFG1hBk952EKvordr64/5CgdD6zku3aIvGnRpkx0l9EUStC+ Oh2Zz4Cf9Yu6kuTz1aIv+5rpMWguZMJLW/Sur4eTbWd1vXvl1B3BekGA8f3sMXaa 27HmTtVXA5Zcubzp3ZjdQbxLwaJu9I5TM4EPcArh0YGUKsSAZzJHwE4mIwpkzAau aBWvLx9vbE6T8Mgw9IZRC1g/FxUpekCQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Fyc32BldXdWBraAwf CrsgqCgpP9odRJojGWh1tCsFJA=; b=K349cFf4uJzBfIt91a/6lcTccUcQq/6Ye jDCqtt22DLXP9WIe4cMTdiDfzq+QllGQPG8Pr7/O44h9pf2LlZQnZ2ZwSjdcKISA ylP2GZv2+lxFNo/UPIsA+uLDgwRgR0cXn+VOoXmd3m88hfKyNOggSKzDXDnk5UQu u7YYKKcbQ5rxrIxffyxMmAqzIIYjoKyXwfgGfahA4bkLGP4uBjGCfR6KvTJ6kqlo PwPc/TCLd9RpTEEnTj2J0fT/HFadq8plQAyj39SN4MhMpE7iwvBVQK66VA02SLwn sC9CGwITGR3JtUaimNHKxmSC2WuAMvZ+Qfld3xqz/VQKlXVp+ZcXg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrvddtgdduudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefvhffukffffgggtgfgsehtjeertd dtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgr vhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnheptdelhedvveevie evieehtdefjeevhfffffettdffvdeftddttdffleegueeutdffnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 21 Jan 2022 13:36:00 -0500 (EST) To: pgsql-general From: Adrian Klaver Subject: psql and Postgres 7.2 Message-ID: Date: Fri, 21 Jan 2022 10:35:59 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 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: Archived-At: Precedence: bulk In answering a question on SO I discovered this: \l PRODUCTION List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges ------------+----------+----------+-------------+-------------+------------------- production | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | \c PRODUCTION FATAL: database "PRODUCTION" does not exist Previous connection kept which I traced back to(from Postgres version 14): src/bin/psql/command.c /* * Read and interpret an argument to the \connect slash command. ... /* * Ideally we should treat the arguments as SQL identifiers. But for * backwards compatibility with 7.2 and older pg_dump files, we have to * take unquoted arguments verbatim (don't downcase them). For now, * double-quoted arguments may be stripped of double quotes (as if SQL * identifiers). By 7.4 or so, pg_dump files can be expected to * double-quote all mixed-case \connect arguments, and then we can get rid * of OT_SQLIDHACK. */ Since Postgres 14 pg_dump only goes back to 8.0 and the \d commands in psql go back to 7.4, is this something that needs to hang on? -- Adrian Klaver adrian.klaver@aklaver.com