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 1nlbZC-0005Le-5s for pgsql-general@arkaria.postgresql.org; Mon, 02 May 2022 19:18:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nlbZA-0004eY-Pe for pgsql-general@arkaria.postgresql.org; Mon, 02 May 2022 19:18:40 +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 1nlbZ9-0004Ws-33 for pgsql-general@lists.postgresql.org; Mon, 02 May 2022 19:18:40 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlbZ2-0001M4-2r for pgsql-general@lists.postgresql.org; Mon, 02 May 2022 19:18:38 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id D0FB132009F0; Mon, 2 May 2022 15:18:29 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 02 May 2022 15:18:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1651519109; x= 1651605509; bh=0jzBor+MUgzQq1H5JTpWn5cTO+TevPcRW+KBZxxKVdg=; b=t uo1i1EpdBp6o/UVKday+3gg3RPoKvOBcuewf5/nNevsQha9C/SWhTRpNAUSE3Ldt cSm2WYyuUh8GZNhnN83MbwpW1sLeY6bj9M1/i+wReBD3s+1/o8iCdcc9NSFvtJis 2M499lkl6S3lgDTrCMEl80a7jAZ/GQvXlv77ctPqtyeoQaArEl1OMpiw1KE8u3z2 j9Da4otKW5oR2p0ba96VbiQY4NP+4PLkjm6QuKvT6f0DgbcjbuZdvD7m+k9bitzU VstmPkTzJMpmtosvVfs8VVK7B5JIgrjentiUb+wNj2OTLC8IgyEQwxN/5pHk76TW 9lRTl6yT/7HSgplQqqf4Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1651519109; x=1651605509; bh=0jzBor+MUgzQq 1H5JTpWn5cTO+TevPcRW+KBZxxKVdg=; b=XGAk5ogqQM1Jj05t7hmClY/3TcIR2 Rg+U1tDaTOYcGJdkuuWnWpyI1xSqBZlQ2Isv+B5MrQwbnkcs3OdRMCnrlhaKayJ+ 0B3FbV5m2jWAChT95FMAMF8ZsfHsFFkh3JWUcOWPfO27BXHolHJ33ICt/cC/Celp 0DZ1NvQ0tq3SNacs16tWwaFZDsmf0ALrBoyI/K9mOhFnS+T1r0L+YNXzwxuuhHm2 UvWERwNpjHb6kzHgHCJwfRQ4dN/U4cLynJ2zwu/E+UxFVOiB6TWvOFdBBE5Z2jQo gblpgFMa/E9wB9TXVerSX3gl7vXkDQ0+5kl68WFLuPsEvzQoCZGtVFflA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehgddufeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhephedugfethfettdehieevteeukedtjedvhfevkefg udefgeevteduvdeuvdeggeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 2 May 2022 15:18:28 -0400 (EDT) Message-ID: <1eaf7734-9fd3-24e7-d103-e6e3b8f341a8@aklaver.com> Date: Mon, 2 May 2022 12:18:27 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: Backing up a DB excluding certain tables Content-Language: en-US To: JORGE MALDONADO Cc: Tom Lane , pgsql-general@lists.postgresql.org References: <252494.1650998593@sss.pgh.pa.us> <282742.1651016166@sss.pgh.pa.us> <1db41c48-0738-dabd-5155-52c7ce1a19de@aklaver.com> <6a59a991-672b-19fc-3e25-286f83cd519e@aklaver.com> From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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