Fix typo in error message for truncating foreign tables (#5864)

pull/5862/head
Ahmet Gedemenli 2022-03-29 13:14:16 +03:00 committed by GitHub
parent 6cb04c0d84
commit b52823f8b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -277,7 +277,7 @@ ErrorIfUnsupportedTruncateStmt(TruncateStmt *truncateStatement)
{ {
ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("truncating foreign tables that are added to metadata " errmsg("truncating foreign tables that are added to metadata "
"can only be excuted on the coordinator"))); "can only be executed on the coordinator")));
} }
} }
} }

View File

@ -1330,7 +1330,7 @@ SELECT count(*) FROM pg14.foreign_table;
-- should error out -- should error out
TRUNCATE foreign_table; TRUNCATE foreign_table;
ERROR: truncating foreign tables that are added to metadata can only be excuted on the coordinator ERROR: truncating foreign tables that are added to metadata can only be executed on the coordinator
\c - - - :master_port \c - - - :master_port
-- cleanup -- cleanup
set client_min_messages to error; set client_min_messages to error;