Re: [HACKERS] is_view seems unnecessarily slow

2001-01-08 Thread Jan Wieck
Tom Lane wrote: backend/commands/command.c has a routine is_view() that tests for view-ness by scanning pg_rewrite (all of it) to see if the given relation has any ON SELECT rules. This is only used to disallow AlterTableAddConstraint and LockTableCommand on views. While I don't care much

[HACKERS] is_view seems unnecessarily slow

2001-01-06 Thread Tom Lane
backend/commands/command.c has a routine is_view() that tests for view-ness by scanning pg_rewrite (all of it) to see if the given relation has any ON SELECT rules. This is only used to disallow AlterTableAddConstraint and LockTableCommand on views. While I don't care much about the performance