pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: rob stone <floriparob@tpg.com.au>
To: Dürr Software <info@fduerr.de>
To: pgsql-general@postgresql.org
Subject: Re: PgSQL 15.3: Execution plan not using index as expected
Date: Sat, 12 Aug 2023 12:25:36 +1000
Message-ID: <f91820f43eb45bab7e9d93b994a00985d9a28285.camel@tpg.com.au> (raw)
In-Reply-To: <e7534f4d-489f-e29f-9932-834853445814@fduerr.de>
References: <e7534f4d-489f-e29f-9932-834853445814@fduerr.de>

Hello,

> ---------------------------------------------------------------------
> -------------------------
>   PostgreSQL 9.3.4 on x86_64-unknown-linux-gnu, compiled by gcc
> (Debian 
> 4.8.3-2) 4.8.3, 64-bit
> 
> 
> ---------------------------------------------------------------------
> ------------------------------------------------
>   PostgreSQL 15.3 (Debian 15.3-1.pgdg120+1) on x86_64-pc-linux-gnu, 
> compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
> (1 Zeile)
> 
> 
9.3 plan
->  Index Scan using client_session_user_id_idx on client_session  

Looks like a collation issue given the difference in compilers used.
In the 9.3 plan the index is used.
Maybe try a reindex of the table.

HTH,
Rob






view thread (6+ messages)  latest in thread

Message-ID: <f91820f43eb45bab7e9d93b994a00985d9a28285.camel@tpg.com.au>
Permalink:  ../f91820f43eb45bab7e9d93b994a00985d9a28285.camel@tpg.com.au/
Also on:    postgresql.org/message-id/f91820f43eb45bab7e9d93b994a00985d9a28285.camel@tpg.com.au

 · 

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-general@postgresql.org
  Cc: floriparob@tpg.com.au, info@fduerr.de
  Subject: Re: PgSQL 15.3: Execution plan not using index as expected
  In-Reply-To: <f91820f43eb45bab7e9d93b994a00985d9a28285.camel@tpg.com.au>
  References: <e7534f4d-489f-e29f-9932-834853445814@fduerr.de> <f91820f43eb45bab7e9d93b994a00985d9a28285.camel@tpg.com.au>

* 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