Thread: Direct particular index use as like oracle
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
Hi,
On Fri, Oct 11, 2024, 2:59 PM Sathish Reddy <sathishreddy.postgresql@gmail.com> wrote:
HiWe 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?
ThanksSathish Reddy
Regards,
Avi.
Try HexaRocket today for your Oracle to PostgreSQL Migrations.
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:HiWe 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?ThanksSathish ReddyRegards,Avi.Try HexaRocket today for your Oracle to PostgreSQL Migrations.
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:HiWe 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?ThanksSathish ReddyRegards,Avi.Try HexaRocket today for your Oracle to PostgreSQL Migrations.
On Fri, Oct 11, 2024 at 6:59 AM Sathish Reddy <sathishreddy.postgresql@gmail.com> wrote:
HiWe 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.ThanksSathish 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.
When you say failed what does it say?
Sent from Outlook for Android
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
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:
HiWe 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.ThanksSathish 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.