pgAgent and WAL streaming

From: Keith Ouellette <Keith(dot)Ouellette(at)Airgas(dot)com>
To: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: pgAgent and WAL streaming
Date: 2013-02-14 03:10:07
Message-ID: 417C5AF7C228B94490192951394BEFE7AD7C2C@AIPHLEXDAG01B.airgas.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I am relatively new to PostgreSQL. I recently got PostgreSQL 9.2 up in a redundant WAL streaming configuration. The replication is working well. Failing over to the "standby" server is also working well using the trigger file, for when the "production" server fails.

The question I have is we are looking on using pgAgent to schedule running an SQL script periodically. How does that work in this scenario? I am assuming that the "production" server will just execute the script based on the configured schedule. But the standby user can not execute the same script as that would be duplicated. Does pgAgent know not to run when the database is in "archive" mode automatically? In the event of a "production" failure, the "archive" (now promoted to "production") would have to continue the schedule.

Is there a way to accomplish what we are attempting to do?

The SQL script updates a remote database.

Thanks,

Keith

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Daniel Staal 2013-02-14 03:23:48 Re: pgAgent and WAL streaming
Previous Message Jack Kaufman 2013-02-12 15:05:29 Re: Function name