Skip site navigation (1) Skip section navigation (2)

Re: COPY is not working

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: COPY is not working
Date: 2010-04-30 19:50:03
Message-ID: 14785.1272657003@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec> writes:
> COPY is not working on latest HEAD?

I've added this to the COPY notes section:

   <para>
    <command>COPY</command> only deals with the specific table named;
    it does not copy data to or from child tables.  Thus for example
    <literal>COPY <replaceable class="parameter">table</> TO</literal>
    shows the same data as <literal>SELECT * FROM ONLY <replaceable
    class="parameter">table</></literal>.  But <literal>COPY
    (SELECT * FROM <replaceable class="parameter">table</>) TO ...</literal>
    can be used to dump all of the data in an inheritance hierarchy.
   </para>

			regards, tom lane

In response to

pgsql-hackers by date

Next:From: Stefan KaltenbrunnerDate: 2010-04-30 20:29:45
Subject: HS - odd process listing
Previous:From: Kevin GrittnerDate: 2010-04-30 19:21:35
Subject: Re: pg_start_backup and pg_stop_backup Re: Re: [COMMITTERS] pgsql: Make CheckRequiredParameterValues() depend upon correct

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group