Fwd: Re: database location problems

From: Aarni Ruuhimäki <aarni(dot)ruuhimaki(at)kymi(dot)com>
To: <Devinder(dot)Rajput(at)ipaper(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Fwd: Re: database location problems
Date: 2002-12-05 19:37:59
Message-ID: 200212052137.59476.aarni.ruuhimaki@kymi.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi !

-D is for for your preferred location, that is, ih this case, your 'custom'
datadir.

But why ? What is wrong with default values ? Defaults work fine on any
'default box', and you do not have to recall all different set-ups ? Lot's of
remembering / documentation skipped. We want to standardize a good thing ?

Other issues like security, access control and such forth can be configured by
firewalls ( I have three + plus the system ) and config files etc. ?

This is just my view ...

Very best regards and take care !

t: a

---------- Forwarded Message ----------

Subject: Re: [NOVICE] database location problems
Date: Thu, 05 Dec 2002 14:21:13 -0500
From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Devinder K Rajput" <Devinder(dot)Rajput(at)ipaper(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org

"Devinder K Rajput" <Devinder(dot)Rajput(at)ipaper(dot)com> writes:
> I have installed 7.3 in /usr/local/pgsql. However, I want the system
> tables, config files, etc. located in the /data/db/system directory. I am
> able to do "initdb -D PGDATA" (PGDATA = /data/db/system) and it works fine.
> However, when I try to create a database, createdb tells me that it cannot
> find /usr/local/pgsql/data/global/1262 (which i assume is template1).

You have not mentioned the step where you start the postmaster --- but
you need to make sure you give that same -D switch to the postmaster.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
message can get through to the mailing list cleanly

-------------------------------------------------------

Browse pgsql-novice by date

  From Date Subject
Next Message Josh Berkus 2002-12-05 22:54:16 Re: Infinite Loop
Previous Message Mark Wilson 2002-12-05 19:35:01 Infinite Loop