Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFlJu-0000sY-HQ for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Jun 2016 16:48:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bFlJu-0002eP-3w for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Jun 2016 16:48:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bFlIX-0000vz-Ci for pgsql-hackers@postgresql.org; Wed, 22 Jun 2016 16:46:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bFlIV-0004Wm-1z for pgsql-hackers@postgresql.org; Wed, 22 Jun 2016 16:46:40 +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 u5MGkbr2002676; Wed, 22 Jun 2016 12:46:37 -0400 From: Tom Lane To: David Rowley cc: Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: Parallelized polymorphic aggs, and aggtype vs aggoutputtype In-reply-to: References: <8229.1466109074@sss.pgh.pa.us> <14538.1466116810@sss.pgh.pa.us> <22037.1466129876@sss.pgh.pa.us> <27247.1466185504@sss.pgh.pa.us> Comments: In-reply-to David Rowley message dated "Mon, 20 Jun 2016 22:19:03 +1200" Date: Wed, 22 Jun 2016 12:46:37 -0400 Message-ID: <2675.1466613997@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org David Rowley writes: > I've gone and implemented the dummy argument approach for > deserialization functions. How do you feel about the further idea of locking down the signatures to be exactly "serialize(internal) returns bytea" and "deserialize(bytea, internal) returns internal", and removing pg_aggregate.aggserialtype? I don't see very much value in allowing any other nominal transmission type besides bytea; and the less flexibility in these function signatures, the less chance of confusion/misuse of other internal-related functions. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers