Re: Newbie questions

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "berbo" <berbo(at)boxxo(dot)info>, <pgadmin-support(at)postgresql(dot)org>
Subject: Re: Newbie questions
Date: 2005-02-08 14:08:58
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E45289AA@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

> -----Original Message-----
> From: pgadmin-support-owner(at)postgresql(dot)org
> [mailto:pgadmin-support-owner(at)postgresql(dot)org] On Behalf Of berbo
> Sent: 08 February 2005 13:55
> To: pgadmin-support(at)postgresql(dot)org
> Subject: [pgadmin-support] Newbie questions
>
> Hi

Hi,

These questions should really be directed to a postgresql list
(http://www.postgresql.org/community/lists), however I have a couple of
minutes...

> 3 questions from a newbie with the new version 8.0 with Windows
>
> 1.Inside directory where is the database is it possible to
> have name instead
> of numbers for the names of tables?

No. The numbers are the filenode numbers for the index or relation and
cannot be changed. Why would you want to anyway?

> 2. How to do a new, or different, directory of database?

Create a new tablespace in pgAdmin or psql, and when you create tables
or indexes, select the appropriate tablespace. This is obviously useful
to spread the load across multiple disks.

> 3. Is it possible to share the same table between 2 or more databases?

Not without hacking source code :-).

The recommended way to do what you are probably trying to achieve is to
create one database with multiple schemas in it. This allows you to
separate objects into the schemas (which may have different
owners/permissions), and execute cross-schema queries when required (eg.
SELECT * FROM schema1.table, schema2.table...).

Regards, Dave.

Browse pgadmin-support by date

  From Date Subject
Next Message Art Fore 2005-02-09 04:20:32 backup-restore does not work
Previous Message berbo 2005-02-08 13:55:08 Newbie questions