pg 12 \if unwanted message

From: Pascal CROZET <pascal(dot)crozet(at)metanext(dot)com>
To: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: pg 12 \if unwanted message
Date: 2022-07-28 14:45:38
Message-ID: PAXP251MB01786C0C43229D1646930D0B98969@PAXP251MB0178.EURP251.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi postgresql community,

I've this message "command ignored" on false in \if \else \endif. How can passthrough this ?

postgres(at)postgres# \echo :SERVER_VERSION_NAME
12.11 (Ubuntu 12.11-0ubuntu0.20.04.1)

postgres(at)postgres# \if 1 \echo 'ONE' \else \echo 'NOT ONE' \endif
ONE
\echo command ignored; use \endif or Ctrl-C to exit current \if block

postgres(at)postgres# \if 0 \echo 'ONE' \else \echo 'NOT ONE' \endif
\echo command ignored; use \endif or Ctrl-C to exit current \if block
NOT ONE

_________________________________

Cordialement, Pascal CROZET

DBA - METANEXT<http://www.metanext.com>, Think, Build, Run the Cloud

www.metanext.com<http://www.metanext.com> • 04 78 22 74 90

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ron 2022-07-28 15:13:10 What to watch out for when ALTERing NUMERIC(38,0) to BIGINT?
Previous Message Ron 2022-07-28 13:42:41 Re: Oracle data to PG