Project

General

Profile

1
"PostgreSQL","MySQL","Comments"
2
,,"PostgreSQL-only features"
3
"^SET\b[^;]*;",,
4
"^(?:CREATE|ALTER) (?:AGGREGATE|PROCEDURAL LANGUAGE|SEQUENCE|TRIGGER|TYPE)\b[^;]*;",,
5
"(?s)^CREATE FUNCTION\b.*?(\$\w*\$).*?\1;",,
6
"^COMMENT\b[^;]*;",,
7
"^ALTER TABLE\b[^;]*\bSET DEFAULT nextval\([^;]*\)[^;]*;",,
8
"^CREATE\b[^;]*\bINDEX\b[^;]*\([^;]*\([^;]*;",,
9
",\n *CONSTRAINT\b.*\bCHECK\b.*?(?=,?$)",,
10
"\bDEFAULT \w*\(.*\)",,".* rather than .*? to allow nested ()"
11
"^(CREATE\b[^;]*\bINDEX\b[^;]*\b)USING \w+","\1",
12
"(?<=\bALTER TABLE )ONLY ",,                
13
"\[\]",,"arrays"
14
,,"syntax changes"
15
"^--(?=\S)","\g<0> ",
16
"""([^""]*?)""","`\1`",
17
"(?<=DEFAULT )(\d+|'[^']*')::\w+(?: [a-z]+)*","\1",
18
"(\d+|'[^']*')::(\w+(?: \w+)*)","CAST(\1 AS \2)",
19
,,"datatypes"
20
"\bserial( NOT NULL\b)?","int(11)\1 AUTO_INCREMENT",
21
"oid","int(11)",
22
"integer","int(11)",
23
"boolean","int(1)",
24
"bytea","blob",
25
" with time zone\b",,
26
"fulltext","\g<0>__",
27
"\btimestamp\b(?: with time zone\b)?(?! NOT NULL\b)","\g<0> NULL",
28
"^( *[a-z]\w* )(?!(?:double|int|text|timestamp)\b)\w+(?=\b[^;]*^\);)","\1text","custom types"
(2-2/35)