Postgresql Stored Procedure Logging Definition