OSDN Git Service

Fix vacuum analyze error.
authorTatsuo Ishii <ishii@postgresql.org>
Tue, 27 Feb 2001 07:07:00 +0000 (07:07 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Tue, 27 Feb 2001 07:07:00 +0000 (07:07 +0000)
commit919ace07d59f1a0fbb237b0ca348e4a7574b4042
treeb5a81438b8428385d3d87a5d0d2f9019c47e1baf
parent06e3d84d88222696f3bc65fa0d7bfe3dfeac889d
Fix vacuum analyze error.

vacuum analyze on pg_type fails if bogus entries remain in pg_operator.
Here is a sample script to reproduce the problem.

drop table t1;
create table t1(i int);
drop function foo(t1,t1);
create function foo(t1,t1) returns bool as 'select true' language 'sql';
create operator = (
leftarg = t1,
rightarg = t1,
commutator = =,
procedure = foo
);
drop table t1;
vacuum analyze;
src/backend/parser/parse_coerce.c