Clean up checking of relkind for ALTER TABLE and LOCK TABLE commands.
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/command.c | modified | +39 −91 |