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 1gfWnD-0007uC-19 for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Jan 2019 21:14:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gfWnB-0000eD-J6 for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Jan 2019 21:14:09 +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 1gfWnB-0000c4-CQ for pgsql-bugs@lists.postgresql.org; Fri, 04 Jan 2019 21:14:09 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gfWn8-0007ea-Pi for pgsql-bugs@lists.postgresql.org; Fri, 04 Jan 2019 21:14:08 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 641B8220E0; Fri, 4 Jan 2019 16:14:05 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 04 Jan 2019 16:14:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=v7R8xIEaYeGI8O5s9xrT0zsmKpD KxW64c0RbDgs0k6s=; b=RW0Q8HUPAlkz0jqk95bQVod1tg6hWKbn5RJkKBhCpYX yx+WJ30CYo4vs3mOpg1pXM070JgcQbHdDTNgSBHzzMFGf51+rzoTKnsAUxVecUF+ 47IoT9In8aWa6d8aF8sZAoumkoG0YXcVMwqfLnBzAtk9mZ/PnT170RIhtGBFG8L+ kvEQJa9OGLeUteUX9/0NbWFH2HJDnKg3wrhEQT9pm+uRG5sLVsf1YYy9TUv2Xa28 PZURYBecthNoFeqdh50gbvDzM3SFdXRYvzuI83lVEIjWfFZAXyiDw3UKGcFLy2v+ qjRNrBVRZ0XDqEKNqAOKG9k6c6Wuh6xdEWbQ0rPzD0A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=v7R8xI EaYeGI8O5s9xrT0zsmKpDKxW64c0RbDgs0k6s=; b=mGvh55OxA8yFdlBndLcr+W ke7SNjiizCJnggkvVa5FWhTtPMVbpja2mqUxt3PEcz8OJdKIOWbOwUQfgN3NDnr2 SHQQw2YCF+11Y8SL2kdFYW7lcPcHGjblxXlRkHqqBGr9wGYCZV2cNYNt0xAzxhJy sZ6/dp1B5fyHRabFkXfVQ1LILO9D1eBgWHIUsVDlAXneLT/xLWaa/X5IoDTdxFBe aZN4dDyFRVzuNo4u7n5M757wLpWnoELj6BOPkhJW36O9hTNoHbqKm3UUBSxF9BDt NeYJopuearDd1cBcHd3rniiGyt2TtJMs8XNG3yrNsAMSgmO+Pghi4bA3Zer/FU5w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrvddugddugeekucdltddurdegtdekrddttd dmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhht necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpeetnhgurhgvshcuhfhrvghunhguuceorghnughrvghssegr nhgrrhgriigvlhdruggvqeenucfkphepleekrddvuddtrddugedtrddujedunecurfgrrh grmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvgenucevlhhu shhtvghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id BEB05100B9; Fri, 4 Jan 2019 16:14:04 -0500 (EST) Date: Fri, 4 Jan 2019 13:14:03 -0800 From: Andres Freund To: makmarath@hotmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15575: Using RDS upgrade option from 9.6 to 10.4 Upsert will not insert records but complete successfully Message-ID: <20190104211403.dfru5rdiphs6lf5h@alap3.anarazel.de> References: <15575-08e99001a3dfa56a@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15575-08e99001a3dfa56a@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-01-04 20:31:10 +0000, PG Bug reporting form wrote: > The following bug has been logged on the website: > > Bug reference: 15575 > Logged by: Ash Marath > Email address: makmarath@hotmail.com > PostgreSQL version: 10.4 > Operating system: RDS (on AWS) > Description: > > Scenario : > 1.Have 2 tables created. > * main table > * audit Table > 2. Create an Update trigger on Main table => The trigger will make a new > entry in the audit table > The above structure is created in v9.6 > ------------------------------- > ISSUE STARTS HERE > 3. Use the AWS console and upgraded your PostgreSQL to ver 10x > 4. Run the upsert SQL statement (update a particular column) on Main > table. > 5. BUG: The column in Main table will not be updated but a new entry in the > audit table can be observed (update trigger will execute). Execute step 4 > multiple times and you will notice new entries in the Audit table but record > in the main table will not be updated. > ---------------------------------------- > Workaround Steps to resolve this bug: > S1: Take a backup of the existing database from v9.6, generate the script > using "pg_dump" (prefer to dump output as .sql file). > S2. Create a new instance in RDS for v10.x > S3. Restore the database from the backupfile generated by pg_dump in step > S1. > ----------------------------------------------------------------- > Now run the upset statement of Step 4 and you will see postgreSQL > functioning correctly. Upsert will work and existing records will be > updated. > ---------------------- End of report > ---------------------------------------- You got to take this up with Amazon. We don't know how their internal stuff works, and their bugs aren't our bugs. Greetings, Andres Freund