Clean up checking of relkind for ALTER TABLE and LOCK TABLE commands.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 1402201463d98f0ef8ab07ac7aeb06d60cf337dc
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2001-01-07T00:05:22Z
Releases: 7.1.1
Clean up checking of relkind for ALTER TABLE and LOCK TABLE commands.
Disallow cases like adding constraints to sequences :-(, and eliminate
now-unnecessary search of pg_rewrite to decide if a relation is a view.

Files

PathChange+/−
src/backend/commands/command.c modified +39 −91