pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Petersen <scottpetersen@softhome.net>
To: pgsql-sql@postgresql.org
Subject: Deleting Functions
Date: Wed, 23 Aug 2006 13:29:12 -0600
Message-ID: <44ECAC88.4060208@softhome.net> (raw)

Folks,

I am using PGSQL do do all of my schema changes, but have run into a 
problem.  I need to be able to DROP all of the USER FUNCTIONS that are 
defined in a schema.  The problem is that I do not know the names of all 
of the functions and parameters.  I know that I could use '\df' and then 
use perl or some other scripting language to parse this, but I need to 
be able to perform this action on multiple platforms (without rewriting 
the process for each platform). 

I have written a script that incorporates '\df' and appropriate parsing 
to perform this action for LINUX and it works fine/lasts a long time.  I 
need to make this more transparent so it will run on all platforms (in 
particular windows).

I know that in the past (version 7) there was a way to drop the 
functions by directly accessing some of the system tables.  The 
question/problem is that we have updated to version 8.1 and need the 
same functionality.



Any help or directions would be greatly appreciated.

Thanks Scott.



view thread (4+ messages)  latest in thread

Message-ID: <44ECAC88.4060208@softhome.net>
Permalink:  ../44ECAC88.4060208@softhome.net/
Also on:    postgresql.org/message-id/44ECAC88.4060208@softhome.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: scottpetersen@softhome.net
  Subject: Re: Deleting Functions
  In-Reply-To: <44ECAC88.4060208@softhome.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox