Skip to content
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

PgSQL dsn improvements #439

Closed
wants to merge 1 commit into from
Closed

Conversation

volga629-1
Copy link

Ticket reference: #437

	modified:   database/database.go
	modified:   example/homer5_config/heplify-server.toml
	modified:   example/homer7_config/heplify-server.toml
@CLAassistant
Copy link

CLAassistant commented Oct 6, 2020

CLA assistant check
All committers have signed the CLA.

@nathanleyton
Copy link

Hi I am happy to see find a PR for this as we really need it. Do we have a lead time on when this might be merged? Not having sslmode means we cannot use homer. Thanks

@negbie
Copy link
Member

negbie commented Nov 21, 2020

DBPort is a breaking change so can't merge.

@volga629-1
Copy link
Author

DBPort is a breaking change so can't merge.

Can you please point what exactly is not right ?

@negbie
Copy link
Member

negbie commented Nov 21, 2020

In the old config you use DBAddr as "localhost:1234"
with your PR you use DBAddr as "localhost" and DBPort "1234"

@volga629-1
Copy link
Author

Yes, DBPort is part of pull request, I added corresponding options to config.go.
My pull request I added to spec file and everything works as expected. I am not sure what actually is breaks.
It just separate option for host and port to make dsn more flexible.

@negbie
Copy link
Member

negbie commented Nov 21, 2020

There are alot of users who have config files with DBAddr set to for example "localhost:1234".

@lmangani
Copy link
Member

Fully agree with @negbie there's no reason to break backwards compatibility for such a minimal change with no particular advantage. @volga629-1 could you merge those back or make the second an optional parameter to retain compatibility?

@ZionDials
Copy link
Contributor

Hello, I created a pull request that allows SSL Mode for the DB Connection without breaking backward compatibility. #449

@negbie
Copy link
Member

negbie commented Jan 7, 2021

Guys, you should read more carefully, this PR should not be approved but ZionDials PR #449

@adubovikov
Copy link
Member

@negbie oki! thanks for pointing :)

@negbie
Copy link
Member

negbie commented Jan 12, 2021

#449 was merged so closing this. Thanks @volga629-1 for bringing this up.

@negbie negbie closed this Jan 12, 2021
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.

7 participants