Обсуждение: Synchronize Postgres with an other database

Поиск
Список
Период
Сортировка

Synchronize Postgres with an other database

От
"hue"
Дата:

Hi,

 

I would like to read Postgres transaction log files to update an other database with an old structure base on files.

 

The only solution I found is to read WAL files, but, the only way is with c program, I did not find a way to use WAL files with java program.

 

Regards, Olivier.

 

 

Re: Synchronize Postgres with an other database

От
David Stanaway
Дата:
How many changes per minute are you planning for? Looking to the WAL
files seems very low level, and I don't imagine it would be a good idea
unless performance dictated it.

Have you thought of setting up a trigger to log inserts/updates/deletes
into a transaction table/tables that you can poll with a java
application or whatever other language you want?


On Mon, 2005-09-26 at 17:55 +0200, hue wrote:
> Hi,
> 
>  
> 
> I would like to read Postgres transaction log files to update an other
> database with an old structure base on files.
> 
>  
> 
> The only solution I found is to read WAL files, but, the only way is
> with c program, I did not find a way to use WAL files with java
> program.
> 
>  
> 
> Regards, Olivier.
> 
>  
> 
>  
> 
>