| 80 | } |
| 81 | |
| 82 | void initialize_guc_parameters() |
| 83 | { |
| 84 | DefineCustomBoolVariable("pg_deeplake.treat_numeric_as_double", |
| 85 | "If set to true, numeric values will be treated as double precision.", |
| 86 | nullptr, // optional long description |
| 87 | &pg::treat_numeric_as_double, // linked C variable |
| 88 | true, // default value |
| 89 | PGC_USERSET, // context (USERSET, SUSET, etc.) |
| 90 | 0, // flags |
| 91 | nullptr, |
| 92 | nullptr, |
| 93 | nullptr // check_hook, assign_hook, show_hook |
| 94 | ); |
| 95 | |
| 96 | DefineCustomBoolVariable("pg_deeplake.print_progress_during_seq_scan", |
| 97 | "Print progress during sequential scan.", |
| 98 | nullptr, // optional long description |
| 99 | &pg::print_progress_during_seq_scan, // linked C variable |
| 100 | false, // default value |
| 101 | PGC_USERSET, // context (USERSET, SUSET, etc.) |
| 102 | 0, // flags |
| 103 | nullptr, |
| 104 | nullptr, |
| 105 | nullptr // check_hook, assign_hook, show_hook |
| 106 | ); |
| 107 | |
| 108 | DefineCustomBoolVariable("pg_deeplake.enable_parallel_workers", |
| 109 | "Enable parallel workers for pg_deeplake operations.", |
| 110 | nullptr, // optional long description |
| 111 | &pg::use_parallel_workers, // linked C variable |
| 112 | false, // default value |
| 113 | PGC_USERSET, // context (USERSET, SUSET, etc.) |
| 114 | 0, // flags |
| 115 | nullptr, |
| 116 | nullptr, |
| 117 | nullptr // check_hook, assign_hook, show_hook |
| 118 | ); |
| 119 | |
| 120 | DefineCustomBoolVariable("pg_deeplake.use_deeplake_executor", |
| 121 | "Enable direct execution for pg_deeplake operations.", |
| 122 | nullptr, // optional long description |
| 123 | &pg::use_deeplake_executor, // linked C variable |
| 124 | true, // default value |
| 125 | PGC_USERSET, // context (USERSET, SUSET, etc.) |
| 126 | 0, // flags |
| 127 | nullptr, |
| 128 | nullptr, |
| 129 | nullptr // check_hook, assign_hook, show_hook |
| 130 | ); |
| 131 | |
| 132 | DefineCustomBoolVariable("pg_deeplake.explain_query_before_execute", |
| 133 | "Enable query explanation before execution.", |
| 134 | nullptr, // optional long description |
| 135 | &pg::explain_query_before_execute, // linked C variable |
| 136 | false, // default value |
| 137 | PGC_USERSET, // context (USERSET, SUSET, etc.) |
| 138 | 0, // flags |
| 139 | nullptr, |