Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1twAc3-00BOgn-Rn for pgsql-general@arkaria.postgresql.org; Sun, 23 Mar 2025 01:58:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1twAc2-0073id-DL for pgsql-general@arkaria.postgresql.org; Sun, 23 Mar 2025 01:58:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1twAc2-0073gd-0q for pgsql-general@lists.postgresql.org; Sun, 23 Mar 2025 01:58:54 +0000 Received: from mail-oa1-x2d.google.com ([2001:4860:4864:20::2d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1twAbz-000bCZ-3A for pgsql-general@lists.postgresql.org; Sun, 23 Mar 2025 01:58:53 +0000 Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-2c1caacc1f7so1841388fac.3 for ; Sat, 22 Mar 2025 18:58:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742695131; x=1743299931; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MpPwTBx4zsNMROPWjSeaLbOcHioN1KiJdHa+CjQ9t5o=; b=bWjE7jho9pkuwPlwtvjR68ZC/HFHci73PYU/8t7G+cdLeUvv9uZMLVpNpjCGYT6Z9g 1rzZEH/eGg5mQa54Jk05LDVTxpxvXkrIuSWS75dfYTkLD+5KUsnYq7RMu/NahScGzxwD +K/PK/ijl4zeGDmc4SWRiwJwC1ax7OCD3f/XoZafk7YRLzuc3W6E4nxe8YdL4kwS7DOR LbAUc02Aqct8GSoulIpV1U8ymjuTFY4N/i878taOQevbO3UlP1w1aeJjPwRrQAafdCDh ABfvq4vxEdAe+DvUk3e4O9NdRUDwDOJgZly93cPgcRT7QklLhbeGvxfnjP+eF5YR2MYU JNRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742695131; x=1743299931; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MpPwTBx4zsNMROPWjSeaLbOcHioN1KiJdHa+CjQ9t5o=; b=WHIaG1qpsKUuvW5FNgF7ScMZrAy1h3C1NL2tjpX2NoftuKZAfWUSUE0bAtNPQKOx6T l6YbcDJET+raAJccx8TNy9dHjRnNYT2qgl5KEOOBWydZgXyK5ZbwgxcHBbMB7XtEIw34 htF9T4V73ddlvXNEo4kZhaLnFHdEl8uHGpg3APPrOIeFr/YFvfnp26ALQ0Ej9Orj5bpk 3OmEUSZqK+4gEwzPyk0ldk+1QioYs9Q+1bbPUUQcjeo3w19kWuHrdT1iEgv0VVbKjQKj fvcaG7AuUhNJoIIiD3ahnHOXIQK2/KyGPLdmFUkKfLoOFaw87zRDmjphmoPk1mfx8014 KfNw== X-Forwarded-Encrypted: i=1; AJvYcCU6iiagSzNt7oXSrC56O13wDDz7ty6f8S8UqfRZK2wj8iB0PCLxkufkFDGAx2MORTvVFGI8XpjX0fF4dtg0@lists.postgresql.org X-Gm-Message-State: AOJu0Yz2Y2lwftBaqiELOgxgeW/AraO6yDbG+PQ73DzgiQ+p/aF3obz+ DD/3QHtQ41T2LlJYi7t+rYJGDsJHtl+38Uqiv2YRs3HOm+IWyquPclUINkk83YMNcbc6/3HK6kT sIExzpDXL5MW4VepZS4CAlZgp7GQ= X-Gm-Gg: ASbGncuyc8H9ESqB/vushzdlJlxS0RmPb3pPLcHxbVBEWsvpc4w139wUmlBlLXHVDsW 3mN5ed28lQYsqkJWEmJx0pM5LC6nw3qA6f8OIYIa7bHjMk+BHHUN/H1ZS8FYK+c39wNTi7io5fy Gyqs+IR47VA77hC66ot/WYlk4W X-Google-Smtp-Source: AGHT+IFhm8/mIrERUZAPgOE2HVkWHEdE0mz+zG5dr08fzuQr8THTog7DsLHBrZV3yUWi/m1OAyacaxw08MUlwU8dJfw= X-Received: by 2002:a05:6870:7012:b0:29e:6394:fd4a with SMTP id 586e51a60fabf-2c7801bc431mr5990040fac.2.1742695130947; Sat, 22 Mar 2025 18:58:50 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a8a:349:0:b0:589:13f9:e937 with HTTP; Sat, 22 Mar 2025 18:58:50 -0700 (PDT) In-Reply-To: References: <90741d5f-5cda-4c4a-84f4-c470129732f4@aklaver.com> From: "David G. Johnston" Date: Sat, 22 Mar 2025 18:58:50 -0700 X-Gm-Features: AQ5f1JpSGK0_OCfgj2uRHhxaReOtQTIWQ4tCFdcIC6xDRCf6dyb_WKwoDxi7184 Message-ID: Subject: Re: Determine server version from psql script To: Igor Korot Cc: Adrian Klaver , "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000003b67690630f8d4a2" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000003b67690630f8d4a2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Saturday, March 22, 2025, Igor Korot wrote: > > >> Is it actually running in psql? >> > > Yes, i run "psql - d draft -a -f > Then read the psql docs. Your version has \if and you=E2=80=99ll find serv= er version listed as the available client variables. David J. --0000000000003b67690630f8d4a2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Saturday, March 22, 2025, Igor Korot <ikorot01@gmail.com> wrote:
=


Is it actually running in psql?

Yes, i run "psql - d draft -a -f <fi= lename>

Then read the psql d= ocs.=C2=A0 Your version has \if and you=E2=80=99ll find server version list= ed as the available client variables.

David J.

--0000000000003b67690630f8d4a2--