Skip to content

Fix and rename --use-unique-keys option and add TAP test#1508

Merged
reshke merged 3 commits intomainfrom
use_uni_key
Dec 25, 2025
Merged

Fix and rename --use-unique-keys option and add TAP test#1508
reshke merged 3 commits intomainfrom
use_uni_key

Conversation

@reshke
Copy link
Contributor

@reshke reshke commented Dec 24, 2025

Cloudberry has --use-unique-keys options since cc797b9. However, it does not work, at least at current HEAD. That is, specifying --use-unique-keys to pgbench leads to fatal error, because option in not recognized. Fix that, and also rename option, to better indicate its use case. If user does NOT use this option, pgbench will create unique index. If user does use this option, pgbench will not. So, rename to --use-non-unique-keys.

Found during PG16 kernel rebase.

Cloudberry has --use-unique-keys options since cc797b9.
However, it does not work, at least at current HEAD.
Fix that, and also rename option, to better indicate its use case.
If user does NOT use this option, pgbenc will create unique index.
If use does use this option, pgbench will not. So, rename to
--use-non-unique-keys.

Found during PG16 kernel rebase.
@reshke reshke merged commit 8bde32c into main Dec 25, 2025
363 of 382 checks passed
@reshke reshke deleted the use_uni_key branch December 25, 2025 20:37
yjhjstz pushed a commit to yjhjstz/cloudberry that referenced this pull request Jan 9, 2026
* Fix and rename --use-unique-keys option and add TAP test

Cloudberry has --use-unique-keys options since cc797b9.
However, it does not work, at least at current HEAD.
Fix that, and also rename option, to better indicate its use case.
If user does NOT use this option, pgbenc will create unique index.
If use does use this option, pgbench will not. So, rename to
--use-non-unique-keys.

Found during PG16 kernel rebase.

* Update 001_pgbench_with_server.pl

(cherry picked from commit 8bde32c)
hw118118 pushed a commit to hw118118/cloudberrydb that referenced this pull request Jan 27, 2026
* Fix and rename --use-unique-keys option and add TAP test

Cloudberry has --use-unique-keys options since cc797b9.
However, it does not work, at least at current HEAD.
Fix that, and also rename option, to better indicate its use case.
If user does NOT use this option, pgbenc will create unique index.
If use does use this option, pgbench will not. So, rename to
--use-non-unique-keys.

Found during PG16 kernel rebase.

* Update 001_pgbench_with_server.pl
hw118118 pushed a commit to hw118118/cloudberrydb that referenced this pull request Jan 27, 2026
* Fix and rename --use-unique-keys option and add TAP test

Cloudberry has --use-unique-keys options since cc797b9.
However, it does not work, at least at current HEAD.
Fix that, and also rename option, to better indicate its use case.
If user does NOT use this option, pgbenc will create unique index.
If use does use this option, pgbench will not. So, rename to
--use-non-unique-keys.

Found during PG16 kernel rebase.

* Update 001_pgbench_with_server.pl
hw118118 pushed a commit to hw118118/cloudberrydb that referenced this pull request Jan 28, 2026
* Fix and rename --use-unique-keys option and add TAP test

Cloudberry has --use-unique-keys options since cc797b9.
However, it does not work, at least at current HEAD.
Fix that, and also rename option, to better indicate its use case.
If user does NOT use this option, pgbenc will create unique index.
If use does use this option, pgbench will not. So, rename to
--use-non-unique-keys.

Found during PG16 kernel rebase.

* Update 001_pgbench_with_server.pl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants