• Thomas G. Lockhart's avatar
    Support SERIAL column type. Expand column marked is_sequence into three · 7ff198cd
    Thomas G. Lockhart authored
     statements:
     - the table definition with a default clause referencing the sequence;
     - a CREATE SEQUENCE statement;
     - a UNIQUE constraint, which expands into a CREATE INDEX statement.
    This is not a perfect solution, since the sequence will remain even if
     the table is dropped. Also, there is no absolute protection on updating
     the sequence column.
    7ff198cd
analyze.c 25 KB