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 1ih4xv-0001QS-NT for pgsql-admin@arkaria.postgresql.org; Tue, 17 Dec 2019 05:00:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ih4xu-00081H-Ii for pgsql-admin@arkaria.postgresql.org; Tue, 17 Dec 2019 05:00:10 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1ih4xu-00081A-8l for pgsql-admin@lists.postgresql.org; Tue, 17 Dec 2019 05:00:10 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ih4xn-0006Nm-5x for pgsql-admin@postgresql.org; Tue, 17 Dec 2019 05:00:09 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 1DC7E197D4022 for ; Mon, 16 Dec 2019 22:00:01 -0700 (MST) Date: Mon, 16 Dec 2019 22:00:01 -0700 (MST) From: pratmeht To: pgsql-admin@postgresql.org Message-ID: <1576558801119-0.post@n3.nabble.com> Subject: DDLs of a Function MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Postgres Community, We want to drop a table and recreate it. As we all know, dropping a table even drops the dependent objects like views, MVs, functions. I wanted your help to get the DDL of the (dependent) function before we can drop the table. Once the dropped table is being recreated, this DDL will be helpful to recreate that function. We found a way to get the DDL of the Views and MVs, but not for function! :( Can someone please help ? Regards, Pratik Mehta -- Sent from: https://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html