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 1tdd1E-008Zqz-Oe for pgsql-general@arkaria.postgresql.org; Thu, 30 Jan 2025 22:28:17 +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 1tdd1D-00DaV0-2F for pgsql-general@arkaria.postgresql.org; Thu, 30 Jan 2025 22:28:15 +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 1tdd1C-00DaUr-OP for pgsql-general@lists.postgresql.org; Thu, 30 Jan 2025 22:28:14 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tdd1A-002MQ8-1S for pgsql-general@postgresql.org; Thu, 30 Jan 2025 22:28:13 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id B938D2A43CF for ; Thu, 30 Jan 2025 14:28:11 -0800 (PST) Date: Thu, 30 Jan 2025 14:28:11 -0800 (PST) From: Rich Shepard To: "pgsql-general@postgresql.org" Subject: Re: Using psql's \prompt command In-Reply-To: Message-ID: <28334f3d-5942-4849-374f-32f2f6a4e9c@appl-ecosys.com> References: <1dbc1ace-c119-6ed2-d579-561525f3bf0@appl-ecosys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 30 Jan 2025, David G. Johnston wrote: > Prompt isn’t your issue. Prompt stores the value into a variable. Read how > to reference variables in a psql script. David, Thank you. I'll look into using the \set command. Rich