diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c
new file mode 100644
index 82c926d..7212015
*** a/src/bin/psql/tab-complete.c
--- b/src/bin/psql/tab-complete.c
*************** psql_completion(const char *text, int st
*** 2130,2141 ****
  	{
  		COMPLETE_WITH_QUERY(Query_for_list_of_event_triggers);
  	}
! 	else if ((pg_strcasecmp(prev4_wd, "COMMENT") == 0 &&
! 			  pg_strcasecmp(prev3_wd, "ON") == 0) ||
! 			 (pg_strcasecmp(prev5_wd, "COMMENT") == 0 &&
! 			  pg_strcasecmp(prev4_wd, "ON") == 0) ||
! 			 (pg_strcasecmp(prev6_wd, "COMMENT") == 0 &&
! 			  pg_strcasecmp(prev5_wd, "ON") == 0))
  		COMPLETE_WITH_CONST("IS");
  
  /* COPY */
--- 2130,2142 ----
  	{
  		COMPLETE_WITH_QUERY(Query_for_list_of_event_triggers);
  	}
! 	else if (((pg_strcasecmp(prev4_wd, "COMMENT") == 0 &&
! 			   pg_strcasecmp(prev3_wd, "ON") == 0) ||
! 			  (pg_strcasecmp(prev5_wd, "COMMENT") == 0 &&
! 			   pg_strcasecmp(prev4_wd, "ON") == 0) ||
! 			  (pg_strcasecmp(prev6_wd, "COMMENT") == 0 &&
! 			   pg_strcasecmp(prev5_wd, "ON") == 0)) &&
! 			   pg_strcasecmp(prev_wd, "IS") != 0)
  		COMPLETE_WITH_CONST("IS");
  
  /* COPY */
