Thread: The tables partitioning affects the indexes?

The tables partitioning affects the indexes?

From
DrakoRod
Date:
Hi everybody!

I have a huge table that we need partitioning, partitioning rule is a
attribute date every 4 months.

My Master table have a many indexes. I need create indexes (with the same
indexes the master table) in the inherits tables? or this no affects
functionality of the indexes?

Best regards.

Thanks!



--
View this message in context:
http://postgresql.1045698.n5.nabble.com/The-tables-partitioning-affects-the-indexes-tp5820572.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.


Re: The tables partitioning affects the indexes?

From
Shreeyansh dba
Date:


On Fri, Sep 26, 2014 at 2:50 AM, DrakoRod <drakoflames@hotmail.com> wrote:
Hi everybody!

I have a huge table that we need partitioning, partitioning rule is a
attribute date every 4 months.

My Master table have a many indexes. I need create indexes (with the same
indexes the master table) in the inherits tables? or this no affects
functionality of the indexes?

Best regards.

Thanks!



I think there is no need of index on master table however master table does not contain any record in it.

For better performance create index on child tables as they were on master table.




Best Regards.

Venkataramana Aitla
 



--
View this message in context: http://postgresql.1045698.n5.nabble.com/The-tables-partitioning-affects-the-indexes-tp5820572.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.


--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin


Re: The tables partitioning affects the indexes?

From
jaime soler
Date:
El jue, 25-09-2014 a las 14:20 -0700, DrakoRod escribió:
> Hi everybody!
>
> I have a huge table that we need partitioning, partitioning rule is a
> attribute date every 4 months.
>
> My Master table have a many indexes. I need create indexes (with the same
> indexes the master table) in the inherits tables? or this no affects
> functionality of the indexes?
>
> Best regards.
>
> Thanks!

Reference:
http://www.postgresql.org/docs/9.3/static/tutorial-inheritance.html
"Note: Although inheritance is frequently useful, it has not been
integrated with unique constraints or foreign keys, which limits its
usefulness. See Section 5.8 for more detail."

I think, you should create index in the child tables.
>
>
>
> --
> View this message in context:
http://postgresql.1045698.n5.nabble.com/The-tables-partitioning-affects-the-indexes-tp5820572.html
> Sent from the PostgreSQL - admin mailing list archive at Nabble.com.
>
>




Re: The tables partitioning affects the indexes?

From
DrakoRod
Date:
Perfect! Now understand!

Thanks!!



-----
Dame un poco de fe, eso me bastará.
Rozvo Ware Solutions
--
View this message in context:
http://postgresql.1045698.n5.nabble.com/The-tables-partitioning-affects-the-indexes-tp5820572p5821011.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.


Re: The tables partitioning affects the indexes?

From
DrakoRod
Date:
Ok!
The master table many tuples, so the queries become very slow, we need
partitioning it because the table is huge. Is for that my question. So we
create indexes and permissions in the child tables!

Thank you!



-----
Dame un poco de fe, eso me bastará.
Rozvo Ware Solutions
--
View this message in context:
http://postgresql.1045698.n5.nabble.com/The-tables-partitioning-affects-the-indexes-tp5820572p5821010.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.