Search Postgresql Archives

Re: How to dump JUST procedures/funnctions?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Carlo Stonebanks" <stonec.register@xxxxxxxxxxxx> 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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux