Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 154906E7E0C for ; Thu, 16 Feb 2012 15:22:01 -0400 (AST) Received: from mail-pw0-f46.google.com ([209.85.160.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ry6u1-0007NR-NW for pgsql-sql@postgresql.org; Thu, 16 Feb 2012 19:22:02 +0000 Received: by pbcun15 with SMTP id un15so2820967pbc.19 for ; Thu, 16 Feb 2012 11:21:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=bH+9CtKQCblFtpV4Usy7a5HppRU6DGqnkMdyKmvAfSs=; b=l9EHp9aeK7gUaaXA84NkBswVkCNJxBTDtZzkUrSaQmnigVLHOeqsGnoFk4PgH/cRwy E6aqbWvsNVrPjcge+WmTvf9256I2N2/QLbt06rvyaBeq/l1ujwdi630kKvZyTjVO7u+2 UgmZx/AgVcrwROBOfFIarYAzwBqWnkI6Cp7PI= Received: by 10.68.217.41 with SMTP id ov9mr16585670pbc.82.1329420108884; Thu, 16 Feb 2012 11:21:48 -0800 (PST) Received: from [192.168.0.135] (c-24-17-179-185.hsd1.wa.comcast.net. [24.17.179.185]) by mx.google.com with ESMTPS id l1sm3009710pbe.54.2012.02.16.11.21.47 (version=SSLv3 cipher=OTHER); Thu, 16 Feb 2012 11:21:48 -0800 (PST) Message-ID: <4F3D574A.9010709@gmail.com> Date: Thu, 16 Feb 2012 11:21:46 -0800 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: "Edward W. Rouse" CC: pgsql-sql@postgresql.org Subject: Re: pg_dump - 8.3 - schemas References: <06c601ccecdd$2cbeefa0$863ccee0$@com> In-Reply-To: <06c601ccecdd$2cbeefa0$863ccee0$@com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201202/50 X-Sequence-Number: 36343 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.klaver@gmail.com