Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit f0ac336

Browse files
committed
fixed some logging issues.
1 parent fd94a1e commit f0ac336

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/parser/postgresparser.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,8 +907,6 @@ void PostgresParser::ColumnDefTransform(ColumnDef *root, parser::CreateStatement
907907
value* attr_val =
908908
reinterpret_cast<value*>(attr_cell->data.ptr_value);
909909
col->foreign_key_sink.emplace_back(attr_val->val.str);
910-
911-
LOG_ERROR("PK attr: %s\n", attr_val->val.str);
912910
}
913911
else
914912
{

src/storage/data_table.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,9 @@ bool DataTable::CheckForeignKeyConstraints(
789789

790790
// if this key doesn't exist in the refered column
791791
if (location_ptrs.size() == 0) {
792-
LOG_DEBUG("The key does not exist in the sink table!\n");
792+
LOG_DEBUG("The key: %s does not exist in table %s\n",
793+
key->GetInfo().c_str(),
794+
ref_table->GetInfo().c_str());
793795
return false;
794796
}
795797

@@ -804,7 +806,11 @@ bool DataTable::CheckForeignKeyConstraints(
804806
VisibilityIdType::READ_ID);
805807

806808
if (visibility != VisibilityType::OK) {
807-
LOG_DEBUG("The tuple is not visible yet.\n");
809+
LOG_DEBUG("The key: %s is not yet visible in table %s, visibility "
810+
"type: %s.\n",
811+
key->GetInfo().c_str(),
812+
ref_table->GetInfo().c_str(),
813+
VisibilityTypeToString(visibility).c_str());
808814
return false;
809815
}
810816

0 commit comments

Comments
 (0)