psql: Make tab completion work for ANALYZE VERBOSE ... - Mailing list pgsql-hackers

From Greg Sabino Mullane
Subject psql: Make tab completion work for ANALYZE VERBOSE ...
Date
Msg-id 49CC2C8D.3070607@endpoint.com
Whole thread Raw
Responses Re: psql: Make tab completion work for ANALYZE VERBOSE ...  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List 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[] =

Attachment

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: small but useful patches for text search
Next
From: Bruce Momjian
Date:
Subject: Re: small but useful patches for text search