| From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
|---|---|
| To: | Stefan Schwarzer <stefan(dot)schwarzer(at)grid(dot)unep(dot)ch> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Dump schema without the functions |
| Date: | 2008-02-01 13:19:21 |
| Message-ID: | 20080201131921.GB5172@alvh.no-ip.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Stefan Schwarzer wrote:
> But I don't really get how the final command will look like.
>
> pg_restore -L <file_without_FUNCTIONS> -d <my_database>
>
> But somewhere I have to indicate the original file, no? I mean, where do
> all my data now come from? The original dump contains all data; the
> newly created via
>
> pg_restore -l geodataportal.public | grep -v FUNCTION >
> pgdump.geodataportal.public.no-func
>
> has only the TOC. But no data...
Then you feed that file to pg_restore -L, along the original dump file.
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Stefan Schwarzer | 2008-02-01 13:44:22 | Re: Dump schema without the functions |
| Previous Message | Stefan Schwarzer | 2008-02-01 13:07:32 | Re: Dump schema without the functions |