pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mladen Gogala <gogala.mladen@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Performance issue after creating partitions
Date: Wed, 24 Aug 2022 22:55:04 -0400
Message-ID: <2bb350ef-2d9f-60b3-e41a-838b50f94304@gmail.com> (raw)
In-Reply-To: <10FAC7AB-09D1-4013-BB3C-79AA3AEDE374@gmail.com>
References: <10FAC7AB-09D1-4013-BB3C-79AA3AEDE374@gmail.com>

On 8/24/22 18:41, Teja Jakkidi wrote:
> trunc(order_date) = to_date(’2022-04-01’

You cannot have expression on the left side if you want partition 
pruning. This is elementary mistake.

-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com

view thread (8+ messages)  latest in thread

Message-ID: <2bb350ef-2d9f-60b3-e41a-838b50f94304@gmail.com>
Permalink:  ../2bb350ef-2d9f-60b3-e41a-838b50f94304@gmail.com/
Also on:    postgresql.org/message-id/2bb350ef-2d9f-60b3-e41a-838b50f94304@gmail.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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: gogala.mladen@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Performance issue after creating partitions
  In-Reply-To: <2bb350ef-2d9f-60b3-e41a-838b50f94304@gmail.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