diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2017-10-05 10:47:47 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2017-10-05 10:47:47 -0400 |
commit | 4d85c2900b113e331925baf308cc7fc75ac4530b (patch) | |
tree | d3ee80e47eaa3acca4c2cb40c54788505252788f /src/backend/commands/analyze.c | |
parent | 4b2ba1fe0222b7820a2f4cd52b133baeb91c5a93 (diff) | |
download | postgresql-4d85c2900b113e331925baf308cc7fc75ac4530b.tar.gz postgresql-4d85c2900b113e331925baf308cc7fc75ac4530b.zip |
Improve comments in vacuum_rel() and analyze_rel().
Remove obsolete references to get_rel_oids(). Avoid listing specific
relkinds in the comments, since we seem unable to keep such things
in sync with the code, and it's not all that helpful anyhow.
Noted by Michael Paquier, though I rewrote the comments a bit more.
Discussion: https://postgr.es/m/CAB7nPqTWiN9zwKTaOrsnKiGDChqRt7C1+CiiDk4N4OMn92rs6A@mail.gmail.com
Diffstat (limited to 'src/backend/commands/analyze.c')
-rw-r--r-- | src/backend/commands/analyze.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c index d432f8208dd..760d19142ec 100644 --- a/src/backend/commands/analyze.c +++ b/src/backend/commands/analyze.c @@ -207,9 +207,7 @@ analyze_rel(Oid relid, RangeVar *relation, int options, } /* - * Check that it's a plain table, materialized view, or foreign table; we - * used to do this in get_rel_oids() but seems safer to check after we've - * locked the relation. + * Check that it's of an analyzable relkind, and set up appropriately. */ if (onerel->rd_rel->relkind == RELKIND_RELATION || onerel->rd_rel->relkind == RELKIND_MATVIEW) |