Re: virtual table

From: Richard Huxton <dev(at)archonet(dot)com>
To: Tomasz Myrta <jasiek(at)klaster(dot)net>, PGSQL-SQL <pgsql-sql(at)postgresql(dot)org>
Subject: Re: virtual table
Date: 2003-06-23 08:29:23
Message-ID: 200306230929.24372.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Sunday 22 Jun 2003 10:23 pm, Tomasz Myrta wrote:
> 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.

Look into views - you'll need to provide triggers to handle the
update/inserts.

--
Richard Huxton

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tomasz Myrta 2003-06-23 08:39:16 Re: virtual table
Previous Message AgentM 2003-06-23 08:10:10 convert_numeric_to_scalar: unsupported type 354210