28 case RELKIND_RELATION:
29 return errdetail(
"This operation is not supported for tables.");
31 return errdetail(
"This operation is not supported for indexes.");
32 case RELKIND_SEQUENCE:
33 return errdetail(
"This operation is not supported for sequences.");
34 case RELKIND_TOASTVALUE:
35 return errdetail(
"This operation is not supported for TOAST tables.");
37 return errdetail(
"This operation is not supported for views.");
39 return errdetail(
"This operation is not supported for materialized views.");
40 case RELKIND_COMPOSITE_TYPE:
41 return errdetail(
"This operation is not supported for composite types.");
42 case RELKIND_FOREIGN_TABLE:
43 return errdetail(
"This operation is not supported for foreign tables.");
44 case RELKIND_PARTITIONED_TABLE:
45 return errdetail(
"This operation is not supported for partitioned tables.");
46 case RELKIND_PARTITIONED_INDEX:
47 return errdetail(
"This operation is not supported for partitioned indexes.");
49 elog(
ERROR,
"unrecognized relkind: '%c'", relkind);
int errdetail(const char *fmt,...)
int errdetail_relkind_not_supported(char relkind)