"shakahshakah@xxxxxxxxx" <shakahshakah@xxxxxxxxx> writes: > Am I correct in assuming that when Postgres prepared the SQL to execute > the "insert function" that the existing rules on the base table were > also resolved at that time? If so, is there any way to avoid that > behavior? Yes; no. We are working on infrastructure to automatically redo prepared plans when relevant catalog entries change, but it's not there today :-( regards, tom lane