add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
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?.
constraint_catalog constraint_schema constraint_name table_catalog table_schema table_name column_name ordinal_position position_in_unique_constraint
db_1803946168 public profiles1_user_id_fkey db_1803946168 public profiles1 user_id 1 1
db_1803946168 public profiles1_pkey db_1803946168 public profiles1 profile_id 1 null
show_create_table
CREATE TABLE profiles1 (
    profile_id integer NOT NULL,
    bio text,
    user_id integer NOT NULL
);
constraint_catalog constraint_schema constraint_name table_catalog table_schema table_name column_name ordinal_position position_in_unique_constraint
db_1803946168 public profiles2_user_id_fkey db_1803946168 public profiles2 user_id 1 1
db_1803946168 public profiles2_pkey db_1803946168 public profiles2 profile_id 1 null
show_create_table
CREATE TABLE profiles2 (
    profile_id integer NOT NULL,
    bio text,
    user_id integer NOT NULL
);