From: | Jerry Sievers <gsievers19(at)comcast(dot)net> |
---|---|
To: | "Bradley Holbrook\, Servillian Technology" <bholbrook(at)servillian(dot)com> |
Cc: | <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Dump SQL DDL of all functions in DB |
Date: | 2011-08-09 15:55:39 |
Message-ID: | 8739hay3yc.fsf@comcast.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
"Bradley Holbrook, Servillian Technology" <bholbrook(at)servillian(dot)com>
writes:
> Anyone know how to dump the DDL of every function in a schema into one file?
>
> Essentially, Iùd like to do something like:
>
> øfunctions ddl dump cmdù public functions.sql
select pg_get_functiondef(p.oid) || ';'
from pg_proc p
join pg_namespace n on p.pronamespace = n.oid
where n.nspname = 'public'
;
psql -Atq -f...
HTH
> Bradley A Holbrook
>
> Sr. Web Developer
>
> Servillian Technology Ltd
>
> http://www.servillian.com
>
> bholbrook(at)servillian(dot)com
>
> bholbrook(at)telus(dot)blackberry(dot)net
>
> Cell: (250) 309 ó 7408
>
> Office: (250) 260 ó 4351 ext. 13
>
> *************************************
>
> For up to the minute news, support notifications and other pertinant information regarding your website or related
> services, you can use the following resources:
>
> Twitter | Facebook | Support Website
>
--
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres(dot)consulting(at)comcast(dot)net
p: 305.321.1144
From | Date | Subject | |
---|---|---|---|
Next Message | Raghavendra | 2011-08-09 16:38:04 | Re: Postgres process |
Previous Message | Tom Lane | 2011-08-09 15:49:10 | Re: PGDATA not accessible; please fix the directory permissions ($PGDATA should be world readable) |