X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 1B1AA30F1D8 for ; Sun, 22 Jun 2003 23:21:43 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 29033-02 for ; Sun, 22 Jun 2003 20:21:32 -0300 (ADT) Received: from serwer.skawsoft.com.pl (serwer.skawsoft.com.pl [213.25.37.66]) by svr1.postgresql.org (Postfix) with ESMTP id 018D530DBAB for ; Sun, 22 Jun 2003 20:21:32 -0300 (ADT) Received: from klaster.net (tv126.internetdsl.tpnet.pl [80.55.125.126]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id 6DB582B3DD for ; Mon, 23 Jun 2003 01:21:27 +0200 (CEST) Message-ID: <3EF61E44.2020601@klaster.net> Date: Sun, 22 Jun 2003 23:23:16 +0200 From: Tomasz Myrta User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.4b) Gecko/20030507 X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: PGSQL-SQL Subject: virtual table Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200306/248 X-Sequence-Number: 14006 Hi I have another virtual problem, currently without any examples ;-) Let's say we have some pl/pgsql function which puts result into table1. This flat table must be normalized and put into table2. Sometimes 1 row from table1 = 1 row from table2, but sometimes 1 row from table1= 3 rows from table2. Data from table1 are transferrend into table2 using triggers. I found, I don't to have any data in table1. The question is: Is it possible to create virtual table in Postgresql? Virtual - means it won't contain any columns nor data, but trigger doing all the job. Regards, Tomasz Myrta