Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nk7Ej-00051j-7c for pgsql-general@arkaria.postgresql.org; Thu, 28 Apr 2022 16:43:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nk7Ei-000091-0x for pgsql-general@arkaria.postgresql.org; Thu, 28 Apr 2022 16:43:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nk7Eh-0008Qu-Lm for pgsql-general@lists.postgresql.org; Thu, 28 Apr 2022 16:43:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nk7Ef-0007N6-C9 for pgsql-general@lists.postgresql.org; Thu, 28 Apr 2022 16:43:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 23SGhHoR022363; Thu, 28 Apr 2022 12:43:17 -0400 From: Tom Lane To: JORGE MALDONADO cc: Adrian Klaver , pgsql-general@lists.postgresql.org Subject: Re: Backing up a DB excluding certain tables In-reply-to: References: <252494.1650998593@sss.pgh.pa.us> <282742.1651016166@sss.pgh.pa.us> <1db41c48-0738-dabd-5155-52c7ce1a19de@aklaver.com> Comments: In-reply-to JORGE MALDONADO message dated "Thu, 28 Apr 2022 10:57:31 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22361.1651164197.1@sss.pgh.pa.us> Date: Thu, 28 Apr 2022 12:43:17 -0400 Message-ID: <22362.1651164197@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk JORGE MALDONADO writes: >> *FYI, -n riopoderoso and the riopoderoso >> in'riopoderoso."AspNetRoleClaims"' are redundant.* > Should I remove the schema name so the exclude switch is *-T "AspNet"* > instead of *-T 'riopoderoso."AspNet"'?* No. As I explained upthread, you'd better use either *."AspNet"* or riopoderoso."AspNet"* because otherwise the pattern won't match tables that aren't in pg_dump's restricted search_path. I continue to think that your problem boils down to one of getting the quoting around the double-quoted pattern correct. I'm not a Windows user so I don't know much about shell quoting rules there. regards, tom lane