Skip to content

REL_2_5-PBCKP-236 #531

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

Merged
merged 20 commits into from
Oct 27, 2022
Merged

REL_2_5-PBCKP-236 #531

merged 20 commits into from
Oct 27, 2022

Conversation

avaness
Copy link
Contributor

@avaness avaness commented Sep 5, 2022

@funny-falcon please review

@avaness avaness changed the base branch from master to REL_2_5 September 5, 2022 16:56
Copy link
Collaborator

@funny-falcon funny-falcon left a comment

Choose a reason for hiding this comment

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

В целом, хорошо.

Я попрошу учесть замечания, хоть они больше стилистические, чем по существу.

static bool check_certified()
{
return strstr(PGPRO_VERSION_STR, "(certified)") ||
strstr(PGPRO_VERSION_STR, ("(standard certified)"));
Copy link
Collaborator

Choose a reason for hiding this comment

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

А зачем тут скобочки вокруг строки?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PGPRO_VERSION_STR выглядит как "PostgresPro 11.17.1 (certified) on x86_64-pc-linux-gnu, ...", скобочки отсюда, чтобы быть более strict.


for (int i = 0; i < compatibility_params_array_size; i+=2)
for (int i = 0; i < sizeof compatibility_params; i+=2)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Было правильно, зря убрал.

{
if (compatibility_params[i].strval != NULL)
result_size += snprintf(compatibility_buf + result_size, compatibility_buf_size - result_size,
"%s=%s/n",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Слэш в другую сторону. И ниже тоже.

"CREATE TABLE ultimate_question2 AS SELECT 42 AS answer")

# do delta catchup with remote pg_probackup agent with another postgres major version
# this DELTA backup should fail without PBCKP-236 patch.
Copy link
Collaborator

Choose a reason for hiding this comment

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

А тест не должен падать в любом случае? По крайней мере, кажется что с патчем-то он точно должен падать.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

должен, он вообще не должен срабатывать, так как ссылается на абсолютный путь на бинарь другой версии. мне не понятно почему CI не репортит это. на планерке спрошу гипотезы.

@avaness avaness changed the title Rel 2 5 pbckp 236 REL_2_5-PBCKP-236 Sep 29, 2022
@avaness avaness marked this pull request as ready for review September 29, 2022 01:45
@avaness avaness merged commit f2df286 into REL_2_5 Oct 27, 2022
@Burus Burus added this to the 2.5.9 milestone Nov 2, 2022
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.

3 participants