Make pg dump {,sum,pgs,pgs_brief} work for format=plain

Fixes: #5963, #6759
Signed-off-by: Mykola Golub <mgolub@mirantis.com>