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 1ucNgd-00CH45-Lu for pgsql-docs@arkaria.postgresql.org; Thu, 17 Jul 2025 12:26:07 +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 1ucNgb-0024GE-0Z for pgsql-docs@arkaria.postgresql.org; Thu, 17 Jul 2025 12:26:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ucNga-0024G6-Nu for pgsql-docs@lists.postgresql.org; Thu, 17 Jul 2025 12:26:05 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ucNgY-007ksk-0Y for pgsql-docs@lists.postgresql.org; Thu, 17 Jul 2025 12:26:04 +0000 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-451d54214adso6317345e9.3 for ; Thu, 17 Jul 2025 05:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1752755160; x=1753359960; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=EwuGHrc5qUajjWt+zodjlLUjNPvGim9DfEm19xONang=; b=eEeHQwQvWO7m0MCvC+7iASmwVDhVLMIztIhzZVJadzVRFddPtLROC+kR30eTq++VZs ujGq+mZQ08QKOBxpa1rHAXJe6rX/3jwLohWIZZu2+vEbOTLFvubJDWF8vfSZ+xISkTKn JbOXQw7VVSz8c0/xAoY6O9zbOBOKQvlteqXHUifvr6lTKFdbMlJH7abUAVsLBYWjdxc8 j+FqgZlDlaM4gV6URIN62OmEh0zpAzgjWP41FsbwVjw19ktjXdqxqeasyKh2aMnwRqqv Y/vv0k8Gf5ur9w7Xsl/46vpxCk7U73qTRVKzn6ZC7xlHUqif/z6wETRW5kapOJ1T7nj2 LhXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752755160; x=1753359960; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=EwuGHrc5qUajjWt+zodjlLUjNPvGim9DfEm19xONang=; b=O1sVYjp6Ej2LYOyShJwCN/0TtdhSjGlH1aI+SSmBLn5Omxp3cpMVOk/KqblkkRqdQi Gw59axbOW9Cqmy3SKW0nXPAq2xsE4Rn3GFdY/t9An3Egx464gzEQNlZZon1VnofiPWnm 6RslHdkLnIrRdzP3aCcbHqKi96nBIdBxZsTleVk6B0mV5eSpwR1Dk2cnXjU757S0+olx LyE8wHMl04A4/cKjBX+7kaHZMrbAIKWqCbAzgTMBd52wcx+JZmu983GSSR3IKs2WPpNq dgjmlWW0/J0+wX1bEngsDcwTbW4IQ5okvwVc7OpPB3ns/YJ+FYBrs1O507F+pd3MU909 Z4NQ== X-Forwarded-Encrypted: i=1; AJvYcCWEMEfOMKWPx2pkFFN47TzCOJE7shw2KnpwAZ+AIqmDyh91WaH28IypwxR5By6GFzL2ATQnDXYZjVn0@lists.postgresql.org X-Gm-Message-State: AOJu0Yyr1Rg/a/2C1h7TZZI0dUc9ZLnMLd1bTXsQwLBxEJ6gy+An4mc8 ChkOHqS3yEFR4ILYX8HkQE2pZUKdrILsxdBpUt6CdXw+T162cqFzgXOrfJdkRuZ+TzemL0f9mXW mEkDW X-Gm-Gg: ASbGncuJhF2Y1JLXEEK1o9rPxa32895/niW1XMJuijc4JL+Xz9D3TQKz3yAuvn57IHL DN31JKNsAwNz5DJ1aDtBbSCXFGyih3E6hCZN4UdrJcW+TbJKjNCBKcoggkhI6grWTMI8Lhj2vgP TRspG77UX6/R5kgM4v/jnWHrzgqlfixJ/JBL15jZlwFTHmTKG1g9hI0SiMLJsNwXfxJAJMQ14aT BfV0Dj15uAxNCTOQX+VuhZSzHFS8QwhfDww1Wpqsboju/4qGCjl5VLLxAofVviqm3oDjOKb2X9p V8J+7Jue0UrRBQ7u4KREeYzadLondfD96LdjBV87CH/GmhXopCA5FUhRQLUF696NBLWdwyTDY/9 IZ6KDUyftkqZeL3JMNuM/W0/Sp92vNBB8WnU0EhpqPzT3i5t4SelifliriOrprw== X-Google-Smtp-Source: AGHT+IE6lFLYhq3HwmQ4gMVWFIdQwN58x7u0ZgQ5ItcGWxKgK9TpFHRavqB/S6IrtuGx7wNSP99U/w== X-Received: by 2002:a05:6000:420b:b0:3a8:6260:d321 with SMTP id ffacd0b85a97d-3b613e60143mr2174878f8f.3.1752755160470; Thu, 17 Jul 2025 05:26:00 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:5e:686d:4769:5fb2:46f9:885f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b5e8e1e135sm20817882f8f.72.2025.07.17.05.25.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Jul 2025 05:25:59 -0700 (PDT) Message-ID: <9e97b8930ada53c02a538a08db369ab956a5548e.camel@cybertec.at> Subject: Re: Creating Database Querry in psql CLI From: Laurenz Albe To: msd.sheraz046@gmail.com, pgsql-docs@lists.postgresql.org Date: Thu, 17 Jul 2025 14:25:58 +0200 In-Reply-To: <175263827957.858621.656351321405492725@wrigleys.postgresql.org> References: <175263827957.858621.656351321405492725@wrigleys.postgresql.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-1.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2025-07-16 at 03:57 +0000, PG Doc comments form wrote: > Page: https://www.postgresql.org/docs/17/tutorial-createdb.html >=20 > The querry to create database you mentioned in this document (createdb > db_name) is not working in my Debian OS , rather create database db_name= ; > is working I *guess* (since you say "querry") that you are already on the "psql" prompt when you enter "createdb db_name", which won't work, since that is a shell command. The $ at the beginning of the line should give you that clue. That would also explain why "create database db_name;" works for you, because that is an SQL statement. Yours, Laurenz Albe