Copy row from table to table - Mailing list pgsql-general

From Kall, Bruce A.
Subject Copy row from table to table
Date
Msg-id 41BF2765.4080308@mayo.edu
Whole thread Raw
Responses Re: Copy row from table to table  (Michael Fuhr <mike@fuhr.org>)
List pgsql-general
What is the easiest way to copy a particular row from one table to
another (assuming all the columns are exactly the same).  I want to
maintain a table ('backup_table') that has rows I have (or will be)
deleting from my 'original_table'. (Both tables have the same 68 columns).

I've tried

INSERT INTO backup_table SELECT * FROM original_table WHERE id='2305'

COPY seems to only work between tables and files.

Thanks,
Bruce

pgsql-general by date:

Previous
From: Christian Kratzer
Date:
Subject: Re: increasing max_connections on freebsd
Next
From: Együd Csaba (Freemail)
Date:
Subject: Re: Insufficient memory for this operation.