Skip to content

Commit

Permalink
Merge pull request #2266 from dolthub/taylor/dg-docs
Browse files Browse the repository at this point in the history
doltgres: Add system catalog schema to sql support docs
  • Loading branch information
tbantle22 authored Jul 2, 2024
2 parents f8bafdd + b8ff9c2 commit bc5085b
Show file tree
Hide file tree
Showing 3 changed files with 389 additions and 96 deletions.
1 change: 1 addition & 0 deletions packages/doltgres/content/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
- [SQL Language Support](reference/sql-support/README.md)
- [Supported Types](reference/sql-support/supported-types.md)
- [Supported SQL Commands](reference/sql-support/supported-commands.md)
- [System Catalog Schema](reference/sql-support/system-catalog-schema.md)
- [Supported Clients](reference/sql/supported-clients/README.md)
- [Programmatic](reference/sql/supported-clients/clients.md)
- [Benchmarks](reference/benchmarks/README.md)
Expand Down
212 changes: 116 additions & 96 deletions packages/doltgres/content/reference/sql-support/supported-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,72 +10,72 @@ Most of the standard types with partial support are missing functionality regard
For example, `timestamp` takes in a precision, but does not enforce it.

| SQL Type Name | Implemented | Aliases |
|:---------------|:-----------:|:------------------------------|
| bit | | |
| bit[] | | |
| boolean | | |
| boolean[] | | |
| box | | |
| box[] | | |
| :------------- | :---------: | :---------------------------- |
| bit || |
| bit[] || |
| boolean || |
| boolean[] || |
| box || |
| box[] || |
| bytea | 🟠 | |
| bytea[] | 🟠 | |
| char | 🟠 | character |
| char[] | 🟠 | character[] |
| cidr | | |
| cidr[] | | |
| circle | | |
| circle[] | | |
| cidr || |
| cidr[] || |
| circle || |
| circle[] || |
| date | 🟠 | |
| date[] | 🟠 | |
| datemultirange | | |
| daterange | | |
| float4 | | real |
| float4[] | | real[] |
| float8 | | double precision |
| float8[] | | double precision[] |
| inet | | |
| inet[] | | |
| int2 | | smallint |
| int2[] | | smallint[] |
| int4 | | int, integer |
| int4[] | | int[], integer[] |
| int4multirange | | |
| int4range | | |
| int8 | | bigint |
| int8[] | | bigint[] |
| int8multirange | | |
| int8range | | |
| interval | | |
| interval[] | | |
| json | | |
| json[] | | |
| jsonb | | |
| jsonb[] | | |
| line | | |
| line[] | | |
| lseg | | |
| lseg[] | | |
| macaddr | | |
| macaddr8 | | |
| macaddr8[] | | |
| macaddr[] | | |
| money | | |
| money[] | | |
| datemultirange || |
| daterange || |
| float4 || real |
| float4[] || real[] |
| float8 || double precision |
| float8[] || double precision[] |
| inet || |
| inet[] || |
| int2 || smallint |
| int2[] || smallint[] |
| int4 || int, integer |
| int4[] || int[], integer[] |
| int4multirange || |
| int4range || |
| int8 || bigint |
| int8[] || bigint[] |
| int8multirange || |
| int8range || |
| interval || |
| interval[] || |
| json | 🟠 | |
| json[] | 🟠 | |
| jsonb | 🟠 | |
| jsonb[] | 🟠 | |
| line || |
| line[] || |
| lseg || |
| lseg[] || |
| macaddr || |
| macaddr8 || |
| macaddr8[] || |
| macaddr[] || |
| money || |
| money[] || |
| numeric | 🟠 | decimal |
| numeric[] | 🟠 | decimal[] |
| nummultirange | | |
| numrange | | |
| path | | |
| path[] | | |
| point | | |
| point[] | | |
| polygon | | |
| polygon[] | | |
| serial2 | | smallserial |
| serial4 | | serial |
| serial8 | | bigserial |
| text | | |
| text[] | | |
| nummultirange || |
| numrange || |
| path || |
| path[] || |
| point || |
| point[] || |
| polygon || |
| polygon[] || |
| serial2 || smallserial |
| serial4 || serial |
| serial8 || bigserial |
| text || |
| text[] || |
| time | 🟠 | time without time zone |
| time[] | 🟠 | time without time zone[] |
| timestamp | 🟠 | timestamp without time zone |
Expand All @@ -84,49 +84,69 @@ For example, `timestamp` takes in a precision, but does not enforce it.
| timestamptz[] | 🟠 | timestamp with time zone[] |
| timetz | 🟠 | time with time zone |
| timetz[] | 🟠 | time with time zone[] |
| tsmultirange | | |
| tsquery | | |
| tsquery[] | | |
| tsrange | | |
| tstzmultirange | | |
| tstzrange | | |
| tsvector | | |
| tsvector[] | | |
| uuid | | |
| uuid[] | | |
| varbit | | bit varying |
| varbit[] | | bit varying[] |
| tsmultirange || |
| tsquery || |
| tsquery[] || |
| tsrange || |
| tstzmultirange || |
| tstzrange || |
| tsvector || |
| tsvector[] || |
| uuid || |
| uuid[] || |
| varbit || bit varying |
| varbit[] || bit varying[] |
| varchar | 🟠 | character varying |
| varchar[] | 🟠 | character varying[] |
| xml | | |
| xml[] | | |
| xml || |
| xml[] || |

## Pseudo-Types

| SQL Type Name | Implemented |
|:------------------------|:-----------:|
| any | |
| :---------------------- | :---------: |
| any ||
| anyarray | 🟠 |
| anycompatible | |
| anycompatiblearray | |
| anycompatiblemultirange | |
| anycompatiblenonarray | |
| anycompatiblerange | |
| anyelement | |
| anyenum | |
| anymultirange | |
| anynonarray | |
| anyrange | |
| cstring | |
| event_trigger | |
| fdw_handler | |
| index_am_handler | |
| internal | |
| language_handler | |
| pg_ddl_command | |
| record | |
| table_am_handler | |
| trigger | |
| tsm_handler | |
| anycompatible ||
| anycompatiblearray ||
| anycompatiblemultirange ||
| anycompatiblenonarray ||
| anycompatiblerange ||
| anyelement ||
| anyenum ||
| anymultirange ||
| anynonarray ||
| anyrange ||
| cstring ||
| event_trigger ||
| fdw_handler ||
| index_am_handler ||
| internal ||
| language_handler ||
| pg_ddl_command ||
| record ||
| table_am_handler ||
| trigger ||
| tsm_handler ||
| unknown | 🟠 |
| void ||
| void ||

## OID Alias Types

See detailed list in the [Postgres docs](https://www.postgresql.org/docs/current/datatype-oid.html).

| SQL Type Name | Supported |
| :------------ | :-------- |
| oid ||
| xid | 🟠 |
| regclass ||
| regcollation ||
| regconfig ||
| regdictionary ||
| regnamespace ||
| regoper ||
| regoperator ||
| regproc ||
| regprocedure ||
| regrole ||
| regtype ||
Loading

0 comments on commit bc5085b

Please sign in to comment.