From: Grzegorz Przeździecki <Grzegorz.Przezdziecki@crn.pl>
To: pgsql-admin@postgresql.org
Subject: PGDATA, PGDATA2, pg_database
Date: Fri, 19 Jul 2002 18:28:20 +0200
Message-ID: <20020719162415.9B4BE14049@lupus.pl> (raw)
Welcome
I need some information about PGDATA and PGDATA2 variable and system table
pg_database.
I'm read doc and have a question.
for example
PGDATA =/usr/data this is clouster_1
PGDATA2 =/usr2/data this is clouster_2
First question
Is pg_database i one for two clouster or one in clouster_1 and
second copy in clouster_2 with other database?
Second question.
I can run postmaster with param -D and path to databases location for example
clouster_1.
In this moment when I run select comand on pg_database I will see only
database from clouster one or database form clouster_1 and clouster_2 and I
will connect only to database from clouster_1???
Third question
What will hapend where I set variable PGDATA and PGDATA2 in my environment
and run postmaster -i -o '-F' & (for example)
I will see run select on pg_database all database or not and can conntect (\c
command from pgsql) to database from PGDATA and PGDATA2?
In doc for 7.2.1 wrote:
======================
Unlike most system catalogs, pg_database is shared across all databases of a
cluster: there is only one copy of pg_database per cluster, not one per
database.
=======================
Thanks
Sorry for my English
--
///////////////////////////////////////////////////
Hold down your horses.
Don't be in a hurry.
Read slow.
Read carefully.
These things are important.
It is not polite to read them that fast
Be human after all, not robot.
///////////////////////////////////////////////////
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: Grzegorz.Przezdziecki@crn.pl
Subject: Re: PGDATA, PGDATA2, pg_database
In-Reply-To: <20020719162415.9B4BE14049@lupus.pl>
References: <20020719162415.9B4BE14049@lupus.pl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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