We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Truncate table is not removing records properly with colocated DB/table DB Version: 2.11.2.0-b54 Steps:
ex:
yugabyte=# CREATE DATABASE colocated_db colocated = true; CREATE DATABASE yugabyte=# \c colocated_db; You are now connected to database "colocated_db" as user "yugabyte". colocated_db=# CREATE TABLE col_temp_tbl (h INT PRIMARY KEY) WITH (colocated = true); CREATE TABLE colocated_db=# INSERT INTO col_temp_tbl VALUES (1), (2), (3); INSERT 0 3 colocated_db=# create unique index on col_temp_tbl(h); CREATE INDEX colocated_db=# truncate col_temp_tbl; TRUNCATE TABLE colocated_db=# SELECT * from col_temp_tbl; h --- (0 rows) colocated_db=# INSERT INTO col_temp_tbl VALUES (1), (2), (3); ERROR: duplicate key value violates unique constraint "col_temp_tbl_h_idx"
The text was updated successfully, but these errors were encountered:
Closing as a duplicate of #10912
Sorry, something went wrong.
m-iancu
lnguyen-yugabyte
No branches or pull requests
Truncate table is not removing records properly with colocated DB/table
DB Version: 2.11.2.0-b54
Steps:
ex:
The text was updated successfully, but these errors were encountered: