Search Postgresql Archives

Problems copying data to different database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
 
My requirement is to archive records from main DB to the archive DB after certain period. Using Dblink facility, I'm able to perform any kind of activity on the archive DB, except copying from Table of MainDb to a Table of ArchiveDb. Is it possible 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.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux