Skip to content

Check liblz4 on Windows#20

Open
asavchkov wants to merge 2 commits into
mainfrom
check-lz4-win
Open

Check liblz4 on Windows#20
asavchkov wants to merge 2 commits into
mainfrom
check-lz4-win

Conversation

@asavchkov

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread pg_probackup2/init_helpers.py Outdated
['ldd', postgres],
encoding='utf-8')
self.is_lz4_enabled = 'liblz4.so' in ldd
if os.name == 'posix':

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

У os_ops есть функция get_name() - она как раз возвращает это имя с рабочей машины.

Собственно здесь пока это не критично, но testgres из-за таких вещей спотыкался при запуске на настоящей удаленной машине.

Надо этот get_name тоже поправить - прописать тип результата )

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Переделал

Comment thread pg_probackup2/init_helpers.py Outdated
break
else:
# Fall back to trying to determine lz4 support via pg_config
pg_config = testgres.get_pg_config()

@dmitry-lipetsk dmitry-lipetsk Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Разу у нас здесь есть os_ops, его можно передать в get_pg_config )

А лучше вызвать get_pg_config2 - он требует, чтобы ему указали os_ops.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

get_pg_config2 не выведен наружу (видимо, специально), оставил get_pg_config с аргументом os_ops.

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