Code cleanup for build_regexp_split_result

Japin Li <japinli@hotmail.com>

From: Li Japin <japinli@hotmail.com>
To: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2020-01-16T15:18:43Z
Lists: pgsql-hackers

Attachments

Hi hackers,

I find the build_regexp_split_result() has redundant codes, we can move it to before the condition check, can we?

Best regards.

Japin Li




Commits

  1. Minor code beautification in regexp.c.

  2. Avoid quadratic slowdown in regexp match/split functions.