pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: scottvolkers@gmail.com
Subject: BUG #16148: Query on Large table hangs in ETL flows and gives out of memory when run in pgAdmin4
Date: Wed, 04 Dec 2019 14:19:56 +0000
Message-ID: <16148-ed1cc02fdf2200ec@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      16148
Logged by:          Scott Volkers
Email address:      scottvolkers@gmail.com
PostgreSQL version: 9.5.15
Operating system:   PostgreSQL 9.5.15 on x86_64-pc-linux-gnu, compiled
Description:        

We have a large table and the error occurs with this where clause:
FROM "elliedb"."documentlog" WHERE dcmodifiedutc>(extract(epoch from
TIMESTAMP '2019-11-15 11:30:51')*1000)

When we reduce the scope to current time - 4 hours the query works within 44
seconds.
where dcmodifiedutc > '1575282651000'

Is this expected?   Is this a version issue being only 9.5?    It seems the
timestamp conversion would be done once and applied to the filter, but it
seems to ballooning the query result being aggregated for the where
clause?
Thank you.



view thread (4+ messages)  latest in thread

Message-ID: <16148-ed1cc02fdf2200ec@postgresql.org>
Permalink:  ../16148-ed1cc02fdf2200ec@postgresql.org/
Also on:    postgresql.org/message-id/16148-ed1cc02fdf2200ec@postgresql.org

 · 

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-bugs@postgresql.org
  Cc: noreply@postgresql.org, scottvolkers@gmail.com
  Subject: Re: BUG #16148: Query on Large table hangs in ETL flows and gives out of memory when run in pgAdmin4
  In-Reply-To: <16148-ed1cc02fdf2200ec@postgresql.org>
  References: <16148-ed1cc02fdf2200ec@postgresql.org>

* 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