postgresql trigger on partitioned table