Project

General

Profile

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