|
Home > Archive > PostgreSQL Discussion > February 2006 > Dumping functions
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Steve Crawford 2006-02-28, 8:28 pm |
| How can I dump a function definition with pg_dump?
Background: We often need to create objects that are all relevant to
only a specific project. Sometimes it is a single table. Other times
there are many tables, indexes, views, rules, triggers and functions.
All the objects share a unique substring that identifies the project so
automatically creating the list is easy.
When I use pg_dump to dump a table I will by default also get the
associated indexes, rules and triggers. Views can be dumped just like
tables. So all I need to do to archive the whole mess is to automate the
dump of the functions.
Ideas?
Cheers,
Steve
---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster
| |
| Bricklen Anderson 2006-02-28, 8:28 pm |
| Steve Crawford wrote:
> How can I dump a function definition with pg_dump?
>
> Background: We often need to create objects that are all relevant to
> only a specific project. Sometimes it is a single table. Other times
> there are many tables, indexes, views, rules, triggers and functions.
> All the objects share a unique substring that identifies the project so
> automatically creating the list is easy.
>
> When I use pg_dump to dump a table I will by default also get the
> associated indexes, rules and triggers. Views can be dumped just like
> tables. So all I need to do to archive the whole mess is to automate the
> dump of the functions.
>
> Ideas?
>
> Cheers,
> Steve
>
This thread has a few options available
http://archives.postgresql.org/pgsq...10/msg01589.php
---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
|
|
|
|
|