Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCRw2-0001V0-6P for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Nov 2017 15:06:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eCRw0-0001Ii-Ur for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Nov 2017 15:06:32 +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_2) (envelope-from ) id 1eCRuT-0006v2-OU for pgsql-hackers@postgresql.org; Wed, 08 Nov 2017 15:04:57 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eCRuL-0002cW-RI for pgsql-hackers@postgresql.org; Wed, 08 Nov 2017 15:04:56 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id C69AC20A34; Wed, 8 Nov 2017 10:04:47 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Wed, 08 Nov 2017 10:04:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Wbv4yL m40YpV+RwNh9WpWsrZjCL2yry3bPhH6EJfx68=; b=Rt9KPdTc3pmqBpOWyJhrVt 2ht0NASyc2Oqpc2Vyzt8MAWqXVg7QYMXFtHvMNPz5yqwVz2Vg0qwUMWl3LO13+uU 2XnqSL6MLBhMxPP2rhO0cKItUMp229p3fcAJ0iAOrkVg8qYlYm3Onqfq15+R04R/ p8e7xX4bx3USQq0O8zAVLcFftt0cfSaLyyN72y/8+iVoC+88b/Mij00uUVUFfJ59 FJpjhwXJMR88/rOfNdPFqsz8S357StPgAzKFh7ByQSfIMTieb0UKaAwLERfOsPm9 aPzhnoT2U+UZzXBVg3yRH1TsuGTfuBXI8lF2rTnuY0nS72jLWPi7icdgvk6eOEfA == X-ME-Sender: Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 9330E24735; Wed, 8 Nov 2017 10:04:47 -0500 (EST) Subject: Re: SQL procedures To: Simon Riggs References: <336f6926-8990-ff2d-4167-276ce417fc32@2ndquadrant.com> Cc: pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <492a8be0-ff55-3858-7dc1-62fa07d444c2@2ndquadrant.com> Date: Wed, 8 Nov 2017 10:04:47 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit 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 On 11/6/17 16:27, Simon Riggs wrote: > You mention PARALLEL SAFE is not used for procedures. Isn't it an > architectural restriction that procedures would not be able to execute > in parallel? (At least this year) I'm not sure what you are referring to here. I don't think the functionality I'm proposing does anything in parallel or has any interaction with it. > I think we need an explanatory section of the docs, but there doesn't > seem to be one for Functions, so there is no place to add some text > that says the above. > > I found it confusing that ALTER and DROP ROUTINE exists but not CREATE > ROUTINE. At very least we should say somewhere "there is no CREATE > ROUTINE", so its absence is clearly intentional. I did wonder whether > we should have it as well, but its just one less thing to review, so > good. I'll look for a place to add some documentation around this. > Was surprised that pg_dump didn't use DROP ROUTINE, when appropriate. It's not clear to me why that would be preferred. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers