| 154 | |
| 155 | |
| 156 | void DatabaseMaterializedPostgreSQL::createTable(ContextPtr local_context, const String & table_name, const StoragePtr & table, const ASTPtr & query) |
| 157 | { |
| 158 | /// Create table query can only be called from replication thread. |
| 159 | if (local_context->isInternalQuery()) |
| 160 | { |
| 161 | DatabaseAtomic::createTable(local_context, table_name, table, query); |
| 162 | return; |
| 163 | } |
| 164 | |
| 165 | throw Exception(ErrorCodes::NOT_IMPLEMENTED, |
| 166 | "Create table query allowed only for ReplacingMergeTree engine and from synchronization thread"); |
| 167 | } |
| 168 | |
| 169 | |
| 170 | void DatabaseMaterializedPostgreSQL::shutdown() |
nothing calls this directly
no test coverage detected