"Ken Winter" <ken@xxxxxxxxxxx> writes: > Is it possible that the pg_catalog is not updated with the results of a DDL > script until the whole script has executed? No, the serial sequence should exist as soon as the CREATE TABLE is done ... unless you are doing something weird like wrapping the whole thing in a transaction and expecting uncommitted transaction results to be visible from another session. Could you show us a complete test case instead of an extract? regards, tom lane