pgsql working in process