How to set up PostgreSQL database to run indexer in Testnet?

A post was split to a new topic: Indexer DB: error connecting to postgres