Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UITsC-0001eD-19 for pgadmin-support@arkaria.postgresql.org; Thu, 21 Mar 2013 01:00:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UITsB-0006UR-GU for pgadmin-support@arkaria.postgresql.org; Thu, 21 Mar 2013 01:00:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UITsA-0006UL-KP for pgadmin-support@postgresql.org; Thu, 21 Mar 2013 01:00:50 +0000 Received: from outmail148094.authsmtp.co.uk ([62.13.148.94]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UITs5-00084H-MC for pgadmin-support@postgresql.org; Thu, 21 Mar 2013 01:00:50 +0000 Received: from mail-c233.authsmtp.com (mail-c233.authsmtp.com [62.13.128.233]) by punt7.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id r2L10gJf033432; Thu, 21 Mar 2013 01:00:42 GMT Received: from ayaki.localdomain (124-169-200-231.dyn.iinet.net.au [124.169.200.231]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/) with ESMTP id r2L10Y1M085239 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 21 Mar 2013 01:00:38 GMT Message-ID: <514A5BB1.2000809@2ndquadrant.com> Date: Thu, 21 Mar 2013 09:00:33 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130219 Thunderbird/17.0.3 MIME-Version: 1.0 To: "Kapil Kr. Khandelwal" CC: "rod@iol.ie" , "pgadmin-support@postgresql.org" Subject: Re: Fwd: How to run query by command prompt in Postgres References: <4FEAF3BA.40707@iol.ie> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: multipart/alternative; boundary="------------080707040005050907030700" X-Server-Quench: bff0097b-91c2-11e2-a49c-0025907707a1 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZeVg0b BQteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadRtFagRbYFhD HGQLWldEUFx7WWN/ bwofbAdZfEtIVhto UEhXQFFTCwdtAxke B1BcUGVzd2xHBX54 YERhVz5ZWEx4dQgv FBhUFWQBN3ppaTMd TUFZIgFJIQdDLQJF alJ6XXMKZmUAN3su JQJhdwMpMjxTLSVT BxoQNUoVW1o+VhAj S0JKPTIwVVECDz8u KVQ/N1MGDQ4bIw05 Nl4kUFQUewcIDQhG AwlMBk0RH14aWyUx ABgy X-Authentic-SMTP: 61633235383639.1021:706 X-AuthFastPath: 0 (Was 255) X-AuthSMTP-Origin: 124.169.200.231/2525 X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-support Precedence: bulk Sender: pgadmin-support-owner@postgresql.org This is a multi-part message in MIME format. --------------080707040005050907030700 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 03/20/2013 08:21 PM, Kapil Kr. Khandelwal wrote: > Dear Team > > I want to a favour from your side. I want to implement clustering in > postgres on windows server. Please provide the list of steps. I want > the answers of followings doubts. > > 1. How to write archive command http://www.postgresql.org/docs/current/static/runtime-config-wal.html#GUC-ARCHIVE-COMMAND The cmd.exe "copy" command is one option. Any Windows command that'll do what you want and doesn't require user interaction can be invoked there, including custom-written scripts in vbscript, Python, Perl, etc. If in doubt, ask Google how do do what you want. > 2. How to log shipping from primary to stand by server http://www.postgresql.org/docs/current/static/warm-standby.html > 3. how to restore database at stand by server from archived files Also in http://www.postgresql.org/docs/current/static/warm-standby.html If you're having trouble understanding something in the documentation please explain what you've already tried, where you're getting stuck, and the SPECIFIC problem you're having in a post to the pgsql-general mailing list. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services --------------080707040005050907030700 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 03/20/2013 08:21 PM, Kapil Kr. Khandelwal wrote:
Dear Team

I want to a favour from your side. I want to implement clustering in postgres on windows server.  Please provide the list of steps. I want the  answers of followings doubts. 

1. How to write archive command
http://www.postgresql.org/docs/current/static/runtime-config-wal.html#GUC-ARCHIVE-COMMAND

The cmd.exe "copy" command is one option. Any  Windows command that'll do what you want and doesn't require user interaction can be invoked there, including custom-written scripts in vbscript, Python, Perl, etc. If in doubt, ask Google how do do what you want.
2. How to log shipping from primary to stand by server
http://www.postgresql.org/docs/current/static/warm-standby.html
3. how to restore database at stand by server from archived files
Also in http://www.postgresql.org/docs/current/static/warm-standby.html

If you're having trouble understanding something in the documentation please explain what you've already tried, where you're getting stuck, and the SPECIFIC problem you're having in a post to the pgsql-general mailing list.

-- 
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services
--------------080707040005050907030700--