Fix PG compatibility with multistage
Add user flags to PG