Project

General

Profile

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