|
10 | 10 |
|
11 | 11 | namespace duckdb { |
12 | 12 |
|
13 | | -PostgresCatalog::PostgresCatalog(AttachedDatabase &db_p, string connection_string_p, string attach_path_p, AccessMode access_mode, |
14 | | - string schema_to_load) |
15 | | - : Catalog(db_p), connection_string(std::move(connection_string_p)), attach_path(std::move(attach_path_p)), access_mode(access_mode), schemas(*this, schema_to_load), connection_pool(*this), |
16 | | - default_schema(schema_to_load) { |
| 13 | +PostgresCatalog::PostgresCatalog(AttachedDatabase &db_p, string connection_string_p, string attach_path_p, |
| 14 | + AccessMode access_mode, string schema_to_load, PostgresIsolationLevel isolation_level) |
| 15 | + : Catalog(db_p), connection_string(std::move(connection_string_p)), attach_path(std::move(attach_path_p)), |
| 16 | + access_mode(access_mode), isolation_level(isolation_level), schemas(*this, schema_to_load), |
| 17 | + connection_pool(*this), default_schema(schema_to_load) { |
17 | 18 | if (default_schema.empty()) { |
18 | 19 | default_schema = "public"; |
19 | 20 | } |
@@ -100,7 +101,6 @@ string PostgresCatalog::GetConnectionString(ClientContext &context, const string |
100 | 101 | return connection_string; |
101 | 102 | } |
102 | 103 |
|
103 | | - |
104 | 104 | PostgresCatalog::~PostgresCatalog() = default; |
105 | 105 |
|
106 | 106 | void PostgresCatalog::Initialize(bool load_builtin) { |
@@ -138,9 +138,10 @@ void PostgresCatalog::ScanSchemas(ClientContext &context, std::function<void(Sch |
138 | 138 | schemas.Scan(context, [&](CatalogEntry &schema) { callback(schema.Cast<PostgresSchemaEntry>()); }); |
139 | 139 | } |
140 | 140 |
|
141 | | -optional_ptr<SchemaCatalogEntry> PostgresCatalog::LookupSchema(CatalogTransaction transaction, const EntryLookupInfo &schema_lookup, |
142 | | - OnEntryNotFound if_not_found) { |
143 | | - auto schema_name = schema_lookup.GetEntryName(); |
| 141 | +optional_ptr<SchemaCatalogEntry> PostgresCatalog::LookupSchema(CatalogTransaction transaction, |
| 142 | + const EntryLookupInfo &schema_lookup, |
| 143 | + OnEntryNotFound if_not_found) { |
| 144 | + auto schema_name = schema_lookup.GetEntryName(); |
144 | 145 | auto &postgres_transaction = PostgresTransaction::Get(transaction.GetContext(), *this); |
145 | 146 | if (schema_name == "pg_temp") { |
146 | 147 | schema_name = postgres_transaction.GetTemporarySchema(); |
|
0 commit comments