I\'m receiving this message but I can\'t find the postgresql.conf file:
OperationalError: could not connect to server: Connection refused (0x0000
postgresql.conf is located in PostgreSQL's data directory. The data directory is configured during the setup and the setting is saved as PGDATA entry in c:\Program Files\PostgreSQL\, for example
@ECHO OFF
REM The script sets environment variables helpful for PostgreSQL
@SET PATH="C:\Program Files\PostgreSQL\\bin";%PATH%
@SET PGDATA=D:\PostgreSQL\\data
@SET PGDATABASE=postgres
@SET PGUSER=postgres
@SET PGPORT=5432
@SET PGLOCALEDIR=C:\Program Files\PostgreSQL\\share\locale
Alternatively you can query your database with SHOW config_file; if you are a superuser.