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 1kMrn7-0001Ya-3U for pgsql-general@arkaria.postgresql.org; Mon, 28 Sep 2020 11:58:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kMrma-0004d4-H2 for pgsql-general@arkaria.postgresql.org; Mon, 28 Sep 2020 11:57:28 +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 1kMrma-0004cx-6u for pgsql-general@lists.postgresql.org; Mon, 28 Sep 2020 11:57:28 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kMrmX-0005Xs-Lf for pgsql-general@lists.postgresql.org; Mon, 28 Sep 2020 11:57:27 +0000 Received: by mail-pf1-x42d.google.com with SMTP id d9so804100pfd.3 for ; Mon, 28 Sep 2020 04:57:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=aDMmDWdW/VkcP9wvAIdCRl2l8/5XCCDe9WGEL7dO6L0=; b=a8OZC1wYNelou6sRq44PL9z6ZNgphR/pwOsUyIYckqOb6I/LvKMMngcYmyvbl7KBGs XhY+4ygWVCsiuThwZc3jXZG/goMQSRZJSF1W6O8UAr8cx+CmdPMIwg6K+0x46T6kNRxD W8KAReASCCUdLfTU4qmdbH+a6oTD/zPV4WKyuuXyKDbzf+5EAbWF8wOoV8TygcpLPrH+ GpQb3ZoHeU9Cg3yCkTQ9fDtvK3Nk+Q+O8GsRycrtt3/mC/2/pfUG8mps2H007q/KOMha Amgu+ChEnnRul1gvc7J9VxsqKEKg4ur5cF9WHzjpt5pFimrLHY+TxX5IKJJjXT54EXKW YmjQ== 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-language :content-transfer-encoding; bh=aDMmDWdW/VkcP9wvAIdCRl2l8/5XCCDe9WGEL7dO6L0=; b=sthpZA0phwxz8/yQiNuDgSM1r8DV4YGr7RuZWRsvz4id1S59Hmdyo/jwvqo27u3A9q WKg3KCSTKX5n5dHjJhPrLvY4DrDDsbVOVuiRVIjdtl73AkE6RmPdwuNp2W2kfK2Di8gV CGScac0XIJJA201cBw+OUVs0i+GBcUs2sQGLebT0TnzIEd6JO1WzZNHHAJrzVaN728SG XrbUiS4HhoOMAuW/KmErlEWFxr25MEBu0sqlZ1Sgkpk3nFyi/auB8ruLzi96L9qO9PZj pEf/4U2/6nmKaBMO7jn8lsv1ysWBh6mWYPi+CSnVfwPjqTL36fLuHyIqt7GnICK72yz3 yhSA== X-Gm-Message-State: AOAM531VqTXX93WijZgoGjFmLxxIsL4xei6EWfV9rfdLCw4llm019I0x eWJn1QPfBpXleAwtkkcTmKZYXGi9CL7Kas6+isKzOnR13gKyMFB27MgPfa1uRhG59APiDPS7old 0mnSIG+W14CEO96N8KgJP5BHR/B5QuECLILY5qTBk1sm9as11cdf3lE91wkD6n7PCaKJncuCO8B KSTolwsKCa7c8J25KAfDQsd80= X-Google-Smtp-Source: ABdhPJxSOw8ottIGa14kMGmKGHN1CvAO0D/TV3Kf5z1893+UsMcJDTo5f6R664cMmMRi1SteWbaIHA== X-Received: by 2002:a63:1657:: with SMTP id 23mr930643pgw.168.1601294242611; Mon, 28 Sep 2020 04:57:22 -0700 (PDT) Received: from osaka.octopusnet (p13186-ipngn8201marunouchi.tokyo.ocn.ne.jp. [153.214.140.186]) by smtp.gmail.com with ESMTPSA id y24sm1447059pfn.161.2020.09.28.04.57.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Sep 2020 04:57:22 -0700 (PDT) Subject: Re: how to switch off: WARNING: psql major version 11, server major version 13 To: Matthias Apitz , PostgreSQL General References: <20200928100625.GA2645@r314251-amd64> From: Ian Barwick Message-ID: <9cb999c0-9630-4fee-b23e-788ebefab743@2ndquadrant.com> Date: Mon, 28 Sep 2020 20:57:19 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200928100625.GA2645@r314251-amd64> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020/09/28 19:06, Matthias Apitz wrote: > > Hello, > > Maybe it's a FAQ, but I haven't seen the answer. I want to switch of the > warning (because I know the fact of version not matching): > > $ psql -Usisis -dsisis > SET > psql (11.4, server 13.0) > WARNING: psql major version 11, server major version 13. > Some psql features might not work. > Type "help" for help. > > sisis=# > > I tried to do it with the ~/.psqlrc file: > > $ cat ~/.psqlrc > SET client_min_messages = 'error' > > The command gets executed (as the 'SET' shows), but does not silent the > warning. This warning is generated as a printf() statement by psql itself and is not affected by "client_min_messages" (which sets the level of error messages to be returned from the server). Looking at the source, there's no other way (apart from the -q/--quiet option) to suppress this warning. Regards Ian Barwick -- Ian Barwick https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services