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 1hycNQ-0003Bv-9Y for pgsql-docs@arkaria.postgresql.org; Fri, 16 Aug 2019 13:34:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hycNO-0003Fo-D1 for pgsql-docs@arkaria.postgresql.org; Fri, 16 Aug 2019 13:34:42 +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 1hycNO-0003Fg-2n for pgsql-docs@lists.postgresql.org; Fri, 16 Aug 2019 13:34:42 +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.92) (envelope-from ) id 1hycNL-0008SE-P3 for pgsql-docs@lists.postgresql.org; Fri, 16 Aug 2019 13:34: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 x7GDYbfL009206; Fri, 16 Aug 2019 09:34:37 -0400 From: Tom Lane To: norbert.burza@gmail.com cc: pgsql-docs@lists.postgresql.org Subject: Re: Wrong drop procedure example In-reply-to: <156595338748.1297.13586621579809492028@wrigleys.postgresql.org> References: <156595338748.1297.13586621579809492028@wrigleys.postgresql.org> Comments: In-reply-to PG Doc comments form message dated "Fri, 16 Aug 2019 11:03:07 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9204.1565962477.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 16 Aug 2019 09:34:37 -0400 Message-ID: <9205.1565962477@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Doc comments form writes: > I noticed that drop procedure with parenthesis doesn't work (procedure n= ame > not found), but without parenthesis it works. = > Not OK: DROP PROCEDURE do_db_maintenance(); = > OK: DROP PROCEDURE do_db_maintenance; = Works for me: regression=3D# create procedure do_db_maintenance() as 'begin end' languag= e plpgsql; CREATE PROCEDURE regression=3D# DROP PROCEDURE do_db_maintenance(); = DROP PROCEDURE This depends, of course, on how you declared the procedure (with or without any parameters). If we wrote the example without parens, that would just move the set of failure conditions around, so I'm unconvinced that it'd be an improvement. regards, tom lane