Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNNym-0006Vl-Rt for pgsql-bugs@arkaria.postgresql.org; Thu, 06 Aug 2015 16:25:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZNNym-00081K-E9 for pgsql-bugs@arkaria.postgresql.org; Thu, 06 Aug 2015 16:25:16 +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_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZNNyA-0007Fx-3l for pgsql-bugs@postgresql.org; Thu, 06 Aug 2015 16:24:38 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZNNy6-0002Yl-PO for pgsql-bugs@postgresql.org; Thu, 06 Aug 2015 16:24:37 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1ZNNy0-0004eB-Sq; Thu, 06 Aug 2015 12:24:28 -0400 Date: Thu, 6 Aug 2015 12:24:28 -0400 From: Bruce Momjian To: jxliang999@126.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13540: upsert is not good Message-ID: <20150806162428.GJ13687@momjian.us> References: <20150806124824.1017.87312@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150806124824.1017.87312@wrigleys.postgresql.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Thu, Aug 6, 2015 at 12:48:24PM +0000, jxliang999@126.com wrote: > The following bug has been logged on the website: > > Bug reference: 13540 > Logged by: alex > Email address: jxliang999@126.com > PostgreSQL version: 9.5alpha1 > Operating system: windows7 > Description: > > I am glad that you add insert and update on conflict function. But I suggest > it to be "insert or update into table..." because this seems much more > beaufiful to a strict programmer, thanks! We had a long discussion about this and decided that the syntax needed for the UPDATE portion could not be mixed in with the INSERT portion. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs