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 1h5Wgq-0003Ng-An for pgsql-hackers@arkaria.postgresql.org; Sun, 17 Mar 2019 14:23:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h5Wgm-0007Un-C3 for pgsql-hackers@arkaria.postgresql.org; Sun, 17 Mar 2019 14:23:00 +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 1h5Wgl-0007Uf-SZ for pgsql-hackers@lists.postgresql.org; Sun, 17 Mar 2019 14:23:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h5Wgf-0008OY-5I for pgsql-hackers@lists.postgresql.org; Sun, 17 Mar 2019 14:22:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x2HEMovh022791; Sun, 17 Mar 2019 10:22:50 -0400 From: Tom Lane To: Michael Paquier cc: Andrew Gierth , pgsql-hackers@lists.postgresql.org Subject: Re: CREATE OR REPLACE AGGREGATE? In-reply-to: <20190317091410.GD3357@paquier.xyz> References: <8736nm55gv.fsf@news-spur.riddles.org.uk> <20190317091410.GD3357@paquier.xyz> Comments: In-reply-to Michael Paquier message dated "Sun, 17 Mar 2019 18:14:10 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22789.1552832570.1@sss.pgh.pa.us> Date: Sun, 17 Mar 2019 10:22:50 -0400 Message-ID: <22790.1552832570@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier writes: > On Sun, Mar 17, 2019 at 07:35:16AM +0000, Andrew Gierth wrote: >> I took a bash at actually writing it and didn't see any obvious problems >> (I'll post the patch in a bit). Is there some reason (other than >> shortage of round tuits) why this might not be a good idea, or why it >> hasn't been done before? > Indeed. Yeah, it seems like mostly a lack-of-round-tuits problem. Updating the aggregate's dependencies correctly might be a bit tricky, but it can't be any worse than the corresponding problem for functions... regards, tom lane