From: | "Marius Cornea" <marius(at)tns-agb(dot)ro> |
---|---|
To: | "Richard Huxton" <dev(at)archonet(dot)com> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Create GLOBAL TABLE |
Date: | 2005-10-19 20:58:29 |
Message-ID: | 002e01c5d4ef$db7976d0$5a45a8c0@mariushome |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
1.The sintax for create table is :
CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE table_name (
{ column_name data_type [ DEFAULT default_expr ] [ column_constraint [
... ] ] ...
What mean the parameter GLOBAL|LOCAL ??
2. in pg_class it is a field "relisshared" how can i use it ?
3.1 how can I use BKI script ?,
3.2 it is posible to modify postgres.bki to create another table with initdb
script ?
like: "create bootstrap shared_relation .." ?
----- Original Message -----
From: "Richard Huxton" <dev(at)archonet(dot)com>
To: "Marius Cornea" <marius(at)tns-agb(dot)ro>
Cc: <pgsql-general(at)postgresql(dot)org>
Sent: Wednesday, October 19, 2005 3:58 PM
Subject: Re: [GENERAL] Create GLOBAL TABLE
> Marius Cornea wrote:
>> How can I make a global table (like pg_users, pg_shaddow) ?
>
> You can't afaik. There are three things you can do though.
>
> 1. Anything you put into pg_template1 gets created in each new database
> (unless you choose a different template when creating).
> 2. The dblink() module in contrib/ lets you connect two databases (on the
> same or different clusters)
> 3. Use separate schemas rather than separate databases to split your data.
>
> That any help?
>
> --
> Richard Huxton
> Archonet Ltd
>
From | Date | Subject | |
---|---|---|---|
Next Message | Chris Travers | 2005-10-19 20:59:50 | Re: Oracle buys Innobase |
Previous Message | Dann Corbit | 2005-10-19 20:57:26 | Re: [pgsql-advocacy] Oracle buys Innobase |