Use our typical approach, from src/backend/parser. Back-patch to 9.1 (all supported versions).
Attach a file by drag & drop or click to upload