Allow passing ssl_cert_data, ssl_key_dadta and ssl_root_cert_data#10
Merged
Conversation
…ssl_root_cert_data) Each ssl_* file parameter now has a *_data counterpart that accepts the raw PEM content directly. When set, the content is written to a temporary file which is passed to the PostgreSQL tools via the existing env vars (PGSSLCERT, PGSSLKEY, PGSSLROOTCERT). Temp files are removed when the connector is closed. Path and inline variants are mutually exclusive; specifying both is an error. All three connectors (importer, exporter, binimporter) call conn.Cleanup() in their Close() method. Logic is entirely in pgconn so no connector duplicates it. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Remove mentions of mutual exclusivity and temp file implementation details from schema descriptions, README, and man page. The _data variants are now described simply as alternatives to the corresponding path parameters. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
c46311f to
b92bbfe
Compare
glemmaPaul
approved these changes
May 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Each ssl_* file parameter now has a *_data counterpart that accepts the raw PEM content directly. When set, the content is written to a temporary file which is passed to the PostgreSQL tools via the existing env vars (PGSSLCERT, PGSSLKEY, PGSSLROOTCERT). Temp files are removed when the connector is closed.
To test, start a postgresql container:
Do a backup with the
_data*:Or with the files: