Skip to main content

Module create_index

Module create_index 

Source
Expand description

CREATE INDEX sub-phase detector.

Recognises CREATE [UNIQUE] INDEX [CONCURRENTLY] [IF NOT EXISTS] <name> ON <table> (<expr>, ...) and returns the right Phase depending on cursor position:

  • right after ON -> ExpectTable (catalog table list)
  • inside the paren body -> CtlExpectFkColumn { table } so only columns of THIS table appear

Functionsยง

detect