Conversation
host at installation time.
|
Thanks for the patch! I've imported it to our Critic system for review, and mostly for automatic testing. (Which shows some errors: using "-h localhost" to psq is not quite equivalent to not using a -h argument at all, it seems.) Critic review here: https://critic-review.org/r/341 One initial thought I have about this otherwise is that there might be some performance with using a separate database hose. I'd imagine some kind of connection caching or such might be necessary then, which I simply haven't bothered looking into since it definitely doesn't seem necessary when connecting to the database server locally. |
I've set the default database host to
How about using psycopg2's connection pooling feature? |
|
@jensl When trying to figure out what to set |
Add --database-host option to define a non-local PostgreSQL database to be used by Critic host at installation time. By default --database-host is set to "localhost", which is how Critic is currently hardwired to run. This makes running Critic in a Docker container or other environment where the database host is not running on the web host feasible.