Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r8Zph-00AdtM-V7 for pgsql-committers@arkaria.postgresql.org; Thu, 30 Nov 2023 05:43:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r8Zpf-00F543-QN for pgsql-committers@arkaria.postgresql.org; Thu, 30 Nov 2023 05:43:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r8Zpe-00F53u-6G for pgsql-committers@lists.postgresql.org; Thu, 30 Nov 2023 05:43:27 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r8ZpY-009ILK-M2 for pgsql-committers@lists.postgresql.org; Thu, 30 Nov 2023 05:43:25 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 219963200A23; Thu, 30 Nov 2023 00:43:17 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 30 Nov 2023 00:43:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type: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=fm1; t=1701322996; x=1701409396; bh=fC YJVDiciwKvY1kPbUtiRyh7ZVTQOiDKvqxYrh/0Yxg=; b=TzfO2cyfmySHcbeZY8 BDmjN0am6X9Nct9ovqDH8628Iq9kaRMUsSOzZzayOhMAgLqOVQDYliqK9XCGE8yM sH7wojcaIVBpTQpUFA5rvtTcgRSVIDrEyT2k/x9j0RH0BSMU2HJxvC/iWTVH5O+O 7kFrpG/vm5ZsQ9BdoalIp4Mpc8B8U9LRlCy5oS3xg0HTlYEnC0tSoGFRkGysTzK/ tsCmgbuZRL3AsYgIfFkkpPuKH5u056YPoOVf+0YxEOJPLjfg1Cgtod01nYYusJ5Y Hr6m9PB9+JjWY+vRO97YcyIew0SOXUQcRzxeQeZK6m35Cpt+IyqLvlLFWHEzLvEZ BAFg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id: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=1701322996; x=1701409396; bh=fCYJVDiciwKvY 1kPbUtiRyh7ZVTQOiDKvqxYrh/0Yxg=; b=rQNd7M1njpk+PYk5YE/dMt2uODLy3 B1fSx0IUkFjBjni+1QJztBSW0P4mJuJwyqUQ9m25Aue2lVC72STfHYc/m2Fqd6rK LczaJ1Fza0IxABGMXMZZEld9jbrFFe3ThJWK+48c7k+5ZgiaKthLv/zJrjZ8qTaL lxL8W/CJnbqHK7BEFay5yLefoFYPuppQr5lx3lNTOZ8mRKqtmmOdlO6hJsg5iler b/F+a16icPvWHf1yRzbEn1hF53Repwu6GRffWKRIOhvhZWZ6gecO91qI2pBSpHwX LDJgWi0aKcHimNR7NcEvXCRpMxjNkaVW2C5svm291qA2oR++TdsYVUprw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeiiedgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepgeffjeevgfevuddvjedtvddt ieejheduueelvddufedtgfefjedvkeevkeeivddvnecuffhomhgrihhnpehpohhsthhgrh gvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 30 Nov 2023 00:43:14 -0500 (EST) Date: Thu, 30 Nov 2023 14:43:03 +0900 From: Michael Paquier To: Daniel Gustafsson Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Read include/exclude commands for dump/restore from file Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3T+P3ftEIXHZFMCZ" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --3T+P3ftEIXHZFMCZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Daniel, On Wed, Nov 29, 2023 at 02:21:28PM +0000, Daniel Gustafsson wrote: > Read include/exclude commands for dump/restore from file >=20 > When there is a need to filter multiple tables with include and/or exclude > options it's quite possible to run into the limitations of the commandlin= e. > This adds a --filter=3DFILENAME feature to pg_dump, pg_dumpall and pg_res= tore > which is used to supply a file containing object exclude/include commands > which work just like their commandline counterparts. The format of the fi= le > is one command per row like: >=20 > >=20 > can be "include" or "exclude", can be table_data, index > table_data_and_children, database, extension, foreign_data, function, tab= le > schema, table_and_children or trigger. >=20 > This patch has gone through many revisions and design changes over a long > period of time, the list of reviewers reflect reviewers of some version of > the patch, not necessarily the final version. mamba is unhappy with the new filter.c: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dmamba&dt=3D2023-1= 1-30%2002%3A53%3A25 For instance: filter.c: In function 'filter_get_keyword': filter.c:188:17: error: array subscript has type 'char' [-Werror=3Dchar-sub= scripts] 188 | while (isspace(*ptr)) | ^ -- Michael --3T+P3ftEIXHZFMCZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmVoIOcACgkQnvQgOdby QH01Dg//TLUJpb5ws8JcD6+rIxGqFrSfbnFNaxnxrMuXrOy4sU1lvOj8KAFp5Tjt FNg9HZGhuWgpVZeuXguxDDXISD8Q7nw5e1xI5ZKFlnF8T4/ztwXtxnS8qukPqqu7 hLJ8QHMcNz/G9qTZxln6+5bhGtbR3ls43nUNNinxUjiWJ4hsVQGZw1/anWHPn2eL EqFPa2uY1KWZO3WW/QO7scA0qWqZF2wTVnIaNkF4Ef0Pp0vr/8j2emI2LA90P9le dpZQLJr7No3c5FbdfqGgwTuxCDjvfklAG23juZMMEY4p4ouf/M614UVrjJsvZUA0 kLS3RhBTjGTtOmWOvLITVTx//hzwdX0xOrS5gKOuuT8bNg55jIUzAlNoB5a7cvcK w4xSEvwovipoVhlZkkVfK7MxG/pKYuvWA24m+GIjKwWUIRwcWNIpmGczF+qLpaNf AYS6ElWQ4wzPBBn6C+LxMEbZVr41eqelZko6J74DwgQV8iajpSRdJmdvL6tBGVtb 5DiJLxa3xOLFNjCNEIB4vrSOhmcxTopQcbPDymZC3Na/L9R+86w3nvlULM4+eawF fsTIlpNKo9Ou9MyK1G6ziBk9n8RiUmjsSY5reCmzbRU3pekwcALIUiKf6l/zId0O 2XhEvc8I7+MifqMPbGTzBRcZ7Q1ca0N1OndaAkrxUJ1jlMsejoc= =BvJm -----END PGP SIGNATURE----- --3T+P3ftEIXHZFMCZ--