From: Joshua D. Drake <jd@commandprompt.com>
To: Theo Galanakis <Theo.Galanakis@lonelyplanet.com.au>
Cc: pgsql-admin@postgresql.org
Subject: Re: Command prompt replication.
Date: Wed, 19 Jan 2005 21:57:59 -0800
Message-ID: <41EF4867.8000907@commandprompt.com> (raw)
In-Reply-To: <D1444817B78AB546BF2896C2B70E7F04371E7F@ganesh.au.lpint.net>
References: <D1444817B78AB546BF2896C2B70E7F04371E7F@ganesh.au.lpint.net>
Theo Galanakis wrote:
> I also should add....
>
> This is the results of slave_stat when running on the slave, this
> looks peculiar:
Hello,
O.k. something is not right. Could you please post a request
to support@commandprompt.com with the following information:
1. master postgresql.conf replication configuration, we don't
need the whole postgresql.conf
2. slave postgresql.conf replication configuration, we don't need
the whole postgresql.conf
3. The schema of the table you are inserting into
4. The schema of the table that is supposed to be recieving the updates.
Thanks.
Joshua D. Drake
Command Prompt, Inc.
>
> /usr/local/pgsql/bin/slave_stat /usr/local/pgsql/mcp_data 0
> Sync: DESYNC
> First record in queue: 0
> Last received record: 0
> Last restored record: 0
>
> -----Original Message-----
> *From:* Theo Galanakis
> *Sent:* Thursday, 20 January 2005 2:09 PM
> *To:* pgsql-admin@postgresql.org
> *Subject:* [ADMIN] Command prompt replication.
>
> Hi,
> I'm evaluating command prompts replication server and have
> an issue I need help to resolve.
>
> I have install the master and slave from the postgres code
> supplied from command prompt. Have created a benchpg database
> which is automatically created by the contrib program, pg_bench.
> Then proceeded to copy that database to the slave via pg_dump, etc...
>
> Im currently running both databases on separate servers.
> And I have started up :
>
> /usr/local/pgsql/bin/mcp_server -c
> /usr/local/pgsql/etc/mcp_server.conf -l /var/log/mcp_server.log &
>
> Based on the output both pg servers connect to the mcp
> server successfully..
>
> Ok..
>
> Not testing the replication by inserting a record into the
> master database table branches.
>
> As soon as I enter this record /var/log/mcp_server.log is
> populated with :
>
>
> DEBUG_MSG: MCP-M-Recv| recno: 16003065 txnid: 85 datalen:
> 25 flags: TABLE_BEGIN TABLE_LIST TABLE_END
>
> DEBUG: Store master tables list in
> /usr/local/pgsql/mcp_data/txlog_mcp_master_table_list
> DEBUG_MSG: MCP-M-Recv| recno: 16003066 txnid: 86
> datalen: 4 flags: TXBEGIN DATA
>
> DEBUG_MSG: MCP-M-Recv| recno: 16003067 txnid: 86
> datalen: 4 flags: DATA
>
> DEBUG_MSG: MCP-M-Recv| recno: 16003068 txnid: 86 datalen:
> 44 flags: DATA
>
> DEBUG_MSG: MCP-M-Recv| recno: 16003069 txnid: 86 datalen:
> 12 flags: DATA
>
> DEBUG_MSG: MCP-M-Recv| recno: 16003070 txnid: 86 datalen:
> 16 flags: DATA
>
> DEBUG_MSG: MCP-M-Recv| recno: 16003071 txnid: 86
> datalen: 4 flags: DATA TXEND
>
> DEBUG_MASTER: MCP Receive TXEND => mcp_ack_recno: 16003071
> DEBUG_MASTER: MCP Send ACK to Master => ACK reco: 16003071,
> mcp_ack_recno = 0
> DEBUG_MSG: MCP-M-Send| recno: 16003071 txnid: 0
> datalen: 0 flags: !ACK
>
> DEBUG_SLAVE: 0: TABLE_LIST => SKIP recno: 16003065
> DEBUG_SLAVE: MCP Send TXBEGIN to Slave(0)
> DEBUG_SLAVE: MCP send TXEND to Slave(0)
> DEBUG_SLAVE: 0, Send INCSKIP
> DEBUG_MSG: MCP-S(0)-Send| recno: 16003071 txnid: 86
> datalen: 4 flags: DATA TXEND
>
> DEBUG_MSG: MCP-S(0)-Recv| recno: 16003071 txnid: 0
> datalen: 0 flags: !ACK
>
> DEBUG_SLAVE: 0: Recv ACK from Slave(0) => Slave(0).vrecno = 16003071
>
>
> On the slave server the /var/log/postgresql.log is polutated with
> this:
>
> LOG: INCSKIP to 16003071
> LOG: SET mcp_ack_recno: 16003071
>
> Based on my limited knowledge and little documentation provided by
> command prompt, all looks well??? However the record I added to
> the master has not been copied to the slave.
>
> Regards,
> Theo
>
> ______________________________________________________________________
> This email, including attachments, is intended only for the addressee
> and may be confidential, privileged and subject to copyright. If you
> have received this email in error, please advise the sender and delete
> it. If you are not the intended recipient of this email, you must not
> use, copy or disclose its content to anyone. You must not copy or
> communicate to others content that is confidential or subject to
> copyright, unless you have the consent of the content owner.
>
--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-667-4564 - jd@commandprompt.com - http://www.commandprompt.com
PostgreSQL Replicator -- production quality replication for PostgreSQL
Attachments:jd.vcf (text/x-vcard, 283B) download
begin:vcard
fn:Joshua Drake
n:Drake;Joshua
org:Command Prompt, Inc.
adr:;;PO Box 215 ;Cascade Locks;OR;97014;US
email;internet:jd@commandprompt.com
title:Consultant
tel;work:503-667-4564
tel;fax:503-210-0334
x-mozilla-html:FALSE
url:http://www.commandprompt.com
version:2.1
end:vcard
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-admin@postgresql.org
Cc: jd@commandprompt.com, Theo.Galanakis@lonelyplanet.com.au
Subject: Re: Command prompt replication.
In-Reply-To: <41EF4867.8000907@commandprompt.com>
References: <D1444817B78AB546BF2896C2B70E7F04371E7F@ganesh.au.lpint.net> <41EF4867.8000907@commandprompt.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