Fix incorrect xmlschema output for types timetz and timestamptz.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 84f3ecdaae8333d4e4815f34726fd07e46c3e3d4
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2022-03-18T20:01:42Z
Releases: 11.16
Fix incorrect xmlschema output for types timetz and timestamptz.

The output of table_to_xmlschema() and allied functions includes
a regex describing valid values for these types ... but the regex
was itself invalid, as it failed to escape a literal "+" sign.

Report and fix by Renan Soares Lopes.  Back-patch to all
supported branches.

Discussion: https://postgr.es/m/7f6fabaa-3f8f-49ab-89ca-59fbfe633105@me.com

Files

Discussion