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 1oH9X0-0006O1-8v for pgsql-general@arkaria.postgresql.org; Thu, 28 Jul 2022 19:50:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oH9Wy-0003Hq-PA for pgsql-general@arkaria.postgresql.org; Thu, 28 Jul 2022 19:50:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oH9Wy-0003Hh-9E for pgsql-general@lists.postgresql.org; Thu, 28 Jul 2022 19:50:48 +0000 Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oH9Wt-00079q-BM for pgsql-general@lists.postgresql.org; Thu, 28 Jul 2022 19:50:47 +0000 Received: by mail-oi1-x230.google.com with SMTP id n133so3625296oib.0 for ; Thu, 28 Jul 2022 12:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to; bh=D5OlRr+fSb7g+TgjzcYaEvwMJVE9EtgiK1qMhED905Q=; b=Ac3u8p44kV7ske4tlg/KXzgrBjf0nx4J80EGfVUpfNwvgvgUd4UbdBTa6uk59mhF2B qYVU95Hqx91GSkw//9ij/zO98aEco/c9BZNVDlyF79JF0FXw94zrpiLxlpym17YWUPoz su3O+24IG4qB8xY6YOxp+q2chShwhuf9uAkcG02FluIkNHqWG2i74QGJV/KhcS/HjpK/ 1Wuk9cTsgakHg5VSzn/DNLy5nOP5KVvQXfWEkKtOCLQUidM/yiVmM1Gu+pxfU1As01Jt 2oWIK2/GnK44rc4PU9F3PQKfBtmqc0l8uBobWGEfLYGKK6Afdtt/Fv6sJaOOboGVECnm x9rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to; bh=D5OlRr+fSb7g+TgjzcYaEvwMJVE9EtgiK1qMhED905Q=; b=hoEG0/UKsnSJmSGQ4W9a1BFZrW4mfwvk7lALmrMCyeRGgTswBX8zH33s77D70BnH8S Ixl/8A+TvBc09Z+r427mP9zizBiUo+XZ7z46cR+54oUpQ5wAuPIikemphi9Ywku1K/jM AIUyZ8vF1kiUKUPxScV264FAEtxv6vnZhnvef88T4ixmwgWwWifQN+hTfL5tOvvnXq+A lMYweShblZjpC5GmImNcDf5F1h+buOCFIMWhmOQFf7G+vmKb8pPoJPCJffQWwvb71RHc +8KWnUrGwRDZJXCAJ7wc5M260750XkMPKsdjCOpEXe0voBb0KKbb6QMlUEcnzK4oTDvh sJ9Q== X-Gm-Message-State: AJIora8KyOFdfIP3Xzj4+PYzLzGz78ofW5kUVqT5msFoUsauiwSRrYZu d8ziNyaMKQuq2Usuhwt6GMt5Z7wNp0A= X-Google-Smtp-Source: AGRyM1te0SXieM6UrDDDTvTMHEnC72Kd0vU1UZge/CQ4XowXTV5xOTVlqZqJ7WiDYWFOl1rttmCpPg== X-Received: by 2002:aca:bcc1:0:b0:33a:f64b:9f21 with SMTP id m184-20020acabcc1000000b0033af64b9f21mr445548oif.245.1659037842524; Thu, 28 Jul 2022 12:50:42 -0700 (PDT) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id w23-20020a056830061700b00616d3ec6734sm626338oti.53.2022.07.28.12.50.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Jul 2022 12:50:42 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------28T92U39m0Ginx41nyjqMD0T" Message-ID: Date: Thu, 28 Jul 2022 14:50:41 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: Syntax error when combining --set and --command has me stumped Content-Language: en-US To: "David G. Johnston" Cc: "pgsql-generallists.postgresql.org" References: <352ceea1-029d-726e-89b5-74be4946e67b@gmail.com> From: Ron In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------28T92U39m0Ginx41nyjqMD0T Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 7/28/22 14:47, David G. Johnston wrote: > On Thu, Jul 28, 2022 at 12:40 PM Ron wrote: > > What secret sauce am I missing to get this to work? > > > Given that the documentation says: > > "command must be either a command string that is completely parsable by > the server (i.e., it contains no psql-specific features), or a single > backslash command." And all this time, I was looking in the |--set=/|assignment|/| section of the psql doc page... https://www.postgresql.org/docs/12/app-psql.html > > I don't see how you can do anything to make that work. > > David J. > -- Angular momentum makes the world go 'round. --------------28T92U39m0Ginx41nyjqMD0T Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit On 7/28/22 14:47, David G. Johnston wrote:
On Thu, Jul 28, 2022 at 12:40 PM Ron <ronljohnsonjr@gmail.com> wrote:
What secret sauce am I missing to get this to work?

Given that the documentation says:

"command must be either a command string that is completely parsable by the server (i.e., it contains no psql-specific features), or a single backslash command."

And all this time, I was looking in the --set=assignment section of the psql doc page...

https://www.postgresql.org/docs/12/app-psql.html


I don't see how you can do anything to make that work.

David J.


--
Angular momentum makes the world go 'round.
--------------28T92U39m0Ginx41nyjqMD0T--