Skip to content

Commit 034510c

Browse files
committed
Replace remaining uses of "whitelist".
Instead describe the action that the list effects, or just use "list" where the meaning is obvious from context. Author: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> Discussion: https://postgr.es/m/20200615182235.x7lch5n6kcjq4aue%40alap3.anarazel.de
1 parent fe05b6b commit 034510c

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

contrib/postgres_fdw/postgres_fdw.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ typedef struct PgFdwRelationInfo
7777
bool use_remote_estimate;
7878
Cost fdw_startup_cost;
7979
Cost fdw_tuple_cost;
80-
List *shippable_extensions; /* OIDs of whitelisted extensions */
80+
List *shippable_extensions; /* OIDs of shippable extensions */
8181

8282
/* Cached catalog information. */
8383
ForeignTable *table;

contrib/postgres_fdw/shippable.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* data types are shippable to a remote server for execution --- that is,
88
* do they exist and have the same behavior remotely as they do locally?
99
* Built-in objects are generally considered shippable. Other objects can
10-
* be shipped if they are white-listed by the user.
10+
* be shipped if they are declared as such by the user.
1111
*
1212
* Note: there are additional filter rules that prevent shipping mutable
1313
* functions or functions using nonportable collations. Those considerations
@@ -110,7 +110,7 @@ InitializeShippableCache(void)
110110
*
111111
* Right now "shippability" is exclusively a function of whether the object
112112
* belongs to an extension declared by the user. In the future we could
113-
* additionally have a whitelist of functions/operators declared one at a time.
113+
* additionally have a list of functions/operators declared one at a time.
114114
*/
115115
static bool
116116
lookup_shippable(Oid objectId, Oid classId, PgFdwRelationInfo *fpinfo)

src/backend/access/hash/hashvalidate.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ check_hash_func_signature(Oid funcid, int16 amprocnum, Oid argtype)
312312
* that are different from but physically compatible with the opclass
313313
* datatype. In some of these cases, even a "binary coercible" check
314314
* fails because there's no relevant cast. For the moment, fix it by
315-
* having a whitelist of allowed cases. Test the specific function
315+
* having a list of allowed cases. Test the specific function
316316
* identity, not just its input type, because hashvarlena() takes
317317
* INTERNAL and allowing any such function seems too scary.
318318
*/

src/backend/utils/adt/lockfuncs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ pg_isolation_test_session_is_blocked(PG_FUNCTION_ARGS)
644644
/*
645645
* Check if blocked_pid is waiting for a safe snapshot. We could in
646646
* theory check the resulting array of blocker PIDs against the
647-
* interesting PIDs whitelist, but since there is no danger of autovacuum
647+
* interesting PIDs list, but since there is no danger of autovacuum
648648
* blocking GetSafeSnapshot there seems to be no point in expending cycles
649649
* on allocating a buffer and searching for overlap; so it's presently
650650
* sufficient for the isolation tester's purposes to use a single element

src/tools/pginclude/README

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ with no prerequisite headers other than postgres.h (or postgres_fe.h
6464
or c.h, as appropriate).
6565

6666
A small number of header files are exempted from this requirement,
67-
and are whitelisted in the headerscheck script.
67+
and are skipped by the headerscheck script.
6868

6969
The easy way to run the script is to say "make -s headerscheck" in
7070
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++,
8686
so it's helpful for include files to be C++-clean.
8787

8888
A small number of header files are exempted from this requirement,
89-
and are whitelisted in the cpluspluscheck script.
89+
and are skipped by the cpluspluscheck script.
9090

9191
The easy way to run the script is to say "make -s cpluspluscheck" in
9292
the top-level build directory after completing a build. You should

0 commit comments

Comments
 (0)