pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jaruwan Laongmal <jaruwan@gits.net.th>
To: pgsql-hackers@postgresql.org
To: pgsql-sql@postgresql.org
Subject: ask for help !!! (emergency  case)
Date: Fri, 23 Feb 2001 18:14:34 +0700
Message-ID: <002c01c09d89$ce591980$6d9a96cb@ntl> (raw)

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,





view thread (2+ messages)  latest in thread

Message-ID: <002c01c09d89$ce591980$6d9a96cb@ntl>
Permalink:  ../002c01c09d89$ce591980$6d9a96cb@ntl/
Also on:    postgresql.org/message-id/002c01c09d89$ce591980$6d9a96cb@ntl

 · 

reply

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-sql@postgresql.org
  Cc: jaruwan@gits.net.th, pgsql-hackers@postgresql.org
  Subject: Re: ask for help !!! (emergency  case)
  In-Reply-To: <002c01c09d89$ce591980$6d9a96cb@ntl>
  References: <002c01c09d89$ce591980$6d9a96cb@ntl>

* 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