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 1njrt0-0001fr-Re for pgsql-general@arkaria.postgresql.org; Thu, 28 Apr 2022 00:19:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1njrsz-0002Dk-JV for pgsql-general@arkaria.postgresql.org; Thu, 28 Apr 2022 00:19:57 +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 1njrsy-0002Db-MB for pgsql-general@lists.postgresql.org; Thu, 28 Apr 2022 00:19:57 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njrsv-0007vb-IZ for pgsql-general@lists.postgresql.org; Thu, 28 Apr 2022 00:19:55 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id D9AAC5C01F6; Wed, 27 Apr 2022 20:19:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 27 Apr 2022 20:19:51 -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=1651105191; x= 1651191591; bh=djdEMwoI6tubtT4s/ZDuMBzOCIcRxbLXxR8BIEXBcDY=; b=q iCINC9hZhMjNMdy7ZGa2cjUgRC+OX7ri2M9hhiFPLlCqy3wuoBnbjEure7B+B0Ux PlAGqx/a93yP7f40JgoixlEqB3bmrCSTOdYGV1NAE4efAUDDRFXUDnIGHurlg5tc kaD3DwIsZdRH4CQDKKt6qFxUAgWaMdPALFwm/wR+Q+fGHOt6LwcQH/Pzs7eJfIGQ bvIz0G/aP4tLKcBrMKEDmfrNs+QX/Sjh34YEkZWgSTpdyGQhMF1jOf3gDaycvTrh 09oxjoeE7PLl5tBs/bA+7eG6ifKRS3YdEsqFeszzDc1bp4wOC4gdjmw62a5tipj3 jTgfjUmJnyxhCF8E+HYwg== 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=1651105191; x=1651191591; bh=djdEMwoI6tubt T4s/ZDuMBzOCIcRxbLXxR8BIEXBcDY=; b=iCDgpzQSp0BLjKsslXSqDW+nTa5lT fVDtLfP8jOANKJs3lbd0lZGZs+R/hzxHsh9EV5EPEDSWqIVKpvitpBKD2YEha1Rm +4p7765Vzdy1vhK35Zh+H35OF3FHC4xVawWDb/Z6tFni8mcdUqdOF2k+J58Isyln 3jhKSJXSbJRZLMKRXvjXG2q90NeQac6jvQAWPMcsNW9/zJYGRvr/w+jI2zY+L/zh UnfDSl3Z2NN2D6NcVYR1KcYNIc+81ssgnYCX0Y04dznRUZGZA6uEWZFZ7KeO8iZR vkf3f6DF1fDMohWDhlUQ/+eOX8LYBJR0YkSya7735gzdtgaCjYP50EXiw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeigdefgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeffheegheeludevfeegtdekudfhtdevhedvhfekgedv hedtieefgfeggeffgfegheenucffohhmrghinheprghsphdrnhgvthenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghv vghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 27 Apr 2022 20:19:51 -0400 (EDT) Message-ID: <1db41c48-0738-dabd-5155-52c7ce1a19de@aklaver.com> Date: Wed, 27 Apr 2022 17:19:50 -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 , Tom Lane Cc: pgsql-general@lists.postgresql.org References: <252494.1650998593@sss.pgh.pa.us> <282742.1651016166@sss.pgh.pa.us> From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 > * 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 Core. > > With respect, > Jorge Maldonado > > -- Adrian Klaver adrian.klaver@aklaver.com