-
Notifications
You must be signed in to change notification settings - Fork 398
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
"CodeChecker server --postgresql" still create sqlite db #1135
Comments
in this step-by-step guide it is describe how to store your results in postgres db. The database is not created automatically as before (and as currently in sqlite), you must create it before you start the server. |
The |
@whisperity, in that case it is very confusing which database is controlled by which option. I think, if someone wants to use postgres, probably it is a good idea to use it for all databases by default unless explicitly specified otherwise. |
It is well-documented in the help and in the written documentation. It is also logical as I explained above, the server takes the server's argument, while Once a connection is set up in a particular way in the configuration database, it is used as it is. On the web interface, the SQLite/PostgreSQL distinction is made by the user. You can't easily make it default if the server runs in PSQL mode, because it would result in an extra round (on the command-line) to query what mode the server runs in. Also, nothing ever guarantees that run databases are in the same database server as the config database. Setting up a SQLite product takes only one variable, while PSQL takes up to |
Probably from your perspective but as an external user who just want to run it, I find that unexpected and not following a principle of least astonishment |
How should we design it? Should we straight-up prohibit the usage of SQLite databases for analysis results if the configuration database is PostgreSQL and vica-versa? |
yes, or having a single step to configure the database(s). |
Simply starting If PSQL mode prohibits an SQLite database's existence, then we will end up with breaking a use case where, for example, a run database is residing in some shared storage location. The ability of having multiple products added to the same server opened up many new configuration options, unfortunately or not. |
Starting with:
CodeChecker server --force-authentication -w /var/lib/jenkins/.codechecker --postgresql --dbname codechecker_config --dbport 5432 --dbusername codechecker_user --not-host-only --verbose debug
The text was updated successfully, but these errors were encountered: