[pgsql-jp: 34303] Re: データベースが存在するのに、「存在しない」と言われる

hanrin tomson_lpcjp @ yahoo.co.jp
2004年 11月 20日 (土) 00:34:59 JST


>template1=# select * from pg_database;
>datname | datdba | encoding | datistemplate | datallowconn |
>datlastsysoid | datvacuumxid | datfrozenxid | datpath | datconfig | datacl
-----------+--------+----------+---------------+--------------+---------------+--------------+--------------+---------+-----------+--------------------------
>cart04 | 100 | 1 | f | t | 17140 | 464 | 464 | | |
>cart04 | 100 | 1 | f | t | 17140 | 464 | 464 | | |
>test | 1 | 0 | f | t | 17140 | 464 | 464 | | |
>template1 | 1 | 0 | t | t | 17140 | 464 | 464 | | | {postgres=C*T*/postgres}
>template0 | 1 | 0 | t | f | 17140 | 464 | 464 | | | {postgres=C*T*/postgres}
>(5 rows)

スーパーユーザーであれば、この状態で

template1=# DROP DATABASE cart04;

で削除できるはず。

あと考えられるのは
複数のpostmasterが起動しているか、$PGDATAに***.pidの残りかすがある
か、です。
すべてのpostgresプロセスをkillして、pg_ctl -D $PGDATA startしなければ
ならないとおもいますが、推測です。 

***********************************************

NAME   Hanrin Keisin
E-Mail w2k @ hanrin.dyndns.org 
WWW    https://hanrin.dyndns.org/~w2k/

***********************************************



pgsql-jp メーリングリストの案内