Ubuntu – Reloading PostgreSQL after configuration changes

configurationpostgresqlUbuntu

I've made some changes to pg_hba.conf and I want them to take affect. I've found several places where people say that I can tell PostgreSQL to reload, but there are several different techniques listed, and none of them work for me yet.

The most authoritative reference I've found is for the pg_ctl command, but I'm not sure where my PGDATA folder is. I'll keep looking.

I'm running PostgreSQL 8.3 on Ubuntu 8.10.

Best Answer

You can check where your PGDATA is by connecting to pg, and issuing command:

show data_directory;

On ubuntu, it's usually /var/lib/postgresql/8.3/main/.

Also, you can: /etc/init.d/postgresql-8.3 reload