Materialize the doc_acronyms table in a specific extractor and use array_accum instead of array_agg. This should fix some GP out of memory issues.