From: Adrian Klaver <adrian.klaver@aklaver.com>
To: JORGE MALDONADO <jorgemal1960@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Backing up a DB excluding certain tables
Date: Wed, 27 Apr 2022 17:19:50 -0700
Message-ID: <1db41c48-0738-dabd-5155-52c7ce1a19de@aklaver.com> (raw)
In-Reply-To: <CAAY=A7-aRQ7SaEjVzpQXmtBsL+fAKE+aQmUwkgxM2D6NHDGSKQ@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>
On 4/27/22 15:45, JORGE MALDONADO wrote:
> Is this the correct way to answer when you say that I must *keep the
> list cc'd*? I am not sure if I only have to reply to the
> *pgsql-general@lists.postgresql.org
> <mailto:pgsql-general@lists.postgresql.org>* list or also include
> individual emails like yours and Adrian's.
>
> I have tried many ways to make this pg_dump command work without
> success. I just do not know what is going on. The last test I performed
> was as follows which only excludes 1 table in the *riopoderoso* schema
> but it did not work. Such a table is included in the resulting backup
> plain format file.
>
> *pg_dump -E win1252 -f c:/temp/respaldo.backup -n riopoderoso -F p -h
> localhost -p 5432 -U postgres -W -s -T 'riopoderoso."AspNetRoleClaims"'
> riopoderoso*
Using the command line client psql what does:
show client_encoding ;
show server_encoding ;
return?
Also in psql what does:
\dt riopoderoso."Asp"*
return?
FYI, -n riopoderoso and the riopoderoso in
'riopoderoso."AspNetRoleClaims"' are redundant.
>
> If there are any additional comments please let me know. I will keep
> trying. It is important to exclude these tables because they are created
> and managed by other means. Such tables are part of the authentication
> feature included in ASP.NET <http://ASP.NET; Core.
>
> With respect,
> Jorge Maldonado
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, jorgemal1960@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: Backing up a DB excluding certain tables
In-Reply-To: <1db41c48-0738-dabd-5155-52c7ce1a19de@aklaver.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>
* 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