By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| version |
|---|
| PostgreSQL 15.0 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-10), 64-bit |
SELECT 1
CREATE TABLE
CREATE TABLE
ALTER TABLE
| table_schema | table_name | constraint_type | constraint_name | is_deferrable | child_table | refer_key | ref_table | check_clause | column_name | ordinal_position |
|---|---|---|---|---|---|---|---|---|---|---|
| public | a | PRIMARY KEY | a_pkey | NO | b | null | null | null | id | 1 |
| public | a | CHECK | 2200_7889601_1_not_null | NO | null | null | null | id IS NOT NULL | null | null |
SELECT 2