pg 12 \if unwanted message - Mailing list pgsql-admin

From Pascal CROZET
Subject pg 12 \if unwanted message
Date
Msg-id PAXP251MB01786C0C43229D1646930D0B98969@PAXP251MB0178.EURP251.PROD.OUTLOOK.COM
Whole thread Raw
In response to Re: Oracle data to PG  (Ron <ronljohnsonjr@gmail.com>)
Responses Re: pg 12 \if unwanted message
List pgsql-admin
Hi postgresql community,

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

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

postgres@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@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, Think, Build, Run the Cloud

 www.metanext.com  04 78 22 74 90


pgsql-admin by date:

Previous
From: Ron
Date:
Subject: Re: Oracle data to PG
Next
From: Ron
Date:
Subject: What to watch out for when ALTERing NUMERIC(38,0) to BIGINT?