Unverified Commit a42d3054 authored by Dimitri Fontaine's avatar Dimitri Fontaine Committed by GitHub
Browse files

Use dynamic memory for connection strings handling. (#323)



* Fix cli_list environment variable parsing.

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.

* Review Postgres URI handling and parsing APIs.

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.

* Only compute safeURI when logging the connection string.

* Use pg_strdup and removed NULL checks

---------

Co-authored-by: default avatarChanderprabh Jain <chajain@microsoft.com>
Co-authored-by: default avatarcpj2195 <chanderprabhjain95@gmail.com>
parent 0b19ebae
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment