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

Fixed regression test failure #254

Merged
merged 2 commits into from
Nov 22, 2023
Merged

Conversation

zwyan0
Copy link
Contributor

@zwyan0 zwyan0 commented Nov 20, 2023

Fixed a problem that caused some regression tests of pg_rman to fail since 15.4.

Copy link
Contributor

@mikecaat mikecaat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

# mkdir -p ${TBLSPC_PATH}/pgbench
# psql --no-psqlrc -p ${TEST_PGPORT} -d postgres > /dev/null 2>&1 << EOF
# CREATE TABLESPACE pgbench LOCATION '${TBLSPC_PATH}/pgbench';
# CREATE DATABASE pgbench TABLESPACE = pgbench;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to comment out the line?

Copy link
Contributor

@mikecaat mikecaat Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I think it's better to replace to CREATE DATABASE pgbench;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don need the line. So I removed this line and CREATE DATABASE pgbench to replaced it


pgbench -i -s $SCALE -p ${TEST_PGPORT} -d pgbench > ${TEST_BASE}/pgbench.log 2>&1
pgbench -i -s $SCALE -p ${TEST_PGPORT} -d postgres > ${TEST_BASE}/pgbench.log 2>&1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to separate another commit if you want to change the database.
(But, I think the change not seems to be necessary.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I agree with you. So I revert this change.

sql/backup_from_standby.sh Show resolved Hide resolved
sql/backup_from_standby.sh Show resolved Hide resolved
CREATE TABLESPACE pgbench LOCATION '${TBLSPC_PATH}/pgbench';
CREATE DATABASE pgbench TABLESPACE = pgbench;
EOF
# mkdir -p ${TBLSPC_PATH}/pgbench
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need the reason why it's commented out.

Change the backup_from_standby test item because it is not possible
to create a streaming replication with external tablespaces on one localhost.
So I removed command about created external tablespace.
And I used pg_basebackp command to replaced pg_backup_start() and pg_backup_stop().
Copy link
Contributor

@mikecaat mikecaat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mikecaat
Copy link
Contributor

I confirmed the change. Thanks for your works!
Please don't forget to apply them to back branches.

@zwyan0 zwyan0 merged commit ba81b03 into ossc-db:master Nov 22, 2023
1 check passed
zwyan0 added a commit that referenced this pull request Nov 22, 2023
* Change the backup_from_standby test item.

Change the backup_from_standby test item because it is not possible
to create a streaming replication with external tablespaces on one localhost.
So I removed command about created external tablespace.
And I used pg_basebackp command to replaced pg_backup_start() and pg_backup_stop().

* Corrected parameter values.
zwyan0 added a commit that referenced this pull request Nov 22, 2023
* Change the backup_from_standby test item.

Change the backup_from_standby test item because it is not possible
to create a streaming replication with external tablespaces on one localhost.
So I removed command about created external tablespace.
And I used pg_basebackp command to replaced pg_backup_start() and pg_backup_stop().

* Corrected parameter values.
zwyan0 added a commit that referenced this pull request Nov 22, 2023
* Change the backup_from_standby test item.

Change the backup_from_standby test item because it is not possible
to create a streaming replication with external tablespaces on one localhost.
So I removed command about created external tablespace.
And I used pg_basebackp command to replaced pg_backup_start() and pg_backup_stop().

* Corrected parameter values.
zwyan0 added a commit that referenced this pull request Nov 22, 2023
* Change the backup_from_standby test item.

Change the backup_from_standby test item because it is not possible
to create a streaming replication with external tablespaces on one localhost.
So I removed command about created external tablespace.
And I used pg_basebackp command to replaced pg_backup_start() and pg_backup_stop().

* Corrected parameter values.
zwyan0 added a commit that referenced this pull request Nov 22, 2023
* Change the backup_from_standby test item.

Change the backup_from_standby test item because it is not possible
to create a streaming replication with external tablespaces on one localhost.
So I removed command about created external tablespace.
And I used pg_basebackp command to replaced pg_backup_start() and pg_backup_stop().

* Corrected parameter values.
zwyan0 added a commit to zwyan0/pg_rman that referenced this pull request Nov 22, 2023
* Change the backup_from_standby test item.

Change the backup_from_standby test item because it is not possible
to create a streaming replication with external tablespaces on one localhost.
So I removed command about created external tablespace.
And I used pg_basebackp command to replaced pg_backup_start() and pg_backup_stop().

* Corrected parameter values.
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.

2 participants