Re: [HACKERS] psql - add ability to test whether a variable exists - Mailing list pgsql-hackers

From Robins Tharakan
Subject Re: [HACKERS] psql - add ability to test whether a variable exists
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: [HACKERS] psql - add ability to test whether a variable exists  (Fabien COELHO <[email protected]>)
Responses Re: [HACKERS] psql - add ability to test whether a variable exists
List pgsql-hackers
The following review has been posted through the commitfest application:
make installcheck-world:  not tested
Implements feature:       tested, failed
Spec compliant:           not tested
Documentation:            tested, failed

The patch applies cleanly and compiles + installs fine (although am unable to do installcheck-world on my Cygwin
setup).
This is how the patch works on my setup.

$ /opt/postgres/reviewpatch/bin/psql -U postgres -h localhost
psql (11devel, server 9.6.1)
Type "help" for help.

postgres=# \set i 1
postgres=# \if :{?i}
postgres=# \echo 'testing'
testing
postgres=# \endif
postgres=# \if :{?id}
postgres@# \echo 'testing'
\echo command ignored; use \endif or Ctrl-C to exit current \if block
postgres@# \endif
postgres=#

--
Sent via pgsql-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: [HACKERS] Boom filters for hash joins (was: A design for amcheckheapam verification)
Next
From: Alexander Korotkov
Date:
Subject: Re: [HACKERS] Re: proposal - psql: possibility to specify sort fordescribe commands, when size is printed