psql: Make tab completion work for ANALYZE VERBOSE ...

Поиск
Список
Период
Сортировка
От Greg Sabino Mullane
Тема psql: Make tab completion work for ANALYZE VERBOSE ...
Дата
Msg-id 49CC2C8D.3070607@endpoint.com
обсуждение исходный текст
Ответы Re: psql: Make tab completion work for ANALYZE VERBOSE ...
Список pgsql-hackers
Quick patch to fix the fact that the EXPLAIN ANALYZE VERBOSE is clobbering
tab-completion for ANALYZE VERBOSE.

--
Greg Sabino Mullane greg@endpoint.com
End Point Corporation
PGP Key: 0x14964AC8
Index: tab-complete.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/bin/psql/tab-complete.c,v
retrieving revision 1.180
diff -c -r1.180 tab-complete.c
*** tab-complete.c    24 Feb 2009 10:06:34 -0000    1.180
--- tab-complete.c    27 Mar 2009 01:29:06 -0000
***************
*** 1627,1633 ****
      else if (pg_strcasecmp(prev_wd, "VERBOSE") == 0 &&
               pg_strcasecmp(prev3_wd, "VACUUM") != 0 &&
               pg_strcasecmp(prev4_wd, "VACUUM") != 0 &&
!              (pg_strcasecmp(prev2_wd, "ANALYZE") == 0 ||
                pg_strcasecmp(prev2_wd, "EXPLAIN") == 0))
      {
          static const char *const list_EXPLAIN[] =
--- 1627,1634 ----
      else if (pg_strcasecmp(prev_wd, "VERBOSE") == 0 &&
               pg_strcasecmp(prev3_wd, "VACUUM") != 0 &&
               pg_strcasecmp(prev4_wd, "VACUUM") != 0 &&
!              ((pg_strcasecmp(prev2_wd, "ANALYZE") == 0 &&
!                pg_strcasecmp(prev3_wd, "EXPLAIN") == 0) ||
                pg_strcasecmp(prev2_wd, "EXPLAIN") == 0))
      {
          static const char *const list_EXPLAIN[] =

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: small but useful patches for text search
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: small but useful patches for text search