diff --git a/pg_chameleon/lib/pg_lib.py b/pg_chameleon/lib/pg_lib.py index c2009506..4ed5f356 100644 --- a/pg_chameleon/lib/pg_lib.py +++ b/pg_chameleon/lib/pg_lib.py @@ -407,7 +407,7 @@ def __create_indices(self): THEN format('ALTER TABLE %%I ADD CONSTRAINT %%I %%s ;',tab.relname,con.conname,pg_get_constraintdef(con.oid)) ELSE - format('%%s ;',regexp_replace(pg_get_indexdef(idx.oid), '("?\w+"?\.)', '')) + format('%%s ;',regexp_replace(pg_get_indexdef(idx.oid), '("?\\w+"?\\.)', '')) END AS ddl_text, CASE WHEN con.conname IS NOT NULL