On Wednesday, August 29, 2018, saurabh shelar <saurabhshel...@gmail.com> wrote: > > As per the document from PG-9.6 it is possible. >
You cannot use psql variables with -c “ command must be either a command string that is completely parsable by the server (i.e., it contains no psql-specific features), or a single backslash command.” https://www.postgresql.org/docs/10/static/app-psql.html David J.