Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iv31c-0008PW-76 for pgsql-general@arkaria.postgresql.org; Fri, 24 Jan 2020 17:45:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iv31a-00081L-Rb for pgsql-general@arkaria.postgresql.org; Fri, 24 Jan 2020 17:45:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iv31a-00081E-Hm for pgsql-general@lists.postgresql.org; Fri, 24 Jan 2020 17:45:42 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iv31V-0007gI-8Q for pgsql-general@postgresql.org; Fri, 24 Jan 2020 17:45:42 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E603221EFE; Fri, 24 Jan 2020 12:45:35 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 24 Jan 2020 12:45:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=u JqLp8OBVXwa9XLcj+KeQkjgnlRlORyR+7K/pr3eOGw=; b=faBfF+7Pw72dx7fkp qnlhyA8h8K8XdZMVlvN1FOdBqj/jdNnkCuC4gBcURGgyfOw3lHF7XY6C4zELBS+w bwZ/po5Hga1s4e3VCyZ0UWGYYmaGLumamkC0AR+wR1z5IYAK7oqd+m/pcVeI/3RL hmFfLucMrX42YwmyjNe0V/zk2Lh94xHhiUXfGuiloyNq62ziJneNxMUuW59i7FuM f5UxlpPaJS/yvW+uxrfoJoFIgokPXC1JYfTi5EmJ3HjKCu5PSHkrorqHbMKsVAz5 fZx8+YfhuSPe9TuxTczDMMzr+gzBEOb8CX4IcP8yC/dzr/VGtXJ0G9wkwIBTaKJB dBknA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=uJqLp8OBVXwa9XLcj+KeQkjgnlRlORyR+7K/pr3eO Gw=; b=pb7oJp836ruVtXeYtB0bTLVoxFXuWJeBucjl5La5v8J/oAiCeWyHG+2K+ GbL3plA5WNGczTCCgXxbq0eMS63KNnCMv49FIef4IDhwfnFP+lRzcrMq6W2JJE7v WOuo+A7IcPkGwueSLd3L0yxRdKYKa6ycfNoLDdWoXvK+RviIXdHXBr7eeJLVWc8U OqwoDYQdVwz0qnWtmInkutob2TS6J+NFI3SF41zWaaL1F3YtNnlZ4zcJ/cwFhMT3 +MqR+G+0a4PIqN4z9DSB+if+pQJD5Mpy860/U3BIktQML2lVVbsN4Qcl/vh3y2CD 1vTrlKAQxKrxqxAKjJBHN9ihZPUUg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrvdeggddutdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecukfhppeejfedrvdef ledruddujedrvdefkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from ranger.suse (c-73-239-117-238.hsd1.wa.comcast.net [73.239.117.238]) by mail.messagingengine.com (Postfix) with ESMTPA id 0FDE13061B64; Fri, 24 Jan 2020 12:45:34 -0500 (EST) Subject: Re: continuation character for meta commands in psql To: Matt Zagrabelny , "pgsql-general@postgresql.org >> PG-General Mailing List" References: From: Adrian Klaver Message-ID: <1bf00d23-b125-54a8-71c9-e708270d7983@aklaver.com> Date: Fri, 24 Jan 2020 09:45:34 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/24/20 9:42 AM, Matt Zagrabelny wrote: > Greetings, > > I've searched the internet and also the pgsql-general list for an answer > to this question, but couldn't find one. > > Is there a continuation character for meta commands in psql? > > I've seen mention that a caret (^) could be used, but it didn't work > correctly and the psql man page makes no mention of it. > > I'd like to do something like: > > \set PROMPT1 'long prompt code' \ > 'other long prompt configurations' \ > 'and more still' > > in my .psqlrc file. > > What do you folks think? > > Thanks for any help or guidance! See: https://www.postgresql.org/docs/12/app-psql.html Meta-Commands > > -m -- Adrian Klaver adrian.klaver@aklaver.com