Re: How to dump JUST procedures/funnctions? - Mailing list pgsql-general

From Tom Lane
Subject Re: How to dump JUST procedures/funnctions?
Date
Msg-id 15756.1269259419@sss.pgh.pa.us
Whole thread Raw
In response to Re: How to dump JUST procedures/funnctions?  ("Carlo Stonebanks" <stonec.register@sympatico.ca>)
List pgsql-general
"Carlo Stonebanks" <stonec.register@sympatico.ca> writes:
>> Afaik no, you can make a schema-dump and extract the function
>> declarations from the dump.

> Yeah, that's what I was doing. Bloody tedious. Thanks anyway!

It seems like it could be automated.

    pg_dump -Fc -s mydb >mydb.dump
    pg_restore -l mydb.dump | grep FUNCTION >mydb.list
    pg_restore -L mydb.list mydb.dump >functionsonly.txt

(or something more or less like that --- too early in the morning...)

            regards, tom lane

pgsql-general by date:

Previous
From: Carsten Kropf
Date:
Subject: Determining the OID of a certain type
Next
From: Tom Lane
Date:
Subject: Re: Determining the OID of a certain type