pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Julie Nishimura <juliezain@hotmail.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: write on standby
Date: Tue, 5 Mar 2019 15:49:10 -0800
Message-ID: <24a705d3-4fc0-c771-589c-895915946cdf@aklaver.com> (raw)
In-Reply-To: <BYAPR08MB50145DC562499B91C106771FAC720@BYAPR08MB5014.namprd08.prod.outlook.com>
References: <BYAPR08MB50145DC562499B91C106771FAC720@BYAPR08MB5014.namprd08.prod.outlook.com>

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




view thread (6+ messages)  latest in thread

Message-ID: <24a705d3-4fc0-c771-589c-895915946cdf@aklaver.com>
Permalink:  ../24a705d3-4fc0-c771-589c-895915946cdf@aklaver.com/
Also on:    postgresql.org/message-id/24a705d3-4fc0-c771-589c-895915946cdf@aklaver.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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, juliezain@hotmail.com
  Subject: Re: write on standby
  In-Reply-To: <24a705d3-4fc0-c771-589c-895915946cdf@aklaver.com>
  References: <BYAPR08MB50145DC562499B91C106771FAC720@BYAPR08MB5014.namprd08.prod.outlook.com> <24a705d3-4fc0-c771-589c-895915946cdf@aklaver.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