Thread: what \ command actually run

what \ command actually run

From
Steve Clark
Date:
Hello,

I seem to recall seeing somewhere that you can turn on an option that
will let you see what the \ command actually run, but googling and doing
a quick scan of the docs didn't turn it up. Could someone assist me on
this?

Thanks,
--
Stephen Clark
NetWolves
Director of Technology
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.clark@netwolves.com
http://www.netwolves.com

Re: what \ command actually run

From
Adrian Klaver
Date:
On 08/16/2013 07:07 AM, Steve Clark wrote:
> Hello,
>
> I seem to recall seeing somewhere that you can turn on an option that
> will let you see what the \ command actually run, but googling and doing
> a quick scan of the docs didn't turn it up. Could someone assist me on
> this?

psql -E

http://www.postgresql.org/docs/9.2/interactive/app-psql.html

-E
--echo-hidden
Echo the actual queries generated by \d and other backslash commands.
You can use this to study psql's internal operations. This is equivalent
to setting the variable ECHO_HIDDEN from within psql.

>
> Thanks,
> --
> Stephen Clark
> *NetWolves*
> Director of Technology
> Phone: 813-579-3200
> Fax: 813-882-0209
> Email: steve.clark@netwolves.com
> http://www.netwolves.com


--
Adrian Klaver
adrian.klaver@gmail.com