Skip site navigation (1) Skip section navigation (2)

Re: Question: drop database problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ben Kim <bkim(at)coe(dot)tamu(dot)edu>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Question: drop database problem
Date: 2004-10-25 23:33:35
Message-ID: 2221.1098747215@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
Ben Kim <bkim(at)coe(dot)tamu(dot)edu> writes:
> pgsql=# drop database mydb;
> ERROR:  Postmaster environment variable 'PGDATA3' not set

> The database owner is pgsql, and if I echo $PGDATA3 as the owner, it
> returns a valid directory. Also, the datpath is correct.

You have $PGDATA3 set in your interactive environment, but evidently not
in the environment of the postmaster process.  How are you starting the
postmaster exactly, and where are you expecting it to get $PGDATA3 from?

> Also, I have several databases sharing the datpath of PGDATA3. Is there a
> system table associating the datpath and the actual OS path?

No, just the environment variable.  (This is all changing in 8.0 with
tablespaces, thank goodness.)

			regards, tom lane

In response to

Responses

pgsql-admin by date

Next:From: Scott MarloweDate: 2004-10-26 00:44:33
Subject: Re: Index relation size
Previous:From: Ben KimDate: 2004-10-25 19:44:38
Subject: Question: drop database problem

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group