Project

General

Profile

1
"PostgreSQL","MySQL","Comments"
2
,,"PostgreSQL-only features"
3
"^SET\b[^;]*;",,
4
"^(?:CREATE|ALTER) (?:AGGREGATE|PROCEDURAL LANGUAGE|SEQUENCE|(?:CONSTRAINT )?TRIGGER|TYPE|VIEW)\b[^;]*;",,
5
"(?s)^CREATE FUNCTION\b.*?(\$\w*\$).*?\1;",,
6
"(?s)^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
"\bINHERITS \(.*?\)",,
14
"\[\]",,"arrays"
15
"(?s)^COPY\b.*?^\\\.$",,
16
"^SELECT pg_catalog.setval\b.*?;$",,
17
,,"syntax changes"
18
"^--(?=\S)","\g<0> ",
19
"""([^""]*?)""","`\1`",
20
"(?<=DEFAULT )(\d+|'[^']*')::\w+(?: [a-z]+)*","\1",
21
"(\d+|'[^']*')::(\w+(?: \w+)*)","CAST(\1 AS \2)",
22
,,"datatypes"
23
"\bserial( NOT NULL\b)?","int(11)\1 AUTO_INCREMENT",
24
"oid","int(11)",
25
"integer","int(11)",
26
"boolean","int(1)",
27
"bytea","blob",
28
" with time zone\b",,
29
"fulltext","`\g<0>`",
30
"\btimestamp\b(?: with time zone\b)?(?! NOT NULL\b)","\g<0> NULL",
31
"^( *`?[a-z]\w*`? )(?!(?:date|datetime|double|int|text|time|timestamp)\b)\w+(?=\b[^;]*^\);)","\1text","custom types"
(2-2/42)