aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/cache
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2017-05-13 01:05:48 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2017-05-13 01:05:48 -0300
commitd99d58cdc8c0b5b50ee92995e8575c100b1a458a (patch)
tree69410eae02097c010e21eb7972524a80538e87d5 /src/backend/utils/cache
parent2df5d465558b6f17c161cbbe246b050b453ec99c (diff)
downloadpostgresql-d99d58cdc8c0b5b50ee92995e8575c100b1a458a.tar.gz
postgresql-d99d58cdc8c0b5b50ee92995e8575c100b1a458a.zip
Complete tab completion for DROP STATISTICS
Tab-completing DROP STATISTICS would only work if you started writing the schema name containing the statistics object, because the visibility clause was missing. To add it, we need to add SQL-callable support for testing visibility of a statistics object, like all other object types already have. Discussion: https://postgr.es/m/22676.1494557205@sss.pgh.pa.us
Diffstat (limited to 'src/backend/utils/cache')
-rw-r--r--src/backend/utils/cache/lsyscache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/utils/cache/lsyscache.c b/src/backend/utils/cache/lsyscache.c
index 236d876b1c6..720e5402768 100644
--- a/src/backend/utils/cache/lsyscache.c
+++ b/src/backend/utils/cache/lsyscache.c
@@ -32,6 +32,7 @@
#include "catalog/pg_proc.h"
#include "catalog/pg_range.h"
#include "catalog/pg_statistic.h"
+#include "catalog/pg_statistic_ext.h"
#include "catalog/pg_transform.h"
#include "catalog/pg_type.h"
#include "miscadmin.h"