| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Karel Zak <zakkr(at)zf(dot)jcu(dot)cz> |
| Cc: | List pgsql-patches <pgsql-patches(at)postgresql(dot)org>, Hans-Jurgen Schonig <hs(at)cybertec(dot)at> |
| Subject: | Re: COPY view |
| Date: | 2005-10-13 20:48:36 |
| Message-ID: | 200510132048.j9DKmao08530@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-patches |
This has been saved for the 8.2 release:
http://momjian.postgresql.org/cgi-bin/pgpatches_hold
---------------------------------------------------------------------------
Karel Zak wrote:
>
> Hi,
>
> attached is a patch that implements "COPY view TO" feature.
>
> Karel
>
> Example:
>
> test=# CREATE VIEW vvv AS SELECT a.id, a.data AS d1, b.data AS d2 FROM
> tab a, tab2 b WHERE a.id=b.fk;
> CREATE VIEW
> test=# COPY vvv TO '/tmp/test';
> COPY
> test=# \! cat /tmp/test
> 1 aaa AAA
> 2 bbb BBB
> 3 ccc CCC
> 4 ddd DDD
>
>
> --
> Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
[ Attachment, skipping... ]
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2005-10-13 20:50:09 | Re: SQL/XML publishing function experimental patch II |
| Previous Message | Bruce Momjian | 2005-10-13 20:48:01 | Re: roundoff problem in time datatype |