/* * For indexes, we follow what do_analyze_rel() does so as to avoid any * deadlocks with analyze/vacuum, which is to take out a * ShareUpdateExclusive on table/matview first and only after that take * a a AccessShareLock on the index itself. */ there are two "a a".
+#include "c.h", no need. since we have "postgres.h" +#include "storage/lockdefs.h" no need. because #include "storage/lmgr.h" already have it. +#include "utils/syscache.h" no need. because get_rel_relkind is in ``#include "utils/lsyscache.h"``