From: | wieck(at)debis(dot)com (Jan Wieck) |
---|---|
To: | dpeder(at)infoset(dot)cz (=?iso-8859-2?Q?Daniel_P=E9der?=) |
Cc: | pgsql-hackers(at)postgreSQL(dot)org, pgsql-sql(at)postgreSQL(dot)org |
Subject: | Re: [HACKERS] insertable views - not copy-able ? |
Date: | 1999-10-18 08:53:00 |
Message-ID: | m11d8XM-0003kLC@orion.SAPserv.Hamburg.dsh.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-sql |
>
> what about this:
> ( it would be nice to have it working, specially for copying values from files into table with default fields, having the default fields doing their job or initialising tables using reduced set of columns )
>
> mydb=> create sequence MYSEQ;
> CREATE
> mydb=> create table MYTAB ( ID int4 default nextval('MYSEQ'), NAME text );
> CREATE
> mydb=> create view MYVIEW as select name from MYTAB;
> CREATE
> mydb=> copy MYVIEW from stdin;
First this setup wouldn't work with INSERT too. The INSTEAD
rule for INSERT is missing. Second COPY isn't a rewritable
statement, and it will not become such since only commands
that have a rangetable and a targetlist can be handled by the
rewriter at all.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#========================================= wieck(at)debis(dot)com (Jan Wieck) #
From | Date | Subject | |
---|---|---|---|
Next Message | Oliver Elphick | 1999-10-18 11:33:52 | Re: [HACKERS] to_char(), md5() (long) |
Previous Message | Oleg Bartunov | 1999-10-18 08:28:32 | Re: [HACKERS] is it possible to use LIMIT and INTERSECT ? |
From | Date | Subject | |
---|---|---|---|
Next Message | Mark Wright | 1999-10-18 13:47:41 | Re: [SQL] NOT NULL and postgres 6.5.2 |
Previous Message | Dipankar Chakrabarti | 1999-10-18 06:05:02 | Pg_dump for a database with Procedural Language |