From: Bruce Momjian <bruce@momjian.us>
Date: Sun, 23 Jan 2005 15:58:50 +0000 (+0000)
Subject: Document why CREATE CONSTRAINT TRIGGER doesn't tab complete.
X-Git-Tag: REL8_1_0BETA1~1501
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0960dc2293cbc44401bf90af38461c7cb54b6b87;p=postgresql

Document why CREATE CONSTRAINT TRIGGER doesn't tab complete.
---

diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c
index 1f2796ffd6..4255d62ac9 100644
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 2000-2005, PostgreSQL Global Development Group
  *
- * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.120 2005/01/01 05:43:08 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.121 2005/01/23 15:58:50 momjian Exp $
  */
 
 /*----------------------------------------------------------------------
@@ -411,6 +411,7 @@ static const pgsql_thing_t words_after_create[] = {
 	{"AGGREGATE", NULL, &Query_for_list_of_aggregates},
 	{"CAST", NULL, NULL},		/* Casts have complex structures for
 								 * names, so skip it */
+	/* CREATE CONSTRAINT TRIGGER is not supported here because it is designed to be used only by pg_dump. */
 	{"CONVERSION", "SELECT pg_catalog.quote_ident(conname) FROM pg_catalog.pg_conversion WHERE substring(pg_catalog.quote_ident(conname),1,%d)='%s'"},
 	{"DATABASE", Query_for_list_of_databases},
 	{"DOMAIN", NULL, &Query_for_list_of_domains},