Обсуждение: PostgreSQL on Windows

Поиск
Список
Период
Сортировка

PostgreSQL on Windows

От
Mark Vantzelfde
Дата:
I am running 8.4 on a Windows Vista system. The software was installed using the auto-install process. PostgreSQL starts successfully as a service when the system boots. The running postgres* processes can be verified via Task Manager. I can run psql from the command prompt. I have the PGDATA env variable set to the folder where the PostgreSQL data sits. Running the pg_ctl status command from the command prompt returns "pg_ctl: no server running". Ideas why pg_ctl doesn't know about the running services?

Mark

Re: PostgreSQL on Windows

От
Raymond O'Donnell
Дата:
On 29/03/2010 18:38, Mark Vantzelfde wrote:
> I am running 8.4 on a Windows Vista system. The software was installed using
> the auto-install process. PostgreSQL starts successfully as a service when
> the system boots. The running postgres* processes can be verified via Task
> Manager. I can run psql from the command prompt. I have the PGDATA env
> variable set to the folder where the PostgreSQL data sits. Running the
> pg_ctl status command from the command prompt returns "pg_ctl: no server
> running". Ideas why pg_ctl doesn't know about the running services?

Have you tried running it with the -D option instead of the env
variable? No idea if it will make any difference...just a wild guess.

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie

Re: PostgreSQL on Windows

От
Mark Vantzelfde
Дата:
Same result.

On Mon, Mar 29, 2010 at 1:51 PM, Raymond O'Donnell <rod@iol.ie> wrote:
On 29/03/2010 18:38, Mark Vantzelfde wrote:
> I am running 8.4 on a Windows Vista system. The software was installed using
> the auto-install process. PostgreSQL starts successfully as a service when
> the system boots. The running postgres* processes can be verified via Task
> Manager. I can run psql from the command prompt. I have the PGDATA env
> variable set to the folder where the PostgreSQL data sits. Running the
> pg_ctl status command from the command prompt returns "pg_ctl: no server
> running". Ideas why pg_ctl doesn't know about the running services?

Have you tried running it with the -D option instead of the env
variable? No idea if it will make any difference...just a wild guess.

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie



--
Mark Vantzelfde
NetMasters, Inc.

Re: PostgreSQL on Windows

От
Mark Vantzelfde
Дата:
Could it be that pg_ctl uses some sort of unix cmd like ps to try to determine with the postgres processes are running? Using ps from a windows command prompt does not show the postgres processes started as services.

Mark

On Mon, Mar 29, 2010 at 1:54 PM, Mark Vantzelfde <netmasters.ma@gmail.com> wrote:
Same result.


On Mon, Mar 29, 2010 at 1:51 PM, Raymond O'Donnell <rod@iol.ie> wrote:
On 29/03/2010 18:38, Mark Vantzelfde wrote:
> I am running 8.4 on a Windows Vista system. The software was installed using
> the auto-install process. PostgreSQL starts successfully as a service when
> the system boots. The running postgres* processes can be verified via Task
> Manager. I can run psql from the command prompt. I have the PGDATA env
> variable set to the folder where the PostgreSQL data sits. Running the
> pg_ctl status command from the command prompt returns "pg_ctl: no server
> running". Ideas why pg_ctl doesn't know about the running services?

Have you tried running it with the -D option instead of the env
variable? No idea if it will make any difference...just a wild guess.

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie



--
Mark Vantzelfde
NetMasters, Inc.



--
Mark Vantzelfde
NetMasters, Inc.