provided your external database is correctly set up (network access, user + schema + tablespace for Alfresco), you only need to update the PostgreSQL-specific db.url property in alfresco-global.properties (host and maybe port) to have Alfresco talk with an external PostgreSQL database.