From 76a47c0e7423891d4b4f0977312f46fec6c5c416 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Fri, 22 Jan 2010 16:40:19 +0000 Subject: Replace ALTER TABLE ... SET STATISTICS DISTINCT with a more general mechanism. Attributes can now have options, just as relations and tablespaces do, and the reloptions code is used to parse, validate, and store them. For simplicity and because these options are not performance critical, we store them in a separate cache rather than the main relcache. Thanks to Alex Hunsaker for the review. --- src/bin/psql/tab-complete.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/bin/psql/tab-complete.c') diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 70b798d2f64..da2011074ba 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2010, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.190 2010/01/02 21:28:46 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.191 2010/01/22 16:40:19 rhaas Exp $ */ /*---------------------------------------------------------------------- @@ -992,17 +992,6 @@ psql_completion(char *text, int start, int end) COMPLETE_WITH_LIST(list_COLUMNSET); } - else if (((pg_strcasecmp(prev5_wd, "ALTER") == 0 && - pg_strcasecmp(prev4_wd, "COLUMN") == 0) || - pg_strcasecmp(prev4_wd, "ALTER") == 0) && - pg_strcasecmp(prev2_wd, "SET") == 0 && - pg_strcasecmp(prev_wd, "STATISTICS") == 0) - { - static const char *const list_COLUMNSETSTATS[] = - {"DISTINCT", NULL}; - - COMPLETE_WITH_LIST(list_COLUMNSETSTATS); - } else if (((pg_strcasecmp(prev4_wd, "ALTER") == 0 && pg_strcasecmp(prev3_wd, "COLUMN") == 0) || (pg_strcasecmp(prev5_wd, "TABLE") == 0 && -- cgit v1.2.3