Results 1 to 2 of 2

Thread: qgis psql vs postgres

  1. #1
    Join Date
    Dec 2021
    Posts
    4

    qgis psql vs postgres

    Good day.
    This might be an unusual question, but QGIS has psql.exe in its bin folder, and this seems to be set in the registry, because when I run psql from command line, the one in QGIS executes, instead of the one in postgreSQL.

    So to run the postgres psql.exe, I have to cd into C:\Program Files\PostgreSQL\14\bin first. I have already set this directory in the environment variables path.

    Has anyone experience this situation? I would like to just run psql from the command line, rather than have to cd into PostgreSQL's bin folder every time, to run the correct executable.
    Does anyone have any suggestions on how I can accomplish this? Thanks.

  2. #2
    Join Date
    Dec 2021
    Posts
    4
    Actually, I was inaccurate about the source of psql. It was from OSGeo4W64, not QGIS.
    However, I figured out I needed to set the postgreSQL bin higher up in the path, so that it is searched first, or before OSGeo4W64 bin.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •