pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Arne Roland <A.Roland@index.de>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: missing indexes in indexlist with partitioned tables
Date: Thu, 23 Sep 2021 17:20:08 +0000
Message-ID: <c3b2408b7a39433b8230bbcd02e9f302@index.de> (raw)

Hi,


I did a bit of testing today and noticed that we don't set indexlist properly at the right time in some cases when using partitioned tables.


I attached a simple case where the indexlist doesn't seems to be set at the right time. get_relation_info in plancat.c seems to process it only after analyzejoins.c checked for it.


Can someone explain to me why it is deferred at all?


Regards

Arne

Attachments:

  [application/sql] indexlist_to_late.sql (296B, ../c3b2408b7a39433b8230bbcd02e9f302@index.de/3-indexlist_to_late.sql)
  download

view thread (31+ messages)  latest in thread

Message-ID: <c3b2408b7a39433b8230bbcd02e9f302@index.de>
Permalink:  ../c3b2408b7a39433b8230bbcd02e9f302@index.de/
Also on:    postgresql.org/message-id/c3b2408b7a39433b8230bbcd02e9f302@index.de

 · 

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-hackers@postgresql.org
  Cc: A.Roland@index.de
  Subject: Re: missing indexes in indexlist with partitioned tables
  In-Reply-To: <c3b2408b7a39433b8230bbcd02e9f302@index.de>

* 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