|
3 | 3 | #include <ydb/library/yql/providers/dq/task_runner/tasks_runner_proxy.h> |
4 | 4 | #include <ydb/library/yql/providers/dq/counters/task_counters.h> |
5 | 5 | #include <ydb/library/yql/providers/dq/common/yql_dq_settings.h> |
| 6 | +#include <ydb/library/yql/providers/common/provider/yql_provider.h> |
6 | 7 | #include <ydb/library/yql/providers/dq/api/protos/dqs.pb.h> |
7 | 8 | #include <ydb/library/yql/providers/dq/api/protos/task_command_executor.pb.h> |
8 | 9 | #include <ydb/library/yql/utils/backtrace/backtrace.h> |
|
19 | 20 | #include <ydb/library/yql/utils/log/log.h> |
20 | 21 | #include <ydb/library/yql/utils/yql_panic.h> |
21 | 22 |
|
| 23 | +#include <ydb/library/yql/parser/pg_wrapper/interface/context.h> |
| 24 | +#include <ydb/library/yql/parser/pg_catalog/catalog.h> |
| 25 | + |
22 | 26 | #include <util/system/thread.h> |
23 | 27 | #include <util/system/fs.h> |
24 | 28 | #include <util/system/env.h> |
@@ -678,6 +682,15 @@ class TTaskCommandExecutor { |
678 | 682 | Y_ABORT_UNLESS(workingDirectory); |
679 | 683 | NFs::SetCurrentWorkingDirectory(workingDirectory); |
680 | 684 |
|
| 685 | + QueryStat.Measure<void>("LoadPgExtensions", [&]() |
| 686 | + { |
| 687 | + if (TFsPath(NCommon::PgCatalogFileName).Exists()) { |
| 688 | + TFileInput file(TString{NCommon::PgCatalogFileName}); |
| 689 | + NPg::ImportExtensions(file.ReadAll(), false, |
| 690 | + NKikimr::NMiniKQL::CreateExtensionLoader().get()); |
| 691 | + } |
| 692 | + }); |
| 693 | + |
681 | 694 | THashMap<TString, TString> modulesMapping; |
682 | 695 |
|
683 | 696 | QueryStat.Measure<void>("LoadUdfs", [&]() |
|
0 commit comments