By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
CREATE TYPE
CREATE TYPE
CREATE TYPE
CREATE TYPE
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE TABLE
custno | addr |
---|---|
100 | (CA,"94065 ") |
INSERT 0 1
state | zip |
---|---|
CA | 94065 |
CA | 98765 |
CA | 95117 |
INSERT 0 3
state | zip | preaddr |
---|---|---|
CA | 95117 | null |
INSERT 0 1
CREATE TABLE
a | b |
---|---|
1 | null |
INSERT 0 1
ERROR: INSERT has more expressions than target columns LINE 1: insert into test values (1,2,3);--only too many values throw... ^
state | zip |
---|---|
CA | 94065 |
CA | 98765 |
CA | 95117 |
INSERT 0 3