pgcli icon indicating copy to clipboard operation
pgcli copied to clipboard

Support the \echo command

Open mozeryansky opened this issue 3 years ago • 0 comments

Description

psql has a \echo command which appears as a syntax error in pgcli.

$ pgcli $DATABASE_URL
Server: PostgreSQL 14.1
Version: 3.4.1
Home: http://pgcli.com
postgres@db:postgres> \echo hi
syntax error at or near "\"
LINE 1: \echo hi

vs

$ psql -d $DATABASE_URL
psql (14.2, server 14.1)
SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits: 256, compression: off)
Type "help" for help.

postgres=> \echo hi
hi

mozeryansky avatar Apr 30 '22 21:04 mozeryansky