pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Database ... has disappeared from pg_database
3+ messages / 3 participants
[nested] [flat]

* Database ... has disappeared from pg_database
@ 2001-01-29 12:01  Jens Hartwig <jhartwig@debis.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Jens Hartwig @ 2001-01-29 12:01 UTC (permalink / raw)
  To: pgsql-admin

Hello all,

I am running into a strange error when creating a database which is located
in another directory than the default directory of PostgreSQL (7.0.2.):

I created a directory called mybase (as owner postgres). I ran the command
initlocation on this directory, then I declared an environment variable
PGDATA2 and restarted my postmaster.

With the command createdb mydb -D 'PGDATA2' I created a new database. When
trying to connect to this database I get the following error:

psql: FATAL 1:  Database 'mydb', OID 10857280, has disappeared from
pg_database

What has happened? Any suggestions would be welcome.

Best regards, Jens Hartwig

=============================================
Jens Hartwig
---------------------------------------------
debis Systemhaus GEI mbH
10875 Berlin
Tel.     : +49 (0)30 2554-3282
Fax      : +49 (0)30 2554-3187
Mobil    : +49 (0)170 167-2648
E-Mail   : jhartwig@debis.com
=============================================




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Database ... has disappeared from pg_database
@ 2001-01-29 12:50  Jean-Marc Pigeon <jmp@safe.ca>
  parent: Jens Hartwig <jhartwig@debis.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Jean-Marc Pigeon @ 2001-01-29 12:50 UTC (permalink / raw)
  To: jhartwig@debis.com; +Cc: jmp@new-york.safe.ca

Bonjour Jens Hartwig
> 
> Hello all,
> 
> I am running into a strange error when creating a database which is located
> in another directory than the default directory of PostgreSQL (7.0.2.):
[....]
> 
> 
> psql: FATAL 1:  Database 'mydb', OID 10857280, has disappeared from
> pg_database
> 
> What has happened? Any suggestions would be welcome.
	Is the postgres daemon made awar about it??, we have an application
	(Regulus) which data-base is located in its own directory, 
	an extra postgres daemon must be started like:
	/usr/bin/postmaster -D //var/lib/regulus/dbm -p 1621 -B512 -o -F -o -Q -o -S2048

	to access it we just do:
	psql -p 1621 regulus

	(it is a matter of fact, for test and and demo purpose, we have
	 3 or 4 Regulus version running on the same server, eash one 
	 in it own directory and with its own daemon).

	Hopping that help.
	
> 
> Best regards, Jens Hartwig
> 
> =============================================
> Jens Hartwig
> ---------------------------------------------
> debis Systemhaus GEI mbH
> 10875 Berlin
> Tel.     : +49 (0)30 2554-3282
> Fax      : +49 (0)30 2554-3187
> Mobil    : +49 (0)170 167-2648
> E-Mail   : jhartwig@debis.com
> =============================================
> 


A bientot
==========================================================================
Jean-Marc Pigeon		      Internet:   Jean-Marc.Pigeon@safe.ca
SAFE Inc.		    	Phone: (514) 493-4280  Fax: (514) 493-1946
       REGULUS,  a real time accounting/billing package for ISP
           REGULUS' Home base <"http://www.regulus.safe.ca";
==========================================================================




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Database ... has disappeared from pg_database
@ 2001-01-29 15:26  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Jens Hartwig <jhartwig@debis.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Tom Lane @ 2001-01-29 15:26 UTC (permalink / raw)
  To: Jens Hartwig <jhartwig@debis.com>; +Cc: pgsql-admin

"Jens Hartwig" <jhartwig@debis.com> writes:
> psql: FATAL 1:  Database 'mydb', OID 10857280, has disappeared from
> pg_database

Try vacuuming pg_database.  The code in GetRawDatabaseInfo is not very
good about handling replaced pg_database tuples (I've improved it for
7.1 but that won't help you today).

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2001-01-29 15:26 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-29 12:01 Database ... has disappeared from pg_database Jens Hartwig <jhartwig@debis.com>
2001-01-29 12:50 ` Jean-Marc Pigeon <jmp@safe.ca>
2001-01-29 15:26 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox