Remove GUC_NOT_IN_SAMPLE from enable_self_join_elimination
authorAlexander Korotkov <akorotkov@postgresql.org>
Mon, 7 Apr 2025 13:28:54 +0000 (16:28 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Mon, 7 Apr 2025 13:28:54 +0000 (16:28 +0300)
fc069a3a6319 implements Self-Join Elimination (SJE) and provides a new GUC
variable: enable_self_join_elimination.  This new GUC variable was marked
as GUC_NOT_IN_SAMPLE.  However, enable_self_join_elimination is documented
and is not different from any other enable_* GUCs.  Thus, remove
GUC_NOT_IN_SAMPLE from it and add it to the postgresql.conf.sample.

Discussion: https://postgr.es/m/CAPpHfdsqMTEsmxk3aQwt6xPz%2BKpUELO%3D6fzmER9ZRGrbs4uMfA%40mail.gmail.com
Author: Tender Wang <tndrwang@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
src/backend/utils/misc/guc_tables.c
src/backend/utils/misc/postgresql.conf.sample

index 4eaeca89f2c7aea3b3cdb58bd34b17ee77a9272e..f596fda568cc7a8cedd14dc4f3d751692b3e4acc 100644 (file)
@@ -998,7 +998,7 @@ struct config_bool ConfigureNamesBool[] =
        {"enable_self_join_elimination", PGC_USERSET, QUERY_TUNING_METHOD,
            gettext_noop("Enables removal of unique self-joins."),
            NULL,
-           GUC_EXPLAIN | GUC_NOT_IN_SAMPLE
+           GUC_EXPLAIN
        },
        &enable_self_join_elimination,
        true,
index ff56a1f0732c56977cb020224be5556929a41687..bcd4e67f43e006283b2008d0cd573ad060e44d24 100644 (file)
 #enable_tidscan = on
 #enable_group_by_reordering = on
 #enable_distinct_reordering = on
+#enable_self_join_elimination = on
 
 # - Planner Cost Constants -