Re: Server goes to Recovery Mode when run a SQL

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: PegoraroF10 <marcos(at)f10(dot)com(dot)br>, pgsql-general(at)postgresql(dot)org
Subject: Re: Server goes to Recovery Mode when run a SQL
Date: 2019-02-04 01:07:09
Message-ID: 20190204010709.GC1881@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Feb 03, 2019 at 10:05:46AM -0800, Adrian Klaver wrote:
> On 2/3/19 8:32 AM, PegoraroF10 wrote:
>> I have a complex query which puts my server in recovery mode every time I
>> run it.
>> I don´t need to say that recovery mode is a situation you don´t want your
>> server goes to.

Do you mean that your server crashes after running a SQL query? That
could be a bug.

> Well actually that is how standby_servers run:
>
> https://www.postgresql.org/docs/11/warm-standby.html
>
> "... while each standby server operates in continuous recovery mode, reading
> the WAL files from the primary."
>
> Is this server a standby?

If you could post a self-contained test case, that would be really
helpful to see if there is an actual bug. You can obfuscate the
schema if need be, as long as the problem can be reproduced that's
fine.
--
Michael

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Syed Jafri 2019-02-04 05:34:57 JSONB Array of Strings (with GIN index) versus Split Rows (B-Tree Index)
Previous Message Adrian Klaver 2019-02-03 18:05:46 Re: Server goes to Recovery Mode when run a SQL