Closes #23318. Set $PGOPTIONS to DATABASES[...][OPTIONS] in postgres