Thread: Direct particular index use as like oracle

Direct particular index use as like oracle

From
Sathish Reddy
Date:
Hi
  We see direct use particular index in oracle.same we are trying to use in postgres.but every time we ae getting failed.please help us.


Thanks 
Sathish Reddy 

Re: Direct particular index use as like oracle

From
Avinash Vallarapu
Date:
Hi, 

On Fri, Oct 11, 2024, 2:59 PM Sathish Reddy <sathishreddy.postgresql@gmail.com> wrote:
Hi
  We see direct use particular index in oracle.same we are trying to use in postgres.but every time we ae getting failed.please help us.
Do you mean that you don't see an Index being considered by planner in Postgres, whereas a similar index is used in Oracle ? 

If the above is yes, can you provide some more information?



Thanks 
Sathish Reddy 


Regards,
Avi. 

Try HexaRocket today for your Oracle to PostgreSQL Migrations. 

Re: Direct particular index use as like oracle

From
Sathish Reddy
Date:

Yes, that is correct.

On Fri, Oct 11, 2024, 5:50 PM Avinash Vallarapu <avinash.vallarapu@gmail.com> wrote:
Hi, 

On Fri, Oct 11, 2024, 2:59 PM Sathish Reddy <sathishreddy.postgresql@gmail.com> wrote:
Hi
  We see direct use particular index in oracle.same we are trying to use in postgres.but every time we ae getting failed.please help us.
Do you mean that you don't see an Index being considered by planner in Postgres, whereas a similar index is used in Oracle ? 

If the above is yes, can you provide some more information?



Thanks 
Sathish Reddy 


Regards,
Avi. 

Try HexaRocket today for your Oracle to PostgreSQL Migrations. 

Re: Direct particular index use as like oracle

From
Avinash Vallarapu
Date:
Hi, 

On Fri, Oct 11, 2024, 4:24 PM Sathish Reddy <sathishreddy.postgresql@gmail.com> wrote:

Yes, that is correct.

Okay. You might have to provide some more information to get more help such as, the SQL, it's Query Plan and Table DDL.

If you have migrated this table from Oracle, you might have to perform a Vacuum Analyze on this table before you try anything.

Vacuum analyze <table>;


On Fri, Oct 11, 2024, 5:50 PM Avinash Vallarapu <avinash.vallarapu@gmail.com> wrote:
Hi, 

On Fri, Oct 11, 2024, 2:59 PM Sathish Reddy <sathishreddy.postgresql@gmail.com> wrote:
Hi
  We see direct use particular index in oracle.same we are trying to use in postgres.but every time we ae getting failed.please help us.
Do you mean that you don't see an Index being considered by planner in Postgres, whereas a similar index is used in Oracle ? 

If the above is yes, can you provide some more information?



Thanks 
Sathish Reddy 


Regards,
Avi. 

Try HexaRocket today for your Oracle to PostgreSQL Migrations. 

Re: Direct particular index use as like oracle

From
Keith
Date:


On Fri, Oct 11, 2024 at 6:59 AM Sathish Reddy <sathishreddy.postgresql@gmail.com> wrote:
Hi
  We see direct use particular index in oracle.same we are trying to use in postgres.but every time we ae getting failed.please help us.


Thanks 
Sathish Reddy 

There are no query hints in Postgres to direct it to use a particular index. Often it's the query itself that can be tuned to fix this happening or the ideal plan is actually being used vs the index you think you expect it should use.

Share the query plan and table structure and people might be able to help you out more.

Re: Direct particular index use as like oracle

From
vignesh kumar
Date:
When you say failed what does it say?


From: Keith <keith@keithf4.com>
Sent: Friday, October 11, 2024 6:06:57 PM
To: Sathish Reddy <sathishreddy.postgresql@gmail.com>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: Direct particular index use as like oracle
 


On Fri, Oct 11, 2024 at 6:59 AM Sathish Reddy <sathishreddy.postgresql@gmail.com> wrote:
Hi
  We see direct use particular index in oracle.same we are trying to use in postgres.but every time we ae getting failed.please help us.


Thanks 
Sathish Reddy 

There are no query hints in Postgres to direct it to use a particular index. Often it's the query itself that can be tuned to fix this happening or the ideal plan is actually being used vs the index you think you expect it should use.

Share the query plan and table structure and people might be able to help you out more.