pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: JORGE MALDONADO <jorgemal1960@gmail.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Backing up a DB excluding certain tables
Date: Thu, 28 Apr 2022 12:43:17 -0400
Message-ID: <22362.1651164197@sss.pgh.pa.us> (raw)
In-Reply-To: <CAAY=A7-FyONfqAF+Bc7=bk=jPL142p1FLf6J7f4K7aGO4x1o6A@mail.gmail.com>
References: <CAAY=A7-=_1xyODtD4QMhZQDek2BqP8krFZ8mAGxStDX_F6_LZA@mail.gmail.com>
	<252494.1650998593@sss.pgh.pa.us>
	<CAAY=A7--UtKZgmuoOtPuCTmf+fEX4Y8sUGo=Dw=wWbSZ=zG2Ow@mail.gmail.com>
	<282742.1651016166@sss.pgh.pa.us>
	<CAAY=A7-aRQ7SaEjVzpQXmtBsL+fAKE+aQmUwkgxM2D6NHDGSKQ@mail.gmail.com>
	<1db41c48-0738-dabd-5155-52c7ce1a19de@aklaver.com>
	<CAAY=A7-FyONfqAF+Bc7=bk=jPL142p1FLf6J7f4K7aGO4x1o6A@mail.gmail.com>

JORGE MALDONADO <jorgemal1960@gmail.com> 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





view thread (21+ messages)  latest in thread

Message-ID: <22362.1651164197@sss.pgh.pa.us>
Permalink:  ../22362.1651164197@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22362.1651164197@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jorgemal1960@gmail.com, adrian.klaver@aklaver.com
  Subject: Re: Backing up a DB excluding certain tables
  In-Reply-To: <22362.1651164197@sss.pgh.pa.us>
  References: <CAAY=A7-=_1xyODtD4QMhZQDek2BqP8krFZ8mAGxStDX_F6_LZA@mail.gmail.com> <252494.1650998593@sss.pgh.pa.us> <CAAY=A7--UtKZgmuoOtPuCTmf+fEX4Y8sUGo=Dw=wWbSZ=zG2Ow@mail.gmail.com> <282742.1651016166@sss.pgh.pa.us> <CAAY=A7-aRQ7SaEjVzpQXmtBsL+fAKE+aQmUwkgxM2D6NHDGSKQ@mail.gmail.com> <1db41c48-0738-dabd-5155-52c7ce1a19de@aklaver.com> <CAAY=A7-FyONfqAF+Bc7=bk=jPL142p1FLf6J7f4K7aGO4x1o6A@mail.gmail.com> <22362.1651164197@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox