Re: Simple question on fail over and config files

From: Sergey Konoplev <gray(dot)ru(at)gmail(dot)com>
To: Jorge Torralba <jorge(dot)torralba(at)gmail(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Simple question on fail over and config files
Date: 2013-08-06 02:25:40
Message-ID: CAL_0b1soQmiFvdSFhAzs+q90new4EAfhDSF_a95Y56=G907UeA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, Aug 5, 2013 at 10:29 AM, Jorge Torralba
<jorge(dot)torralba(at)gmail(dot)com> wrote:
> I have a primary and secondary running streaming replication with 9.2.
> Primary posgresql.conf file is slightly different than standby server conf
> file. If i create the trigger file to force the standby into primary mode,
> is there a way to make the new primary server use a different config file
> configured for a primary after it becomes the primary besides shutting it
> down and loading the new primary config file?

Unfortunately, there is no such a way.

> Or can we just leave it
> running as a primary using the config file it used as a standby?

Yes, you can.

You can also use the same config file for standby as on the master if
you does not do anything that requires a specific configuration on
standby, of course.

--
Kind regards,
Sergey Konoplev
PostgreSQL Consultant and DBA

Profile: http://www.linkedin.com/in/grayhemp
Phone: USA +1 (415) 867-9984, Russia +7 (901) 903-0499, +7 (988) 888-1979
Skype: gray-hemp
Jabber: gray(dot)ru(at)gmail(dot)com

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Albe Laurenz 2013-08-06 07:04:20 Re: relfrozenxid not getting reset even after manual VACUUM
Previous Message Gezeala M. Bacuño II 2013-08-05 23:41:12 Re: relfrozenxid not getting reset even after manual VACUUM