Re: psql: show only failed queries
От | Pavel Stehule |
---|---|
Тема | Re: psql: show only failed queries |
Дата | |
Msg-id | CAFj8pRA3i-7NEf71WEBjqfAfEwudJzOJuUNLEdkScCzMypR1sw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: psql: show only failed queries (Fujii Masao <masao.fujii@gmail.com>) |
Ответы |
Re: psql: show only failed queries
|
Список | pgsql-hackers |
2014-08-07 7:10 GMT+02:00 Fujii Masao <masao.fujii@gmail.com>:
On Thu, Aug 7, 2014 at 6:26 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote:Thanks! But ISTM you forgot to attached the patch.
> Hello
>
> updated version patch in attachment
grr .. I am sorry
I had that question because complete_from_variables() is also called by the
>> + /* all psql known variables are included in list by default */
>> + for (known_varname = known_varnames; *known_varname; known_varname++)
>> + varnames[nvars++] = pg_strdup(*known_varname);
>>
>> Don't we need to append both prefix and suffix to even known variables?
>
>
> ??? I am not sure if I understand well - probably system "read only"
> variables as DBNAME, USER, VERSION should not be there
tab-completion of "\echo :" and it shows half-baked variables list. So
I thought probably we need to change complete_from_variables() more to
fix the problem.
I understand now.
I fixed it.
I have a question.\echo probably should not to show empty known variable.
data for autocomplete for \echo should be same as result of "\set"
So HISTCONTROL should be there because it doesn't have such reasons at all?
>> + else if (strcmp(prev2_wd, "\\set") == 0)
>> + {
>> + if (strcmp(prev_wd, "AUTOCOMMIT") == 0)
>>
>> ISTM that some psql variables like IGNOREEOF are not there. Why not?
>
>
> yes, there are not complete for DBNAME, ENCODING, FETCH_COUNT, HISTCONTROL,
> HISTFILE, HISTSIZE, HOST, IGNOREEOFF, PROMPT*,USER, VERSION
>
> There are more reasons:
>
> * paremeter is not a enum (string, number or both): FETCH_COUNT, PROMPT,
> HISTSIZE, ..
>
> * variable is pseudo read only - change has not any effect: DBNAME,
> ENCODING, VERSION
yes
Pavel
Regards,
--
Fujii Masao
Вложения
В списке pgsql-hackers по дате отправления: