Re: how to switch off: WARNING: psql major version 11, server major version 13

From: Paul Förster <paul(dot)foerster(at)gmail(dot)com>
To: Matthias Apitz <guru(at)unixarea(dot)de>
Cc: PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: how to switch off: WARNING: psql major version 11, server major version 13
Date: 2020-09-28 10:17:26
Message-ID: EA55506E-2B58-4A1E-B3B8-EDF66745AB1D@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Matthias,

> On 28. Sep, 2020, at 12:06, Matthias Apitz <guru(at)unixarea(dot)de> 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.

try the -q switch to psql:

$ psql -q

That should do.

Cheers,
Paul

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2020-09-28 11:13:05 Re: Question about using ICU
Previous Message Matthias Apitz 2020-09-28 10:06:25 how to switch off: WARNING: psql major version 11, server major version 13