mirror of
https://github.com/HypoPG/hypopg
synced 2026-05-24 01:28:51 +00:00
Check max # of col in an hypothetical index
This commit is contained in:
parent
1aa0463992
commit
cceed24e1f
1 changed files with 4 additions and 0 deletions
4
hypopg.c
4
hypopg.c
|
|
@ -494,6 +494,10 @@ hypo_entry_store_parsetree(IndexStmt *node, const char *queryString)
|
|||
|
||||
ncolumns = list_length(node->indexParams);
|
||||
|
||||
if (ncolumns > INDEX_MAX_KEYS)
|
||||
elog(ERROR, "hypopg: cannot use more thant %d columns in an index",
|
||||
INDEX_MAX_KEYS);
|
||||
|
||||
initStringInfo(&indexRelationName);
|
||||
appendStringInfo(&indexRelationName, "%s", node->accessMethod);
|
||||
appendStringInfo(&indexRelationName, "_");
|
||||
|
|
|
|||
Loading…
Reference in a new issue