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: Mon, 2 May 2022 12:18:27 -0700
Message-ID: <1eaf7734-9fd3-24e7-d103-e6e3b8f341a8@aklaver.com> (raw)
In-Reply-To: <CAAY=A7_7n+N3+7Wpn_wBLYHJ+s5n9ZycogiUU_7xiV8sChMv4Q@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>

On 5/2/22 12:24, JORGE MALDONADO wrote:
> Hi,
> 
> After a lot of tests and reading about the issue with the "*exclude 
> table*" option on *pg_dump*, I found many articles saying that the 
> problem has to do with the encoding of the DB. The DB I am testing with 
> has a *WIN1252* encoding, so I decided to create a new DB with *UTF8* 
> encoding. The following is a list of the actual DBs, being *riopoderoso* 
> and *testdb* the ones I tested. As you can see, *riopoderoso* has 
> *WIN1252* encoding and *testdb* has *UTF8* encoding. The *pg_dump* 
> command worked correctly when testing the *testDB* database. So, this 
> proves that encoding is the real issue here. Both DBs have the same 
> *Collate* and *Ctype* however, the only difference is the encoding. With 
> this in mind, I see that I can set the encoding to *UTF8* and leave 
> *Collate* and *Ctype* as shown because, as far as I understand, both of 
> them have to do with string comparison (the language used to enter data 
> into the DB is Spanish). I will very much appreciate your comments on this.
> 
> image.png

Please do not use images for textual information as you end up with the 
above in the email archives or in email clients that are text only. The 
information is then lost. Copy and paste from the console.

Back to the issue at hand:

1) Did you try the suggestion in the  "Notes for Windows users" for the 
riopoderoso database?

2) What was the pg_dump command that you used that worked?

> 
> With respect,
> Jorge Maldonado
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (21+ messages)  latest in thread

Message-ID: <1eaf7734-9fd3-24e7-d103-e6e3b8f341a8@aklaver.com>
Permalink:  ../1eaf7734-9fd3-24e7-d103-e6e3b8f341a8@aklaver.com/
Also on:    postgresql.org/message-id/1eaf7734-9fd3-24e7-d103-e6e3b8f341a8@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: <1eaf7734-9fd3-24e7-d103-e6e3b8f341a8@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>

* 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