Re: \x in psql

Lists: pgsql-hackers
From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: \x in psql
Date: 2005-03-23 07:16:43
Message-ID: 424117DB.9080708@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

When you turn on \x mode for query output in psql, it wrecks the output
of \d <table>, etc.

Should we change it so that the \d is unaffected by \x? What about for
other \d commands?

Chris


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: \x in psql
Date: 2005-03-23 16:13:59
Message-ID: 200503231613.j2NGDxn03448@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Christopher Kings-Lynne wrote:
> When you turn on \x mode for query output in psql, it wrecks the output
> of \d <table>, etc.
>
> Should we change it so that the \d is unaffected by \x? What about for
> other \d commands?

Well, they asked for \x so why is it wrong for us to \x the \d output
like we do now?

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: \x in psql
Date: 2005-03-23 16:32:06
Message-ID: 7330.1111595526@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> writes:
> When you turn on \x mode for query output in psql, it wrecks the output
> of \d <table>, etc.

"Wrecks" to you maybe ... but if someone likes \x display, why wouldn't
they like it for \d too?

One could argue that the real bug is that the footers in \d don't change
to look like \x output.

regards, tom lane


From: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: \x in psql
Date: 2005-03-24 01:00:37
Message-ID: f978e26bb25d3aeee94c2b6c03cb19e1@biglumber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tom Lane wrote:
> "Wrecks" to you maybe ... but if someone likes \x display, why wouldn't
> they like it for \d too?
>
> One could argue that the real bug is that the footers in \d don't change
> to look like \x output.

Indeed, it behaves exactly the way I would expect it to. I would not want
to see the footers chopped up further. Christopher, maybe you can describe
more what behavior you would like to see?

- --
Greg Sabino Mullane greg(at)turnstep(dot)com
PGP Key: 0x14964AC8 200503232000
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8

-----BEGIN PGP SIGNATURE-----

iD8DBQFCQhE7vJuQZxSWSsgRAp1nAJ46w499EqDBzdoKQ2VbC3ikER6MNACdER0I
FTZJcTSWOfgxiARjAbszHdg=
=qQkd
-----END PGP SIGNATURE-----


From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: \x in psql
Date: 2005-03-24 01:03:04
Message-ID: 424211C8.7030605@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

>>When you turn on \x mode for query output in psql, it wrecks the output
>>of \d <table>, etc.
>>
>>Should we change it so that the \d is unaffected by \x? What about for
>>other \d commands?
>
> Well, they asked for \x so why is it wrong for us to \x the \d output
> like we do now?

Because I have the feeling (back me up on this people) that most people
who use it still want to be able to read their table definitions while
working in \x mode. Who on earth would want \x to affect their table
output??

Also, it doesn't affect the bit below the table, like indexes and
constraints, so you have this wacky column output, then perfectly normal
index and constraint display!

Chris