Re: Can I COPY a VIEW to a File

From: Kumar S <ps_postgres(at)yahoo(dot)com>
To: Oliver Fromme <olli(at)lurza(dot)secnetix(dot)de>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Can I COPY a VIEW to a File
Date: 2004-09-24 16:49:10
Message-ID: 20040924164910.86977.qmail@web51401.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Thank you Oliver.
It worked.

-Kumar.

--- Oliver Fromme <olli(at)lurza(dot)secnetix(dot)de> wrote:

>
> Kumar S wrote:
> > Hi Group,
> > I want to copy a view to a output file.
> >
> > => copy test_uniqueprobeset to
> > '/temp/test_uniqueprobeset_focus';
> > ERROR: cannot copy from view
> > "test_uniqueprobeset_focus"
> >
> > Is there are wat to capture content of the view.
>
> I would suggest you SELECT the view INTO a temporary
> table,
> then COPY that table. See the SQL reference manual
> on the
> "SELECT INTO" command.
>
> Best regards
> Oliver
>
> --
> Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr.
> 2, 80538 Mnchen
> Any opinions expressed in this message may be
> personal to the author
> and may not necessarily reflect the opinions of
> secnetix in any way.
>
> "That's what I love about GUIs: They make simple
> tasks easier,
> and complex tasks impossible."
> -- John William Chambless
>



__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Zhenchang Xing 2004-09-24 17:34:24 can connectby() deal with cyclic graph?
Previous Message Oliver Fromme 2004-09-24 16:26:02 Re: Can I COPY a VIEW to a File