Problems copying data to different database - Mailing list pgsql-general

From Ramakrishna Reddy
Subject Problems copying data to different database
Date
Msg-id CA5E157F5EFE1C4D9CCC5272E67F8781084AE3@rsi-che-mail01.induschennai.rsystems.com
Whole thread Raw
List pgsql-general
Hi,

My requirement is to archive records from main DB to the archive DB after certain period. Using Dblink facility, I'm
ableto perform any kind of activity on the archive DB, except copying from Table of MainDb to a Table of ArchiveDb. Is
itpossible to move the selective records using following kind of query: 

select dblink_exec ('dbname = ArchiveDb', 'insert into Archive_Table select * from To_Be_Archived_Table')

Request your suggestions to achieve this.

Thanks,
RamaKrishna.

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Data about rate of downloads
Next
From: peter pilsl
Date:
Subject: help with rules please