Re: BUG #6266: Create temp tables on Slave - Mailing list pgsql-bugs

From Jaime Casanova
Subject Re: BUG #6266: Create temp tables on Slave
Date
Msg-id CAJKUy5i=UhfZ0VW3jXiPCgz53bfcko51cihWZoCw+nB+VW6n9g@mail.gmail.com
Whole thread Raw
In response to BUG #6266: Create temp tables on Slave  ("Sally" <sally.nayer@tedata.net>)
Responses Re: BUG #6266: Create temp tables on Slave  (Sally Nayer <sally.nayer@tedata.net>)
List pgsql-bugs
On Mon, Oct 24, 2011 at 8:48 AM, Sally <sally.nayer@tedata.net> wrote:
>
> The following bug has been logged online:
>
> Bug reference: =A0 =A0 =A06266
> Logged by: =A0 =A0 =A0 =A0 =A0Sally
> Email address: =A0 =A0 =A0sally.nayer@tedata.net
> PostgreSQL version: 9.1
> Operating system: =A0 Centos 5.5
> Description: =A0 =A0 =A0 =A0Create temp tables on Slave
> Details:
>
> We are Using replica (wal streaming replica)to replicate between Master a=
nd
> slave.
>
> We need to be able to create temp tables on Slave,
>

you can't. this isn't a bug but a known limitation and is documented here:
http://www.postgresql.org/docs/9.1/static/hot-standby.html#HOT-STANDBY-USERS

> Is there any workaround?
> How could we create temp database and tables on slave?
>

not with streaming replication

--=20
Jaime Casanova=A0 =A0 =A0 =A0=A0 www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitaci=F3n

pgsql-bugs by date:

Previous
From: "Sally"
Date:
Subject: BUG #6266: Create temp tables on Slave
Next
From: rihad
Date:
Subject: Re: BUG #6127: pg_restore failing: unexpected message type 0x58 during COPY from stdin