Re: review: psql and pset without any arguments
От | Pavel Stehule |
---|---|
Тема | Re: review: psql and pset without any arguments |
Дата | |
Msg-id | CAFj8pRB-CE-_hFmf8efOisMvpv10v9KQGft=yjidUYTsjjOeug@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: review: psql and pset without any arguments (Gilles Darold <gilles.darold@dalibo.com>) |
Список | pgsql-hackers |
Hello,Pavel
Sorry for the delay, here is the new patch. The \pset output will look like follow:postgres=# \psetTarget width (columns) unset.
Border style (border) is 1.
Expanded display (expanded) is off.Field separator (fieldsep) is "|".Default footer (footer) is on.
Output format (format) s aligned.
Line style (linestyle) is ascii.Locale-adjusted numeric output (numericlocale) is off.
Null display (null) is "".Table attributes (tableattr) unset.
Pager (pager) is used for long output.
Record separator (recordsep) is <newline>.
Title (title) unset.postgres=# \pset null #
Tuples only (tuples_only) is off.
Null display (null) is "#".
postgres=#
This also mean that all translation strings of those messages should be updated.
If we don't want to modify those messages, I can provide an other patch which print output as follow:postgres=# \psetI think the first output is better but it need translation work. Let me know.
border: Border style is 1.
columns: Target width unset.
expanded: Expanded display is off.
fieldsep: Field separator is "|".
footer: Default footer is on.
format: Output format is aligned.
linestyle: Line style is ascii.
null: Null display is "".
numericlocale: Locale-adjusted numeric output is off.
pager: Pager is used for long output.
recordsep: Record separator is <newline>.
tableattr: Table attributes unset.
title: Title unset.
tuples_only: Tuples only is off.
postgres=# \pset null #
Null display is "#".
postgres=#
I prefer first output too
Regards
Pavel
Pavel
В списке pgsql-hackers по дате отправления: