fixes #7879 - config set schema command for postgresql#7892
fixes #7879 - config set schema command for postgresql#7892matthiasblaesing merged 1 commit intoapache:masterfrom
Conversation
|
Thanks for taking care, but this was not tested. I ran this PR against the current postgres docker container and it immediately blows up: This: https://www.postgresql.org/docs/current/ddl-schemas.html#DDL-SCHEMAS-PATH indicates, that you are looking for |
|
What would be the right way to write a unit test for this? You are right, my PR does not have the "to". I will change that. |
Depends on what you want to validate the core problem would only have been visible with an integration test running against a real postgres DB. In this case, I would validate manually and be done with it. I spun up a minimal postgres DB using Docker (apart from the port this is a verbatim copy of the command suggested on docker hub): |
|
I tested this version within your simple docker variant. Now it's working as I expected it. |
|
@wumpz looks good to me. Would you please squash the two commits into one. Summary and author information of the first entry look sane. I'll target this to NB25. You can patch your installed netbeans by applying the modification to the file |
|
Stupid question. I know the squash and merge option but how do I compress this as a PR provider? |
|
@wumpz not a stupid question 😄 The first question would be "Why??": Github has a "Squash-and-Merge" Button. The problem is, that in contrast to git CLI, github tries to be clever on squash. git CLI uses the author information of the commits, github tries to interpolate author information from the public information of the account, github thinks is responsible for this. We had multiple cases where commits ended with mutilated author information: no email or githubs broken pseudo email, nickname instead of real name. The function is just not trustworthy. The second question: PRs are just copies of your local branches. The idea is, that you do a local squash of your commits. Pushing this modified branch is normally prohibited by the git client as it is a destructive action. You need to tell the git client that you want to do it by doing a "forced" push. Info about squashing: https://www.git-tower.com/learn/git/faq/git-squash, info about force pushing: https://git-scm.com/docs/git-push#Documentation/git-push.txt---force (it is just a flag when pushing) |
f01286d to
1afa1a7
Compare
|
So thx for the help. I corrected this PR. Interesting to now about this github squash problems. It took me a bit longer, since I ran into a problem that rebasing did not work on my repository version. |
|
https://github.com/apache/netbeans/pull/7892.patch patch looks good now -> squash worked |
|
@wumpz thanks for taking care of this. |
Postgresql configuration does simply not contain the set default schema command.
This PR tries to include this.
The most fitting command seems to be
set search_path.