Undocumented(?) limits on regexp functions

From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Undocumented(?) limits on regexp functions
Date: 2018-08-13 23:31:55
Message-ID: 87lg996g4r.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

All the regexp functions blow up with "invalid memory alloc request"
errors when the input string exceeds 256MB in length. This restriction
does not seem to be documented anywhere that I could see.

(Also for regexp_split* and regexp_matches, there's a limit of 64M total
matches, which also doesn't seem to be documented anywhere).

Should these limits:

a) be removed

b) be documented

c) have better error messages?

--
Andrew (irc:RhodiumToad)

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2018-08-13 23:49:11 Re: Undocumented(?) limits on regexp functions
Previous Message Peter Geoghegan 2018-08-13 23:13:04 Pre-v11 appearances of the word "procedure" in v11 docs