Re: feature proposal ...

From: Rod Taylor <pg(at)rbt(dot)ca>
To: Hans-Jürgen Schönig <postgres(at)cybertec(dot)at>
Cc: eg(at)cybertec(dot)at, pgsql-hackers(at)postgresql(dot)org
Subject: Re: feature proposal ...
Date: 2005-09-21 13:46:00
Message-ID: 1127310360.94955.31.camel@home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> the problem is: COPY can write data returned by a SELECT statement to a
> file. our idea is to implement precisely that.
>
> example:
>
> COPY TO file_name USING some_select_statement;

I have run into plenty of cases where I wanted to dump part of a
structure and this could be used for that, but I've always found that
temporary tables were sufficient and equally SQL scriptable

CREATE TEMP TABLE tab AS SELECT ...; COPY tab TO file_name;
--

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hans-Jürgen Schönig 2005-09-21 14:01:30 Re: feature proposal ...
Previous Message Martijn van Oosterhout 2005-09-21 13:29:51 Re: passing parameters to CREATE INDEX