diff options
| author | Tom Lane | 2021-07-13 19:01:01 +0000 |
|---|---|---|
| committer | Tom Lane | 2021-07-13 19:01:01 +0000 |
| commit | d68a00391214be2020e49be4b55f761d47a5c229 (patch) | |
| tree | 766b2aebf10bbe67fb38bcc012425c11d06792eb /src/pl | |
| parent | e0271d5f1e871dd61efc26bda8a0b556c7935901 (diff) | |
Rename debug_invalidate_system_caches_always to debug_discard_caches.
The name introduced by commit 4656e3d66 was agreed to be unreasonably
long. To match this change, rename initdb's recently-added
--clobber-cache option to --discard-caches.
Discussion: https://postgr.es/m/1374320.1625430433@sss.pgh.pa.us
Diffstat (limited to 'src/pl')
| -rw-r--r-- | src/pl/plpgsql/src/expected/plpgsql_cache.out | 12 | ||||
| -rw-r--r-- | src/pl/plpgsql/src/expected/plpgsql_cache_1.out | 12 | ||||
| -rw-r--r-- | src/pl/plpgsql/src/expected/plpgsql_record.out | 8 | ||||
| -rw-r--r-- | src/pl/plpgsql/src/sql/plpgsql_cache.sql | 12 | ||||
| -rw-r--r-- | src/pl/plpgsql/src/sql/plpgsql_record.sql | 8 |
5 files changed, 26 insertions, 26 deletions
diff --git a/src/pl/plpgsql/src/expected/plpgsql_cache.out b/src/pl/plpgsql/src/expected/plpgsql_cache.out index cc0c57b8794..9df188ce56b 100644 --- a/src/pl/plpgsql/src/expected/plpgsql_cache.out +++ b/src/pl/plpgsql/src/expected/plpgsql_cache.out @@ -3,10 +3,10 @@ -- -- These tests logically belong in plpgsql_record.sql, and perhaps someday -- can be merged back into it. For now, however, their results are different --- depending on debug_invalidate_system_caches_always, so we must have two --- expected-output files to cover both cases. To minimize the maintenance --- effort resulting from that, this file should contain only tests that --- do have different results under debug_invalidate_system_caches_always. +-- depending on debug_discard_caches, so we must have two expected-output +-- files to cover both cases. To minimize the maintenance effort resulting +-- from that, this file should contain only tests that do have different +-- results under debug_discard_caches. -- -- check behavior with changes of a named rowtype create table c_mutable(f1 int, f2 text); @@ -21,7 +21,7 @@ select c_sillyaddone(42); alter table c_mutable drop column f1; alter table c_mutable add column f1 float8; -- currently, this fails due to cached plan for "r.f1 + 1" expression --- (but if debug_invalidate_system_caches_always is on, it will succeed) +-- (but if debug_discard_caches is on, it will succeed) select c_sillyaddone(42); ERROR: type of parameter 4 (double precision) does not match that when preparing the plan (integer) CONTEXT: PL/pgSQL function c_sillyaddone(integer) line 1 at RETURN @@ -52,7 +52,7 @@ select show_result_type('select 1 as a'); (1 row) -- currently this fails due to cached plan for pg_typeof expression --- (but if debug_invalidate_system_caches_always is on, it will succeed) +-- (but if debug_discard_caches is on, it will succeed) select show_result_type('select 2.0 as a'); ERROR: type of parameter 5 (numeric) does not match that when preparing the plan (integer) CONTEXT: SQL statement "select pg_typeof(r.a)" diff --git a/src/pl/plpgsql/src/expected/plpgsql_cache_1.out b/src/pl/plpgsql/src/expected/plpgsql_cache_1.out index 2a42875747e..3b8c73af34c 100644 --- a/src/pl/plpgsql/src/expected/plpgsql_cache_1.out +++ b/src/pl/plpgsql/src/expected/plpgsql_cache_1.out @@ -3,10 +3,10 @@ -- -- These tests logically belong in plpgsql_record.sql, and perhaps someday -- can be merged back into it. For now, however, their results are different --- depending on debug_invalidate_system_caches_always, so we must have two --- expected-output files to cover both cases. To minimize the maintenance --- effort resulting from that, this file should contain only tests that --- do have different results under debug_invalidate_system_caches_always. +-- depending on debug_discard_caches, so we must have two expected-output +-- files to cover both cases. To minimize the maintenance effort resulting +-- from that, this file should contain only tests that do have different +-- results under debug_discard_caches. -- -- check behavior with changes of a named rowtype create table c_mutable(f1 int, f2 text); @@ -21,7 +21,7 @@ select c_sillyaddone(42); alter table c_mutable drop column f1; alter table c_mutable add column f1 float8; -- currently, this fails due to cached plan for "r.f1 + 1" expression --- (but if debug_invalidate_system_caches_always is on, it will succeed) +-- (but if debug_discard_caches is on, it will succeed) select c_sillyaddone(42); c_sillyaddone --------------- @@ -55,7 +55,7 @@ select show_result_type('select 1 as a'); (1 row) -- currently this fails due to cached plan for pg_typeof expression --- (but if debug_invalidate_system_caches_always is on, it will succeed) +-- (but if debug_discard_caches is on, it will succeed) select show_result_type('select 2.0 as a'); show_result_type ------------------------ diff --git a/src/pl/plpgsql/src/expected/plpgsql_record.out b/src/pl/plpgsql/src/expected/plpgsql_record.out index 86d06659241..4c5d95c79ec 100644 --- a/src/pl/plpgsql/src/expected/plpgsql_record.out +++ b/src/pl/plpgsql/src/expected/plpgsql_record.out @@ -426,7 +426,7 @@ select getf1(row(1,2)); 1 (1 row) --- the context stack is different when debug_invalidate_system_caches_always +-- the context stack is different when debug_discard_caches -- is set, so suppress context output \set SHOW_CONTEXT never select getf1(row(1,2)::two_int8s); @@ -507,7 +507,7 @@ select sillyaddone(42); -- test for change of type of column f1 should be here someday; -- for now see plpgsql_cache test alter table mutable drop column f1; --- the context stack is different when debug_invalidate_system_caches_always +-- the context stack is different when debug_discard_caches -- is set, so suppress context output \set SHOW_CONTEXT never select sillyaddone(42); -- fail @@ -527,7 +527,7 @@ select getf3(null::mutable); -- now it works (1 row) alter table mutable drop column f3; --- the context stack is different when debug_invalidate_system_caches_always +-- the context stack is different when debug_discard_caches -- is set, so suppress context output \set SHOW_CONTEXT never select getf3(null::mutable); -- fails again @@ -552,7 +552,7 @@ select sillyaddtwo(42); (1 row) drop table mutable2; --- the context stack is different when debug_invalidate_system_caches_always +-- the context stack is different when debug_discard_caches -- is set, so suppress context output \set SHOW_CONTEXT never select sillyaddtwo(42); -- fail diff --git a/src/pl/plpgsql/src/sql/plpgsql_cache.sql b/src/pl/plpgsql/src/sql/plpgsql_cache.sql index 061f674c9a6..a48f9b2afa7 100644 --- a/src/pl/plpgsql/src/sql/plpgsql_cache.sql +++ b/src/pl/plpgsql/src/sql/plpgsql_cache.sql @@ -3,10 +3,10 @@ -- -- These tests logically belong in plpgsql_record.sql, and perhaps someday -- can be merged back into it. For now, however, their results are different --- depending on debug_invalidate_system_caches_always, so we must have two --- expected-output files to cover both cases. To minimize the maintenance --- effort resulting from that, this file should contain only tests that --- do have different results under debug_invalidate_system_caches_always. +-- depending on debug_discard_caches, so we must have two expected-output +-- files to cover both cases. To minimize the maintenance effort resulting +-- from that, this file should contain only tests that do have different +-- results under debug_discard_caches. -- -- check behavior with changes of a named rowtype @@ -20,7 +20,7 @@ alter table c_mutable drop column f1; alter table c_mutable add column f1 float8; -- currently, this fails due to cached plan for "r.f1 + 1" expression --- (but if debug_invalidate_system_caches_always is on, it will succeed) +-- (but if debug_discard_caches is on, it will succeed) select c_sillyaddone(42); -- but it's OK if we force plan rebuilding @@ -42,7 +42,7 @@ $$; select show_result_type('select 1 as a'); -- currently this fails due to cached plan for pg_typeof expression --- (but if debug_invalidate_system_caches_always is on, it will succeed) +-- (but if debug_discard_caches is on, it will succeed) select show_result_type('select 2.0 as a'); -- but it's OK if we force plan rebuilding diff --git a/src/pl/plpgsql/src/sql/plpgsql_record.sql b/src/pl/plpgsql/src/sql/plpgsql_record.sql index 722048c7308..535a3407a4c 100644 --- a/src/pl/plpgsql/src/sql/plpgsql_record.sql +++ b/src/pl/plpgsql/src/sql/plpgsql_record.sql @@ -257,7 +257,7 @@ create function getf1(x record) returns int language plpgsql as $$ begin return x.f1; end $$; select getf1(1); select getf1(row(1,2)); --- the context stack is different when debug_invalidate_system_caches_always +-- the context stack is different when debug_discard_caches -- is set, so suppress context output \set SHOW_CONTEXT never select getf1(row(1,2)::two_int8s); @@ -316,7 +316,7 @@ select sillyaddone(42); -- for now see plpgsql_cache test alter table mutable drop column f1; --- the context stack is different when debug_invalidate_system_caches_always +-- the context stack is different when debug_discard_caches -- is set, so suppress context output \set SHOW_CONTEXT never select sillyaddone(42); -- fail @@ -328,7 +328,7 @@ select getf3(null::mutable); -- doesn't work yet alter table mutable add column f3 int; select getf3(null::mutable); -- now it works alter table mutable drop column f3; --- the context stack is different when debug_invalidate_system_caches_always +-- the context stack is different when debug_discard_caches -- is set, so suppress context output \set SHOW_CONTEXT never select getf3(null::mutable); -- fails again @@ -346,7 +346,7 @@ select sillyaddtwo(42); -- fail create table mutable2(f1 int, f2 text); select sillyaddtwo(42); drop table mutable2; --- the context stack is different when debug_invalidate_system_caches_always +-- the context stack is different when debug_discard_caches -- is set, so suppress context output \set SHOW_CONTEXT never select sillyaddtwo(42); -- fail |
