You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the original Sakila schema, the payment_id column in the payment table has a PRIMARY KEY constraint. Pagila does not.
I found this by accident when I restored a backup of pagila over itself and duplicated all the rows in the partitioned tables.
Because payment_date is the partition key, it would have to be defined as
ALTER TABLE payment ADD PRIMARY KEY (payment_date, payment_id)
The text was updated successfully, but these errors were encountered:
In the original Sakila schema, the
payment_id
column in thepayment
table has a PRIMARY KEY constraint. Pagila does not.I found this by accident when I restored a backup of pagila over itself and duplicated all the rows in the partitioned tables.
Because
payment_date
is the partition key, it would have to be defined asThe text was updated successfully, but these errors were encountered: