Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJeuB-0004T0-RY for pgsql-general@arkaria.postgresql.org; Mon, 05 Nov 2018 13:27:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gJeuA-0003C0-9x for pgsql-general@arkaria.postgresql.org; Mon, 05 Nov 2018 13:26:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJeu8-0003Bs-AQ for pgsql-general@lists.postgresql.org; Mon, 05 Nov 2018 13:26:58 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJeu5-0001w6-4H for pgsql-general@lists.postgresql.org; Mon, 05 Nov 2018 13:26:55 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 9CD9722B41; Mon, 5 Nov 2018 08:26:51 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 05 Nov 2018 08:26:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imap.cc; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=o RRtooHErX8YAzNcPzok4vQBMRPUR+WSXMS+y3KbMBQ=; b=AOpfXt14Fs2PPdvpo UgIdTr4LOUoMmnOkPq2em1c6kfGOKLUxhN5kGf0HIUGBarCNBEyl1qMNtpSOLWGr 6foVDpsPZz7ilyxpRyzF+C6qgc0JkTletzus1S2bI8JxhyHid11k9wp98Jby+o8Y Kkr3dRk7N1C+pnWUNxihKRnkNIniqL2bwXEjiq6Zr50Ba4G8ICbirC8EPoKm48e2 LICmVPuBQOP54UGnKtjy3YscsfyCNZRsr9IkGhiau1VIw2/WyHhvpqCVwpsJ/Fgt uD7LWqSfbgp6WMTMOeasfdzvnrHKTfmXVtURIvqW2CR07r5tyBnLcl6aAzPRt41Q LKp5w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=oRRtooHErX8YAzNcPzok4vQBMRPUR+WSXMS+y3KbM BQ=; b=YCBCx81+NEcySrghbg5SQvQHT88Jpr7ghBXByjQrWZ/+Om0YCWIb5XUY7 HPLFhsis/OTjaB+LxLrHbh7orNSPhQcz7OYlAPOps5PWBgA12TnJLMrhoWV7BXVX ZKgoqSo+mWhCT/gGMx0O/PYVJ7rlwJuGLorsNpoXlYo/hwdWetdN4MyIhJEfAV2j I+FHz3jLGrD9nXR0L+zrGsPK07aQZulbB8PW+9EZjTy7kIVzZzaMjeIG3k4kFJ5d /rHBX5FFgvUAtW6feB9zcS/KInsoPS6iaxzqzBcKA4kmZUNIXYyz75FHhrcjxn0e CiK7FA9QJlpGwpkLIM2yV6sUluR1Q== X-ME-Sender: X-ME-Proxy: Received: from [10.2.33.124] (unknown [185.25.33.70]) by mail.messagingengine.com (Postfix) with ESMTPA id 6C30710345; Mon, 5 Nov 2018 08:26:50 -0500 (EST) Subject: Re: Function for Exception Logging To: Tony Shelver , Patrick.Fiche@aqsacom.com Cc: pgsql-general@lists.postgresql.org References: From: Alexey Bashtanov Message-ID: <7f8ac4f2-4ddb-1566-e0b4-3c083252d073@imap.cc> Date: Mon, 5 Nov 2018 13:26:36 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > Even more difficult in PG functions as they have no commit / rollback > capability.  I haven't played with stored procedures in in PG11 yet. You can simulate oracle autonomous transaction feature in postgres by connecting to the same db using dblink. As for implicit passing of error parameters, I don't think it's possible. Best, Alex