Tomas Vondra <tv@xxxxxxxx> writes: > As I already said - it works until I create a rule for the next > partition (not used yet) - then is suddenly stops working. Suddenly stops working, or continues doing exactly what it did before? I'm wondering if you are relying on a cached plan that doesn't include the new rule. regards, tom lane