Asterisk realtime with Postgres

I am new in Asterisk Server. I configure asterisk server with pjsip configuration. Now I want to connect realtime witth Postgresql. Need any help on this please. Thanks in advance

The Asterisk PJSIP Realtime instructions for MySQL are very similar to the steps you’d need to take with PostgreSQL.