Finding out if a constraint name already exists
I make a new rule like :
create rule myName
as @whatever ......
But if I wana have a script that correctly works whenever that I call it, I have to find out if myName already exists and if it does, I drop it by drop rule command, but how can I find out if a rule/default/constraint name already exists?