Please update on this issue.
I never worked on GG to postgresql
but see if below link helps
Mark this reply helpful or like it, it will help others in same situation.
4150126 -- did you get this working ?
Per the certification matrix, GG 12.2 only supports PostgreSQL up to version 11.3 -- and the GG 12.3, 18, and 19 certifications have no mention of PostgreSQL.