pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@2ndquadrant.com>
To: Kapil Kr. Khandelwal <kapilk@cscape.in>
Cc: rod@iol.ie <rod@iol.ie>
Cc: pgadmin-support@postgresql.org <pgadmin-support@postgresql.org>
Subject: Re: Fwd: How to run query by command prompt in Postgres
Date: Thu, 21 Mar 2013 09:00:33 +0800
Message-ID: <514A5BB1.2000809@2ndquadrant.com> (raw)
In-Reply-To: <CAMDMQnBfyhzvua-j=FeKJvh7jpOBf2w+Quwo=CU5746tPs5HXA@mail.gmail.com>
References: <CAMDMQnCCQrVQG=0GW-qsq-Mk-vxa7quXbDZVSQ6_SntpersXFg@mail.gmail.com>
	<CAMDMQnAfAw4djXG5E5zoSbSfUq0yR8dCTsnb5uGKCU-ysWr-5w@mail.gmail.com>
	<4FEAF3BA.40707@iol.ie>
	<CAMDMQnAwurTAu4J=C5ucJW1tGtrsVgixJiXerZuxBTRDOX69aQ@mail.gmail.com>
	<CAMDMQnBfyhzvua-j=FeKJvh7jpOBf2w+Quwo=CU5746tPs5HXA@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgadmin-support>

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
<http://www.postgresql.org/docs/9.2/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
<http://www.postgresql.org/docs/9.2/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
<http://www.postgresql.org/docs/9.2/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

view thread (21+ messages)

Message-ID: <514A5BB1.2000809@2ndquadrant.com>
Permalink:  ../514A5BB1.2000809@2ndquadrant.com/
Also on:    postgresql.org/message-id/514A5BB1.2000809@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: craig@2ndquadrant.com, kapilk@cscape.in, rod@iol.ie, pgadmin-support@postgresql.org
  Subject: Re: Fwd: How to run query by command prompt in Postgres
  In-Reply-To: <514A5BB1.2000809@2ndquadrant.com>
  References: <CAMDMQnCCQrVQG=0GW-qsq-Mk-vxa7quXbDZVSQ6_SntpersXFg@mail.gmail.com> <CAMDMQnAfAw4djXG5E5zoSbSfUq0yR8dCTsnb5uGKCU-ysWr-5w@mail.gmail.com> <4FEAF3BA.40707@iol.ie> <CAMDMQnAwurTAu4J=C5ucJW1tGtrsVgixJiXerZuxBTRDOX69aQ@mail.gmail.com> <CAMDMQnBfyhzvua-j=FeKJvh7jpOBf2w+Quwo=CU5746tPs5HXA@mail.gmail.com> <514A5BB1.2000809@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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