PostgreSQL: add api documentation

Signed-off-by: swpd <swpdtz@gmail.com>