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 1kn3yr-0001Ru-B1 for pgsql-general@arkaria.postgresql.org; Wed, 09 Dec 2020 18:14:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kn3yq-00058U-9c for pgsql-general@arkaria.postgresql.org; Wed, 09 Dec 2020 18:14:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kn3yq-00058N-0B for pgsql-general@lists.postgresql.org; Wed, 09 Dec 2020 18:14:24 +0000 Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kn3yj-000207-C3 for pgsql-general@lists.postgresql.org; Wed, 09 Dec 2020 18:14:23 +0000 Received: by mail-io1-xd2c.google.com with SMTP id i18so2589749ioa.1 for ; Wed, 09 Dec 2020 10:14:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=k0/WDkyHokjfmPgP/XZY/DkBQR0bNFOBJSBdJAHrKxU=; b=pcAqCQ4Ee0THnYLMNK2sP7MwerDkZeEHyAR5eyBcuGrO0yw0SMOeaB9i48wqwsJ0tt Zljc9HonLD9Rl45WlTi7/tSpCLheNZC1M47z9BAlnGZDQ0xB/V8WL7rAVnWaEuTMiWsi ckjBUGE01pyDcVKclEV0pGsxCEfwshRwqwcyRuvJ8FgQHp2nfqDUEr6oTLCrptrhcZ2o /Cg2DZ2cKohiDO0lfs4yiX+rFb8BESotq1SJmEqnSFydwAUPghvCOxI9sEpkoZYCINXA cuuhoz9aCL2XLnlmi63wb75Qbki8FbF/CyBtmS1soPe34pUxGQEUcqldwikQ7OHqe0mB aELw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=k0/WDkyHokjfmPgP/XZY/DkBQR0bNFOBJSBdJAHrKxU=; b=Nmrd1m/O81vU9cZRHihCZ8qmQWZ9ZoW2oIA9UltFlspkYHVTe16gzalhFU+rWpdCB5 9ghgeqMvu7auPywNsfTWMT7a6H5Yh9sGOxSDxvumCr7TFYBtfeZaoN1RRHkN7PAfwdLs Yyu8rlMZOrNWvwlxdjcesJLf/xdA7r2YzKZEjQ7BbKPqSWqXrJGE9zP9rHKDnATLUEj5 kEauds9BUrqr1fbeNuq0UZ3ER+eHKmaZ11s9VrHh4BHVWujJL2QhdRwGmvFgxROl57f9 PUc41GBoh6aqNFqoW6ZTEYXumeCHWy0Ykw2HEhcOt4BfQnfMGrgmrVeA4ocEe0bJvUKY 4IBg== X-Gm-Message-State: AOAM531bcPnTxoXs128FBw08Wiks6omiB4akXAX7YaUA850vV/FYXh2U mngnmESFYUz7AYKPtpGVOcYqbEUax2g= X-Google-Smtp-Source: ABdhPJwPR5/jZ7FkIhyNb0sX0QjyRU4IMIU4gTL/PxOWWdrTFOTeT6oRarNJCM72M9QcTHWa6Uy7hg== X-Received: by 2002:a5d:85c7:: with SMTP id e7mr4359622ios.162.1607537655588; Wed, 09 Dec 2020 10:14:15 -0800 (PST) Received: from ?IPv6:2601:681:5500:dde0:e871:4117:9783:1535? ([2601:681:5500:dde0:e871:4117:9783:1535]) by smtp.gmail.com with ESMTPSA id g1sm1268438ioh.39.2020.12.09.10.14.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Dec 2020 10:14:15 -0800 (PST) Subject: Re: User input to queries To: pgsql-general@lists.postgresql.org References: <6A8DEECE-01FD-405F-B577-E85038FE59D7@gmail.com> From: Rob Sargent Message-ID: <25e52cfd-c2f3-40d4-45d2-2620e65a5190@gmail.com> Date: Wed, 9 Dec 2020 11:14:13 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-CA List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/9/20 11:10 AM, Rich Shepard wrote: > On Wed, 9 Dec 2020, Paul Förster wrote: > >> maybe you're looking for this? >> https://stackoverflow.com/a/7389606 > > Paul, > > That looks very useful and I'll try the provided answers. > > Looking at the postgres-12 doc I cannot find a command 'PROMPT' > anywhere in > it. > > Thanks, > > Rich > > https://www.postgresql.org/docs/12/app-psql.html