Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tecHg-00EeBX-Gm for pgsql-docs@arkaria.postgresql.org; Sun, 02 Feb 2025 15:53:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tecHf-007e61-35 for pgsql-docs@arkaria.postgresql.org; Sun, 02 Feb 2025 15:53:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tecHe-007e5s-Rx for pgsql-docs@lists.postgresql.org; Sun, 02 Feb 2025 15:53:18 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tecHc-002sWR-0T for pgsql-docs@lists.postgresql.org; Sun, 02 Feb 2025 15:53:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 512FrE88355089; Sun, 2 Feb 2025 10:53:14 -0500 From: Tom Lane To: "David G. Johnston" cc: "raf.meeusen@gmail.com" , "pgsql-docs@lists.postgresql.org" Subject: Re: creating a database In-reply-to: References: <173848833746.1071.1393591399711817136@wrigleys.postgresql.org> Comments: In-reply-to "David G. Johnston" message dated "Sun, 02 Feb 2025 08:35:44 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <355087.1738511594.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Sun, 02 Feb 2025 10:53:14 -0500 Message-ID: <355088.1738511594@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > On Sunday, February 2, 2025, PG Doc comments form > wrote: >> And what also could be clarified: can a database only be created on the >> server side? >> Or is there also a client (SQL) command to create a new database on the >> server? > The description of createdb explains it is a wrapper for the “create > database” sql command. Yeah. What this page is really meant to do is help you get past typical problems in accessing an installation you've just set up. We mustn't load it down with answers to every question a novice could have, especially not questions that are answered on adjacent or linked pages. If we were to extend it at all, I'd think about expanding its charter to include "help you get past typical problems in accessing an installation on another machine". This'd involve mentioning the -h and -p switches, probably. But I'm not sure if that would be a net benefit or just confuse some users more than it helps others. Another thought is that the first para on the next page, which mentions alternatives such as pgAdmin, maybe should be moved here with some suitable alterations (or added to the end of Architectural Fundamentals, perhaps). Both of these pages are oriented towards "access Postgres from a terminal command line", which I concede is probably a minority thing anymore. regards, tom lane