Project

General

Profile

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