pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Latest checkpoint's NextOID
3+ messages / 3 participants
[nested] [flat]

* Latest checkpoint's NextOID
@ 2014-09-25 10:12  AL-Temimi, Muthana <muthana.al-temimi@tu-harburg.hamburg.de>
  0 siblings, 1 reply; 3+ messages in thread

From: AL-Temimi, Muthana @ 2014-09-25 10:12 UTC (permalink / raw)
  To: pgsql-admin

Hello Admins,

i'm using 9.1 PostgreSQL and looking for a function to write WAL to table in order to save all the data into database and to make a recovery on the 2nd DB Server.

The idea is to help recovery on other server and get the same OID on the 2nd Server and that's by using the Latest checkpoint's NextOID from the first Server.

Any help will be helpful

Regards

Muthana

Tel.:  +49.40.42878.2338
E-Mail: m.al@tu-harburg.de<mailto:m.al@tu-harburg.de>

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Latest checkpoint's NextOID
@ 2014-09-25 13:36  Simon Riggs <simon@2ndquadrant.com>
  parent: AL-Temimi, Muthana <muthana.al-temimi@tu-harburg.hamburg.de>
  0 siblings, 1 reply; 3+ messages in thread

From: Simon Riggs @ 2014-09-25 13:36 UTC (permalink / raw)
  To: AL-Temimi, Muthana <muthana.al-temimi@tu-harburg.hamburg.de>; +Cc: pgsql-admin

On 25 September 2014 11:12, AL-Temimi, Muthana
<muthana.al-temimi@tu-harburg.hamburg.de> wrote:

> i’m using 9.1 PostgreSQL and looking for a function to write WAL to table in
> order to save all the data into database and to make a recovery on the 2nd
> DB Server.
>
>
>
> The idea is to help recovery on other server and get the same OID on the 2nd
> Server and that’s by using the Latest checkpoint's NextOID from the first
> Server.

A short explanation of what you're trying to do and what is wrong with
existing replication techniques would be the place to start.

-- 
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Latest checkpoint's NextOID
@ 2014-09-25 13:53  Scott Ribe <scott_ribe@elevated-dev.com>
  parent: Simon Riggs <simon@2ndquadrant.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Scott Ribe @ 2014-09-25 13:53 UTC (permalink / raw)
  To: AL-Temimi, Muthana <muthana.al-temimi@tu-harburg.hamburg.de>; +Cc: pgsql-admin

On 25 September 2014 11:12, AL-Temimi, Muthana
<muthana.al-temimi@tu-harburg.hamburg.de> wrote:

> i’m using 9.1 PostgreSQL and looking for a function to write WAL to table in
> order to save all the data into database and to make a recovery on the 2nd
> DB Server.
> 
> 
> 
> The idea is to help recovery on other server and get the same OID on the 2nd
> Server and that’s by using the Latest checkpoint's NextOID from the first
> Server.

Why not use WAL-shipping or streaming replication the normal way?

You do realize that everything that goes into tables goes into the WAL, so you write WAL into a table, the table gets logged to WAL, and then that WAL... That's just not going to work, unless you use an unlogged table, in which case you have a replication/recovery mechanism which is inherently unreliable, which is pretty worthless. So the whole idea seems to be unrealistic.

Now, if you want to log changes to tables into a table, that's doable via triggers, usually for audit purposes, but it can be used to keep replicas in synch. It's just that it's hard to imagine what you'd do that Slony-I doesn't already do, assuming you even need its features as opposed to streaming replication.

-- 
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice






-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2014-09-25 13:53 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-09-25 10:12 Latest checkpoint's NextOID AL-Temimi, Muthana <muthana.al-temimi@tu-harburg.hamburg.de>
2014-09-25 13:36 ` Simon Riggs <simon@2ndquadrant.com>
2014-09-25 13:53   ` Scott Ribe <scott_ribe@elevated-dev.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox