8000 Use dynamic memory for connection strings handling. by dimitri · Pull Request #323 · dimitri/pgcopydb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use dynamic memory for connection strings handling. #323

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 9 commits into from
Jun 19, 2023

Conversation

dimitri
Copy link
Owner
@dimitri dimitri commented Jun 17, 2023

It turns out that Postgres interface libpq export MACONNINFO but does not uses it really. Switch to using dynamic memory for all our needs around connection strings, including print-safe variants (without password).

Replaces and fix #311.
Fixes #292.

Chanderprabh Jain and others added 9 commits June 16, 2023 12:25
…, dump , restore and snapshot commands
Arrange to share more code from cli_common, and in passing introduce a new
structure to handle the bytes and bytesPretty within a single unit.
Make the internal parsing APIs use dynamic memory, and then keep a single
instance of the connections strings, safe versions of them (without the
password), and the password separated in-memory.
Lazily compute the SafeURI when needed only.
@dimitri dimitri merged commit a42d305 into main Jun 19, 2023
@dimitri dimitri deleted the fix/support_JWT_tokens_as_pwds branch June 19, 2023 10:18
dimitri added a commit that referenced this pull request Jun 20, 2023
We want to grab the password and remove it from the connection string so
that logs don't contain it, and we set the password in the environment of
the child processes when running pg_dump etc commands.

Fix the code so that's what actually happens. See #323.
dimitri added a commit that referenced this pull request Jun 20, 2023
We want to grab the password and remove it from the connection string so
that logs don't contain it, and we set the password in the environment of
the child processes when running pg_dump etc commands.

Fix the code so that's what actually happens. See #323.
dimitri added a commit that referenced this pull request Jul 11, 2023
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.

Support for longer PG Connection URI strings
2 participants
0