From: | "Edward W(dot) Rouse" <erouse(at)comsquared(dot)com> |
---|---|
To: | "'Adrian Klaver'" <adrian(dot)klaver(at)gmail(dot)com> |
Cc: | <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: pg_dump - 8.3 - schemas |
Date: | 2012-02-16 19:31:15 |
Message-ID: | 06ca01ccece1$8c86c120$a5944360$@com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
To answer the second question first, yes; both as the same user.
pg_dump -v -f $bkfile -F c -U $USER $DATABASE
> -----Original Message-----
> From: Adrian Klaver [mailto:adrian(dot)klaver(at)gmail(dot)com]
> Sent: Thursday, February 16, 2012 2:22 PM
> To: Edward W. Rouse
> Cc: pgsql-sql(at)postgresql(dot)org
> Subject: Re: [SQL] pg_dump - 8.3 - schemas
>
> On 02/16/2012 10:59 AM, Edward W. Rouse wrote:
> > I am working with a database set up by someone else. They set it up
> so that
> > most tables are in the public schema, but they also have a reports
> schema;
> > database.public.tables and database.reports.tables.
> >
> > If I do a pg_dump of the database, I only get the public schema. If I
> do a
> > dump with --schema=reports, I only get the reports schema. Is there a
> way to
> > get all the schemas from a single pg_dump or am I forced to use
> separate
> > ones? This is also for future issues where there may be more than 2.
>
> The pg_dump should work.
> What is the exact command line statement you are using?
> Are doing both dumps as the same user?
>
> >
> > Thanks
> >
> > Edward W. Rouse
> >
> >
>
>
> --
> Adrian Klaver
> adrian(dot)klaver(at)gmail(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2012-02-16 19:38:49 | Re: pg_dump - 8.3 - schemas |
Previous Message | Adrian Klaver | 2012-02-16 19:21:46 | Re: pg_dump - 8.3 - schemas |