Re: CREATE RULE may generate duplicate entries in pg_depend

2020-08-26 Thread Tom Lane
Ashwin Agrawal writes: > If action and qual reference same object in CREATE RULE, it results in > creating duplicate entries in pg_depend for it. Doesn't pose any harm, just > unnecessarily bloats pg_depend. Yeah, we generally don't try that hard to prevent duplicate pg_depend entries. It's rela

CREATE RULE may generate duplicate entries in pg_depend

2020-08-26 Thread Ashwin Agrawal
If action and qual reference same object in CREATE RULE, it results in creating duplicate entries in pg_depend for it. Doesn't pose any harm, just unnecessarily bloats pg_depend. Reference InsertRule(). I think should be able to avoid adding duplicate entries. Don't know if this behaviour was disc