Re: write on standby - Mailing list pgsql-general

From Adrian Klaver
Subject Re: write on standby
Date
Msg-id 24a705d3-4fc0-c771-589c-895915946cdf@aklaver.com
Whole thread Raw
In response to write on standby  (Julie Nishimura <juliezain@hotmail.com>)
List pgsql-general
On 3/5/19 3:34 PM, Julie Nishimura wrote:
> Hello there,
> Is it possible for a test app to connect to the standby dB of an 
> active-Standby dB pair?  While both continue to be connected and 
> replicating? What if it’s needed to write tmp tables that are later 
> dropped? Can it be done in hot standby scenario on standby? Version is 9.6.2

No:

https://www.postgresql.org/docs/9.6/hot-standby.html

26.5.1. User's Overview

In particular:

"Data Definition Language (DDL) - CREATE, DROP, ALTER, COMMENT. This 
restriction applies even to temporary tables, because carrying out these 
operations would require updating the system catalog tables."

> 
> Thanks


-- 
Adrian Klaver
adrian.klaver@aklaver.com


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: [External] LIMIT not showing all results
Next
From: Matthew Pounsett
Date:
Subject: Re: [External] LIMIT not showing all results