Re: export from views

From: John DeSoi <desoi(at)pgedit(dot)com>
To: Tomas Lanczos <lanczos(at)t-zones(dot)sk>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: export from views
Date: 2006-04-14 13:47:46
Message-ID: 1C558A70-1799-46AB-A14B-38C95280CA8F@pgedit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Apr 13, 2006, at 10:58 AM, Tomas Lanczos wrote:

> I am quite a newbie in the database business, so sorry for stupid
> questions.
> Is there any convenient and simple method/tool to export data from
> views to
> file, something like COPY TO (file) from a table?

One option is to create a temp table and then use COPY on the temp
table. Something like

CREATE TEMP TABLE temp_table AS SELECT * from some_view;

It would be really nice if copy worked on views directly.

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2006-04-14 13:47:47 Re: ilike and utf-8
Previous Message Raphael Bauduin 2006-04-14 13:16:01 ilike and utf-8