allow ctid system column

columnar/delete
Nils Dijk 2021-06-18 13:51:49 +02:00
parent 32421449c1
commit f211b3278f
No known key found for this signature in database
GPG Key ID: CA1177EF9434F241
1 changed files with 14 additions and 3 deletions

View File

@ -385,9 +385,20 @@ ColumnarAttrNeeded(ScanState *ss)
if (var->varattno < 0)
{
ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg(
"UPDATE and CTID scans not supported for ColumnarScan")));
switch (var->varattno)
{
case SelfItemPointerAttributeNumber:
{
ereport(DEBUG5, (errmsg("querying ctid")));
continue;
}
default:
{
ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("unsupported system column")));
}
}
}
if (var->varattno == 0)