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 1gT8yU-0001Ua-2c for pgsql-general@arkaria.postgresql.org; Sat, 01 Dec 2018 17:22:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gT8yR-0004gI-Va for pgsql-general@arkaria.postgresql.org; Sat, 01 Dec 2018 17:22:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gT8yR-0004gA-Nt for pgsql-general@lists.postgresql.org; Sat, 01 Dec 2018 17:22:35 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gT8yK-0002c8-9C for pgsql-general@lists.postgresql.org; Sat, 01 Dec 2018 17:22:35 +0000 Received: from hercules.internal.net (hercules.internal.net [10.9.200.8]) by hermes.gatewaynet.com (8.14.3/8.14.3/Debian-9.4) with ESMTP id wB1HMPTY011886 for ; Sat, 1 Dec 2018 19:22:25 +0200 Received: from [10.9.251.5] (dcmchgw.internal.net [10.9.0.1]) by hercules.internal.net (Postfix) with ESMTPS id BFE7A1350A1F for ; Sat, 1 Dec 2018 19:22:24 +0200 (EET) Subject: =?UTF-8?Q?Re=3a_Transition_Tables_doesn=c2=b4t_have_OID?= To: pgsql-general@lists.postgresql.org References: <1543666938082-0.post@n3.nabble.com> <87pnull9k0.fsf@news-spur.riddles.org.uk> <1543683104800-0.post@n3.nabble.com> From: Achilleas Mantzios Message-ID: Date: Sat, 1 Dec 2018 19:22:22 +0200 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: <1543683104800-0.post@n3.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Virus-Scanned: clamav-milter 0.98.7 at hermes X-Virus-Status: Clean X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,DYN_SPAM_MED6 autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hermes.gatewaynet.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/12/18 6:51 μ.μ., PegoraroF10 wrote: > 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. Unique key with a sequence, which you'll have to leave alone. > > 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 >