Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id CA4541337B47 for ; Tue, 28 Sep 2010 10:20:32 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 57675-10 for ; Tue, 28 Sep 2010 13:20:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pz0-f46.google.com (mail-pz0-f46.google.com [209.85.210.46]) by mail.postgresql.org (Postfix) with ESMTP id 6246A1337B2F for ; Tue, 28 Sep 2010 10:20:22 -0300 (ADT) Received: by pzk34 with SMTP id 34so1506153pzk.19 for ; Tue, 28 Sep 2010 06:20:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=vp9VkvoPgsNMaIWg4SeJIzr8HdxEu9B/sSGrtvFQ/Zo=; b=rCDL3yldSnhrOop1LwSeIaUv/AUl4Qby/jx+AoglfEHtdOu/XNDp3QssALjyfcF07I zjxzht7a9Ep6eeB7BYcFuNKLXZ9vQJfuwx4vRh3p09OKrOEWhLyd626Zt2aFi2xXlCH1 4oAdS2qjIM3p6PDAZk8/4jjLxEhnDVlzBoQnA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=b4g3eaq27NB3d0W9XyS3gVuP9kjuE5+c5+lgL3yHtthjJW+C7pngaxGtI1kBrrnYtE YwUHG1MogolAAK8lQa0AtJdEkmEAJizJCIC3p2MyfcGqPoH/EO2BX5YVziIJHtly/Ej5 KFCpWZQXO29PcKJJOxbxMWJxbuOlSC9TpSvGc= Received: by 10.142.240.8 with SMTP id n8mr2687998wfh.69.1285680022240; Tue, 28 Sep 2010 06:20:22 -0700 (PDT) Received: from [192.168.23.141] ([121.241.184.130]) by mx.google.com with ESMTPS id 9sm8823975wfd.0.2010.09.28.06.20.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 28 Sep 2010 06:20:21 -0700 (PDT) Subject: Re: pg_dump and table exclusion: multiple patterns Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Vibhor Kumar In-Reply-To: Date: Tue, 28 Sep 2010 18:50:10 +0530 Cc: Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Marc Mamin X-Mailer: Apple Mail (2.1081) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201009/166 X-Sequence-Number: 35710 On Sep 28, 2010, at 6:26 PM, Marc Mamin wrote: > But if I prefix my pattern with the schema name, then I finally get = the expected result: >=20 > pg_dump -i -v -nXXX -T 'XXX.*2008*' -T ' XXX.*2009*' -T ' = XXX.*201001*' -T XXX.'*201002*' ..... >=20 >=20 > seems that the use of the -n flag requires to use these schema names = within the patterns ... By default tablename without namespace get search in Public Schema. Please try something like this=20 pg_dump -i -v -n XXXX -T '*.2008*' .... Thanks & Regards, Vibhor Kumar (PCP & OCP) ITIL V3 Cerftified. Web:www.EnterpriseDB.com