Re: How to copy a table?

From: Zak McGregor <zak(at)mighty(dot)co(dot)za>
To: "Jeff" <jklcom(at)mindspring(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to copy a table?
Date: 2001-03-27 03:37:33
Message-ID: 200103270337.FAA03309@zak.home.dom
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 26 Mar 2001 21:21:12 -0500
"Jeff" <jklcom(at)mindspring(dot)com> wrote:

> Hi,
>
> Can some one show me what's the best way to backup a table or copy a table?

Backing up is simple with pg_dump and pg_dumpall.

Copying a table (assuming within the same database) is also easy:

create table test as select * from other_table;

HTH

Zak

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Larry Rosenman 2001-03-27 03:38:09 Re: records zapped to null
Previous Message Zak McGregor 2001-03-27 03:36:14 Re: How to auto create a unique key for each newly added record?