ask for help !!! (emergency case)

From: "Jaruwan Laongmal" <jaruwan(at)gits(dot)net(dot)th>
To: <pgsql-hackers(at)postgresql(dot)org>, <pgsql-sql(at)postgresql(dot)org>
Subject: ask for help !!! (emergency case)
Date: 2001-02-23 11:14:34
Message-ID: 002c01c09d89$ce591980$6d9a96cb@ntl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

dear all
I hava 2 problems about view
1. i can't insert into view
2. i can't create view with union

I try to insert into view as following
create table t1 (id int,name varchar(12) check(id<=10));
create table t2 (id int,name varchar(12) check(id>10));
create view v1 as select * from t1,t2;
insert into v1 values(1,'wan1');
insert into v1 values(12,'wan12');

it does not show any problem but it doen't have data in table t1 and table
t2

------------------------------
if i want to distribute database into 2 database servers
and i want to insert into database1.table1 when database1.table1.id <=100
and i want to insert into database2.table2 when database2.table2.id >100

How can i do that with create view .........as .......union all ............
and insert into view ,afterthat view is check condition and distrubute data
into diferent database
up on condition

and How to configure the postgres sql server?

If you have idea or example for solving this problem , pls help me
thank you so much , i'm looking forward to seeing your response.
Regards,

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB 2001-02-23 11:19:49 AW: ask for help !!! (emergency case)
Previous Message Hannu Krosing 2001-02-23 11:09:37 Re: [HACKERS] Re: v7.1b4 bad performance

Browse pgsql-sql by date

  From Date Subject
Next Message Jaume Teixi 2001-02-23 11:18:31
Previous Message Jaume Teixi 2001-02-23 11:04:30 HELP: m$ access -> psql howto ?