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 1kwaSS-0006xW-RD for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Jan 2021 00:44:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kwaSR-0003hQ-OW for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Jan 2021 00:44:19 +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 1kwaSR-0003hJ-D1 for pgsql-hackers@lists.postgresql.org; Tue, 05 Jan 2021 00:44:19 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kwaSP-0006wN-2l for pgsql-hackers@postgresql.org; Tue, 05 Jan 2021 00:44:18 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 5E50D5C0175; Mon, 4 Jan 2021 19:44:16 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 04 Jan 2021 19:44:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h= from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-type; s=fm1; bh=dIDhj6376tH7Ade3gD9/nxFOQ7 xJ5wf1fXFRxikS2W0=; b=SJwMFfVTxMA1gEB+n/DAMfh7zVI36scgAx1BGScCR1 bt4P9LcaVyKkk7ZOGE3c/gYOdj3NrSrI1WtY9Fdl+zOFHvPSxFhnVNkvZ9K/x+v7 7wf6igobNyyyB8+/TaVyJMqq3VdeCazxaEJMlRy5It6lCbQwWET4LtB9LtMk43Js C86srZWrqTr9Mag+nEUiWag954BiDFYPeSRKn6x9Vp9klPA2Kgouplt9AqBuCDun LkWcIcOspFLy6HQuHfpM1DaRObx7ymTjiMaAywwJFeBROTl4i6Rw/z6OfBJsfJ9X c9ZkolFGuzIDoQQ53OC/mvwmbpZ5g6AKNXZAmcleHjAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=dIDhj6 376tH7Ade3gD9/nxFOQ7xJ5wf1fXFRxikS2W0=; b=ZrnTXRzJSfpF5NYLrbwVde uo2LZvLG2xU9us+vL2e0zwYZ9BOAXLa1OjNJ3q0DZToL9SEnRjoPqJFbehqiqho+ nttbYOz32WrjknKOEYnjbcqYEMbgVrkEI3RDT2lhi/HfneioFMGdOJGLA0g3FKzr N1NWngI+S7gUfWLn4btmj0WMZjbR5zY9GfJgi7N0s+C86C3ggTqspzjtFiB/y4z1 2Fvo75Q90l9jNjjv5DSx2wuGzq/Eaek1ZQOveoK/lGSaJAgKzXayN4s3eBrZtM7s Jrt0Z79rW9rE2PoLuA968SHJLshJHUbssGsOPxbPGVy5wMPi/WVfv1cVZO6Fwl6w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdefgedgvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufhfffgjkfgfgggtsehmtderredtreejnecuhfhrohhmpehilhhmrghr ihesihhlmhgrrhhirdhorhhgucdlffgrghhfihhnnhcukfhlmhgrrhhiucforghnnhhsno hkvghrmdenucggtffrrghtthgvrhhnpeekkeffueekgfdukedugfelledvgeejtefgledu hfehteeffeevgfeguedtffekhfenucfkphepgeeirdegfedrudehrddvhedvnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihhlmhgrrhhisehi lhhmrghrihdrohhrgh X-ME-Proxy: Received: from wibble.ilmari.org (wibble.ilmari.org [46.43.15.252]) by mail.messagingengine.com (Postfix) with ESMTPA id 61C2124005A; Mon, 4 Jan 2021 19:44:15 -0500 (EST) From: ilmari@ilmari.org (Dagfinn Ilmari =?utf-8?Q?Manns=C3=A5ker?=) To: Thomas Munro Cc: Magnus Hagander , Andres Freund , PostgreSQL-development Subject: Re: language cleanups in code and docs References: <20200615182235.x7lch5n6kcjq4aue@alap3.anarazel.de> <87wnws6y2w.fsf@wibble.ilmari.org> Date: Tue, 05 Jan 2021 00:44:13 +0000 In-Reply-To: (Thomas Munro's message of "Tue, 5 Jan 2021 13:27:48 +1300") Message-ID: <87turw6wma.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Thomas Munro writes: > On Tue, Jan 5, 2021 at 1:12 PM Dagfinn Ilmari Mannsåker > wrote: >> Magnus Hagander writes: >> > In looking at this I realize we also have exactly one thing referred to as >> > "blacklist" in our codebase, which is the "enum blacklist" (and then a >> > small internal variable in pgindent). >> >> Here's a patch that renames the @whitelist and %blacklist variables in >> pgindent to @additional and %excluded, and adjusts the comments to >> match. > > Pushed. Thanks! Thanks! Just after sending that, I thought to grep for "white\W*list" as well, and found a few more occurrences that were trivially reworded, per the attached patch. - ilmari -- "A disappointingly low fraction of the human race is, at any given time, on fire." - Stig Sandbeck Mathisen --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Replace-remaining-uses-of-whitelist.patch From 43e9c60bac7b1702e5be2362a439f67adc8a5e06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dagfinn=20Ilmari=20Manns=C3=A5ker?= Date: Tue, 5 Jan 2021 00:20:49 +0000 Subject: [PATCH] Replace remaining uses of "whitelist" Instead describe the action that the list effects, or just use "list" where the meaning is obvious from context. --- contrib/postgres_fdw/postgres_fdw.h | 2 +- contrib/postgres_fdw/shippable.c | 4 ++-- src/backend/access/hash/hashvalidate.c | 2 +- src/backend/utils/adt/lockfuncs.c | 2 +- src/tools/pginclude/README | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/contrib/postgres_fdw/postgres_fdw.h b/contrib/postgres_fdw/postgres_fdw.h index 277a30f500..19ea27a1bc 100644 --- a/contrib/postgres_fdw/postgres_fdw.h +++ b/contrib/postgres_fdw/postgres_fdw.h @@ -77,7 +77,7 @@ typedef struct PgFdwRelationInfo bool use_remote_estimate; Cost fdw_startup_cost; Cost fdw_tuple_cost; - List *shippable_extensions; /* OIDs of whitelisted extensions */ + List *shippable_extensions; /* OIDs of shippable extensions */ /* Cached catalog information. */ ForeignTable *table; diff --git a/contrib/postgres_fdw/shippable.c b/contrib/postgres_fdw/shippable.c index c43e7e5ec5..b27f82e015 100644 --- a/contrib/postgres_fdw/shippable.c +++ b/contrib/postgres_fdw/shippable.c @@ -7,7 +7,7 @@ * data types are shippable to a remote server for execution --- that is, * do they exist and have the same behavior remotely as they do locally? * Built-in objects are generally considered shippable. Other objects can - * be shipped if they are white-listed by the user. + * be shipped if they are declared as such by the user. * * Note: there are additional filter rules that prevent shipping mutable * functions or functions using nonportable collations. Those considerations @@ -110,7 +110,7 @@ InitializeShippableCache(void) * * Right now "shippability" is exclusively a function of whether the object * belongs to an extension declared by the user. In the future we could - * additionally have a whitelist of functions/operators declared one at a time. + * additionally have a list of functions/operators declared one at a time. */ static bool lookup_shippable(Oid objectId, Oid classId, PgFdwRelationInfo *fpinfo) diff --git a/src/backend/access/hash/hashvalidate.c b/src/backend/access/hash/hashvalidate.c index 8462540017..1e343df0af 100644 --- a/src/backend/access/hash/hashvalidate.c +++ b/src/backend/access/hash/hashvalidate.c @@ -312,7 +312,7 @@ check_hash_func_signature(Oid funcid, int16 amprocnum, Oid argtype) * that are different from but physically compatible with the opclass * datatype. In some of these cases, even a "binary coercible" check * fails because there's no relevant cast. For the moment, fix it by - * having a whitelist of allowed cases. Test the specific function + * having a list of allowed cases. Test the specific function * identity, not just its input type, because hashvarlena() takes * INTERNAL and allowing any such function seems too scary. */ diff --git a/src/backend/utils/adt/lockfuncs.c b/src/backend/utils/adt/lockfuncs.c index 9f2c4946c9..0db8be6c91 100644 --- a/src/backend/utils/adt/lockfuncs.c +++ b/src/backend/utils/adt/lockfuncs.c @@ -644,7 +644,7 @@ pg_isolation_test_session_is_blocked(PG_FUNCTION_ARGS) /* * Check if blocked_pid is waiting for a safe snapshot. We could in * theory check the resulting array of blocker PIDs against the - * interesting PIDs whitelist, but since there is no danger of autovacuum + * interesting PIDs list, but since there is no danger of autovacuum * blocking GetSafeSnapshot there seems to be no point in expending cycles * on allocating a buffer and searching for overlap; so it's presently * sufficient for the isolation tester's purposes to use a single element diff --git a/src/tools/pginclude/README b/src/tools/pginclude/README index a067c7f472..49eb4b6907 100644 --- a/src/tools/pginclude/README +++ b/src/tools/pginclude/README @@ -64,7 +64,7 @@ with no prerequisite headers other than postgres.h (or postgres_fe.h or c.h, as appropriate). A small number of header files are exempted from this requirement, -and are whitelisted in the headerscheck script. +and are skipped by the headerscheck script. The easy way to run the script is to say "make -s headerscheck" in the top-level build directory after completing a build. You should @@ -86,7 +86,7 @@ the project's coding language is C, some people write extensions in C++, so it's helpful for include files to be C++-clean. A small number of header files are exempted from this requirement, -and are whitelisted in the cpluspluscheck script. +and are skipped by the cpluspluscheck script. The easy way to run the script is to say "make -s cpluspluscheck" in the top-level build directory after completing a build. You should -- 2.29.2 --=-=-=--