Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gT8Um-0000D6-7J for pgsql-general@arkaria.postgresql.org; Sat, 01 Dec 2018 16:51:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gT8Uk-0002kh-N4 for pgsql-general@arkaria.postgresql.org; Sat, 01 Dec 2018 16:51:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gT8Uk-0002ka-AN for pgsql-general@lists.postgresql.org; Sat, 01 Dec 2018 16:51:54 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gT8Uc-0001Ou-JM for pgsql-general@postgresql.org; Sat, 01 Dec 2018 16:51:52 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id D071F108ED30A for ; Sat, 1 Dec 2018 09:51:44 -0700 (MST) Date: Sat, 1 Dec 2018 09:51:44 -0700 (MST) From: PegoraroF10 To: pgsql-general@postgresql.org Message-ID: <1543683104800-0.post@n3.nabble.com> In-Reply-To: <87pnull9k0.fsf@news-spur.riddles.org.uk> References: <1543666938082-0.post@n3.nabble.com> <87pnull9k0.fsf@news-spur.riddles.org.uk> Subject: =?UTF-8?Q?Re:_Transition_Tables_doesn=C2=B4t_have_OID?= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ok then, help me to find alternatives to it. As I sad, sometimes whe change our PK, so using OID would be a smart way to have a join between old and new transition tables and we would like to use transition tables because each statement is a lot faster than each row for auditing purposes. So, whats the alternative ? One trigger for each row just for changing PK values (will occur few times) and another trigger for each statement to do the logging ? -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html