Skip to content
New issue

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

can not create table #542

Open
1170300619 opened this issue Oct 14, 2024 · 0 comments
Open

can not create table #542

1170300619 opened this issue Oct 14, 2024 · 0 comments

Comments

@1170300619
Copy link

I use this command to prepare data in PostgreSQL database
sysbench ./share/sysbench/tests/include/oltp_legacy/oltp.lua --db-driver=pgsql --pgsql-db=sysbench --pgsql-user=xxx --pgsql-password=xxx --pgsql-port=PORT --pgsql-host=IP --oltp-tables-count=20 --oltp-table-size=2000000 --threads=20 prepare
BUT it doesn't work, and output error message
Creating table 'sbtest1'...

FATAL: PQexec() failed: 7 Constraint conflict for column "c" of table "sbtest1", default value is null, but column is not null
FATAL: failed query was: CREATE TABLE sbtest1 (
id SERIAL NOT NULL,
k INTEGER DEFAULT '0' NOT NULL,
c CHAR(120) DEFAULT '' NOT NULL,
pad CHAR(60) DEFAULT '' NOT NULL,
PRIMARY KEY (id)
) 
FATAL: `prepare' function failed: ./share/sysbench/tests/include/oltp_legacy/common.lua:66: db_query() failed
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

No branches or pull requests

1 participant