Re: BUG #14948: cost overflow

From: Jan Schulz <jasc(at)gmx(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14948: cost overflow
Date: 2017-12-07 18:00:54
Message-ID: CAAc324jRUEjS4W+16G-G7pUYT7ssj0sCws0xtC1=+ooZ4ndY2w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hello,

just some update on "how" that happend. Our current hypothesis:

* We have one parallel job was growing so big that postgresql consumed
too much memory (we use 'work_mem = 2GB'). This job is part of a
process which creates a 'm_dim_next' schema which in the end would be
switched to 'm_dim'. (note that the old 'm_dim' schema is not written
to during the whole process which creates m_dim_next, it gets dropped
after the schema switch in the last step in that process: m_dim ->
m_dim_old, m_dim_next -> m_dim, drop m_dim_old)
* The OOM killer killed postgresql (please note that we have
configured postgres with almost no data security)
* This in turn would result "somehow" in some funny
data/statistics/whatever on the table in m_dim
* This in turn would result in wrong plans which in turn would result
in OOM when processes run which touched the table in m_dim

So our current understanding is that when we fix the memory issue in
the first step we will also not anymore have problems in the other
processes. We are currently looking into that.

Best regards,

Jan
--
Jan Schulz
mail: jasc(at)gmx(dot)net
web: http://www.katzien.de

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2017-12-07 18:18:47 Re: BUG #14948: cost overflow
Previous Message Robert Haas 2017-12-07 17:59:06 Re: Fwd: [BUGS] pg_trgm word_similarity inconsistencies or bug