Parse time & execution time. Why are you not just using a sequence? Do you have an application which requires contiguous numbers? -- Scott Ribe scott_ribe@xxxxxxxxxxxxxxxx https://www.linkedin.com/in/scottribe/ > On Aug 13, 2018, at 4:39 PM, legrand legrand <legrand_legrand@xxxxxxxxxxx> wrote: > > I'm suspecting parsing time for "SELECT count(1) > 1 FROM tabpart WHERE id = > NEW.id",