pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: JORGE MALDONADO <jorgemal1960@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Backing up a DB excluding certain tables
Date: Tue, 3 May 2022 08:47:45 -0700
Message-ID: <b9be0698-0726-8341-00fe-696c15db9694@aklaver.com> (raw)
In-Reply-To: <CAAY=A79BAXipcv4dY1uVpWO7xH9gP7Qo6qMMA-LNLMivcvHL1A@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>
	<6a59a991-672b-19fc-3e25-286f83cd519e@aklaver.com>
	<CAAY=A7-pTZyayKvR3f6nU2S=E3wdwGZp6Pap+KyKhDfTUh--bg@mail.gmail.com>
	<CAAY=A7_7n+N3+7Wpn_wBLYHJ+s5n9ZycogiUU_7xiV8sChMv4Q@mail.gmail.com>
	<1eaf7734-9fd3-24e7-d103-e6e3b8f341a8@aklaver.com>
	<CAAY=A79BAXipcv4dY1uVpWO7xH9gP7Qo6qMMA-LNLMivcvHL1A@mail.gmail.com>

On 5/3/22 09:10, JORGE MALDONADO wrote:
> Hi,
> 
> I tried the suggestion in the "*Notes for Windows Users*" which 
> recommends the following:
> 

> 
> The first suggestion says that 1252 is the code page for German. 
> However, I used it because that is the code the DB was created with. 
> When I ran the *cmd.exe /c chcp1252* command, nothing appeared on screen 
> but it looked like something was done. So I ran the command without the 
> */c* argument so the console window remained open. Then I changed the 

If you do in a console window:

chcp
cmd.exe /c chcp 1252 --It should be this not chcp1252
chcp

You should see the value returned by chcp change from 437 to 1252 with 
the window staying open. chcp without an argument will only display the 
current code page number.

Not sure what '...so the console window remained open.' means?
Did running cmd.exe close the console window?
If so how did you get to the console(command prompt)?



> font to *Lucida Console* and ran the *pg_dump* command with different 
> combinations in the *--exclude-table* argument without success.
> 
>   * --exclude-table *.AspNet*
>   * --exclude-table '*."AspNet"*'
>   * --exclude-table '*."AspNet*"'
>   * --exclude-table'*."AspNet*"'
> 
> ------------------------------------------------------------------------------------------------------------------------------------------------------------

-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (21+ messages)  latest in thread

Message-ID: <b9be0698-0726-8341-00fe-696c15db9694@aklaver.com>
Permalink:  ../b9be0698-0726-8341-00fe-696c15db9694@aklaver.com/
Also on:    postgresql.org/message-id/b9be0698-0726-8341-00fe-696c15db9694@aklaver.com

 · 

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: adrian.klaver@aklaver.com, jorgemal1960@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: Backing up a DB excluding certain tables
  In-Reply-To: <b9be0698-0726-8341-00fe-696c15db9694@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> <CAAY=A7-FyONfqAF+Bc7=bk=jPL142p1FLf6J7f4K7aGO4x1o6A@mail.gmail.com> <6a59a991-672b-19fc-3e25-286f83cd519e@aklaver.com> <CAAY=A7-pTZyayKvR3f6nU2S=E3wdwGZp6Pap+KyKhDfTUh--bg@mail.gmail.com> <CAAY=A7_7n+N3+7Wpn_wBLYHJ+s5n9ZycogiUU_7xiV8sChMv4Q@mail.gmail.com> <1eaf7734-9fd3-24e7-d103-e6e3b8f341a8@aklaver.com> <CAAY=A79BAXipcv4dY1uVpWO7xH9gP7Qo6qMMA-LNLMivcvHL1A@mail.gmail.com> <b9be0698-0726-8341-00fe-696c15db9694@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