Postgresql Documentation & links
Links
QUICK GUIDE TO WRITING PLPGSQL FUNCTIONS: PART 1
Useful Queries For PostgreSQL Index Maintenance
Index Maintenance (Official documentation)
Postgresql+Repmgr+Pgbouncer setup (GREAT document)