This is an automated email from the ASF dual-hosted git repository.

reshke pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git

commit ffe370bd646547d5e81933805b76b79bd1e52f51
Author: reshke <[email protected]>
AuthorDate: Sat Feb 21 21:10:47 2026 +0000

    place allow_in_place_tablespaces in sync_guc_name
    
    And other fixes for rebase
---
 .../src/test/regress/expected/create_view.out      | 23 ++++++++++++++------
 .../regress/expected/create_view_optimizer.out     | 23 ++++++++++++++------
 .../src/test/regress/sql/create_view.sql           |  4 +++-
 src/backend/utils/sort/qsort_interruptible.c       |  2 ++
 src/include/utils/sync_guc_name.h                  |  1 +
 .../regress/expected/create_view_optimizer.out     | 25 +++++++++++++++-------
 .../singlenode_regress/expected/create_view.out    | 25 +++++++++++++++-------
 src/test/singlenode_regress/sql/create_view.sql    |  6 ++++--
 8 files changed, 76 insertions(+), 33 deletions(-)

diff --git a/contrib/pax_storage/src/test/regress/expected/create_view.out 
b/contrib/pax_storage/src/test/regress/expected/create_view.out
index d35d3a61066..077dc1afc91 100644
--- a/contrib/pax_storage/src/test/regress/expected/create_view.out
+++ b/contrib/pax_storage/src/test/regress/expected/create_view.out
@@ -1551,16 +1551,25 @@ select * from tt14v;
 begin;
 -- this perhaps should be rejected, but it isn't:
 alter table tt14t drop column f3;
--- f3 is still in the view ...
+-- column f3 is still in the view, sort of ...
 select pg_get_viewdef('tt14v', true);
-         pg_get_viewdef         
---------------------------------
-  SELECT t.f1,                 +
-     t.f3,                     +
-     t.f4                      +
-    FROM tt14f() t(f1, f3, f4);
+         pg_get_viewdef          
+---------------------------------
+  SELECT t.f1,                  +
+     t."?dropped?column?" AS f3,+
+     t.f4                       +
+    FROM tt14f() t(f1, f4);
 (1 row)
 
+-- ... and you can even EXPLAIN it ...
+explain (verbose, costs off) select * from tt14v;
+               QUERY PLAN               
+----------------------------------------
+ Function Scan on testviewschm2.tt14f t
+   Output: t.f1, t.f3, t.f4
+   Function Call: tt14f()
+(3 rows)
+
 -- but will fail at execution
 select f1, f4 from tt14v;
  f1  | f4 
diff --git 
a/contrib/pax_storage/src/test/regress/expected/create_view_optimizer.out 
b/contrib/pax_storage/src/test/regress/expected/create_view_optimizer.out
index de91254a5ba..e19d51b0069 100755
--- a/contrib/pax_storage/src/test/regress/expected/create_view_optimizer.out
+++ b/contrib/pax_storage/src/test/regress/expected/create_view_optimizer.out
@@ -1550,16 +1550,25 @@ select * from tt14v;
 begin;
 -- this perhaps should be rejected, but it isn't:
 alter table tt14t drop column f3;
--- f3 is still in the view ...
+-- column f3 is still in the view, sort of ...
 select pg_get_viewdef('tt14v', true);
-         pg_get_viewdef         
---------------------------------
-  SELECT t.f1,                 +
-     t.f3,                     +
-     t.f4                      +
-    FROM tt14f() t(f1, f3, f4);
+         pg_get_viewdef          
+---------------------------------
+  SELECT t.f1,                  +
+     t."?dropped?column?" AS f3,+
+     t.f4                       +
+    FROM tt14f() t(f1, f4);
 (1 row)
 
+-- ... and you can even EXPLAIN it ...
+explain (verbose, costs off) select * from tt14v;
+               QUERY PLAN               
+----------------------------------------
+ Function Scan on testviewschm2.tt14f t
+   Output: t.f1, t.f3, t.f4
+   Function Call: tt14f()
+(3 rows)
+
 -- but will fail at execution
 select f1, f4 from tt14v;
  f1  | f4 
diff --git a/contrib/pax_storage/src/test/regress/sql/create_view.sql 
b/contrib/pax_storage/src/test/regress/sql/create_view.sql
index e1b013fe7a5..5cd91e5189e 100644
--- a/contrib/pax_storage/src/test/regress/sql/create_view.sql
+++ b/contrib/pax_storage/src/test/regress/sql/create_view.sql
@@ -533,8 +533,10 @@ begin;
 -- this perhaps should be rejected, but it isn't:
 alter table tt14t drop column f3;
 
--- f3 is still in the view ...
+-- column f3 is still in the view, sort of ...
 select pg_get_viewdef('tt14v', true);
+-- ... and you can even EXPLAIN it ...
+explain (verbose, costs off) select * from tt14v;
 -- but will fail at execution
 select f1, f4 from tt14v;
 select * from tt14v;
diff --git a/src/backend/utils/sort/qsort_interruptible.c 
b/src/backend/utils/sort/qsort_interruptible.c
index f179b256248..66e018b991d 100644
--- a/src/backend/utils/sort/qsort_interruptible.c
+++ b/src/backend/utils/sort/qsort_interruptible.c
@@ -1,5 +1,7 @@
 /*
  *     qsort_interruptible.c: qsort_arg that includes CHECK_FOR_INTERRUPTS
+ *
+ * Portions Copyright (c) 2021-2026, PostgreSQL Global Development Group
  */
 
 #include "postgres.h"
diff --git a/src/include/utils/sync_guc_name.h 
b/src/include/utils/sync_guc_name.h
index 6d09f49155f..3a99016d813 100644
--- a/src/include/utils/sync_guc_name.h
+++ b/src/include/utils/sync_guc_name.h
@@ -10,6 +10,7 @@
                "allow_dml_directory_table",
                "allow_segment_DML",
                "allow_system_table_mods",
+               "allow_in_place_tablespaces",
                "array_nulls",
                "backtrace_functions",
                "bytea_output",
diff --git a/src/test/regress/expected/create_view_optimizer.out 
b/src/test/regress/expected/create_view_optimizer.out
index 2123c0150c1..5719aea410c 100755
--- a/src/test/regress/expected/create_view_optimizer.out
+++ b/src/test/regress/expected/create_view_optimizer.out
@@ -1550,17 +1550,26 @@ select * from tt14v;
 begin;
 -- this perhaps should be rejected, but it isn't:
 alter table tt14t drop column f3;
--- f3 is still in the view ...
+-- column f3 is still in the view, sort of ...
 select pg_get_viewdef('tt14v', true);
-         pg_get_viewdef         
---------------------------------
-  SELECT t.f1,                 +
-     t.f3,                     +
-     t.f4                      +
-    FROM tt14f() t(f1, f3, f4);
+         pg_get_viewdef          
+---------------------------------
+  SELECT t.f1,                  +
+     t."?dropped?column?" AS f3,+
+     t.f4                       +
+    FROM tt14f() t(f1, f4);
 (1 row)
 
--- but will fail at execution
+-- ... and you can even EXPLAIN it ...
+explain (verbose, costs off) select * from tt14v;
+               QUERY PLAN               
+----------------------------------------
+ Function Scan on testviewschm2.tt14f t
+   Output: t.f1, t.f3, t.f4
+   Function Call: tt14f()
+(3 rows)
+
+-- but it will fail at execution
 select f1, f4 from tt14v;
  f1  | f4 
 -----+----
diff --git a/src/test/singlenode_regress/expected/create_view.out 
b/src/test/singlenode_regress/expected/create_view.out
index fdc9294f1f2..e70f8e788f3 100644
--- a/src/test/singlenode_regress/expected/create_view.out
+++ b/src/test/singlenode_regress/expected/create_view.out
@@ -1551,17 +1551,26 @@ select * from tt14v;
 begin;
 -- this perhaps should be rejected, but it isn't:
 alter table tt14t drop column f3;
--- f3 is still in the view ...
+-- column f3 is still in the view, sort of ...
 select pg_get_viewdef('tt14v', true);
-         pg_get_viewdef         
---------------------------------
-  SELECT t.f1,                 +
-     t.f3,                     +
-     t.f4                      +
-    FROM tt14f() t(f1, f3, f4);
+         pg_get_viewdef          
+---------------------------------
+  SELECT t.f1,                  +
+     t."?dropped?column?" AS f3,+
+     t.f4                       +
+    FROM tt14f() t(f1, f4);
 (1 row)
 
--- but will fail at execution
+-- ... and you can even EXPLAIN it ...
+explain (verbose, costs off) select * from tt14v;
+               QUERY PLAN               
+----------------------------------------
+ Function Scan on testviewschm2.tt14f t
+   Output: t.f1, t.f3, t.f4
+   Function Call: tt14f()
+(3 rows)
+
+-- but it will fail at execution
 select f1, f4 from tt14v;
  f1  | f4 
 -----+----
diff --git a/src/test/singlenode_regress/sql/create_view.sql 
b/src/test/singlenode_regress/sql/create_view.sql
index e1b013fe7a5..a47f81613c7 100644
--- a/src/test/singlenode_regress/sql/create_view.sql
+++ b/src/test/singlenode_regress/sql/create_view.sql
@@ -533,9 +533,11 @@ begin;
 -- this perhaps should be rejected, but it isn't:
 alter table tt14t drop column f3;
 
--- f3 is still in the view ...
+-- column f3 is still in the view, sort of ...
 select pg_get_viewdef('tt14v', true);
--- but will fail at execution
+-- ... and you can even EXPLAIN it ...
+explain (verbose, costs off) select * from tt14v;
+-- but it will fail at execution
 select f1, f4 from tt14v;
 select * from tt14v;
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to