Oracle will also use partitioning optimizations in that case. See partition pruning[1].
[1] https://docs.oracle.com/en/database/oracle/oracle-database/1...
Re:Oracle vs. PostgreSQL: First Glance
by philliphaydon on Monday May 04, 2020 @11:55AM
(#23069516)
Awesome. Thanks for the info. I wasn’t sure if it was supported or not.
Re:Oracle vs. PostgreSQL: First Glance
by takacsroland on Monday May 04, 2020 @06:09PM
(#23073952)
Oracle will also use the partitions.
Regarding your other input, thanks, I will have a look.
For example, in the partitioning, he states:
> SELECT * FROM sales_p_america;
But doesn't mention that if you select based on a region, it will use only the partition table.
> SELECT * FROM sales WHERE sales_region IN ('USA','CANADA');
While I believe if you do the equiv in Oracle it wont use the partition table?
---
The section on table inheritance isn't right either.
https://www.postgresql.org/docs/12/tutorial-inheritance.html
What he demonstrated was just a way of making additional tables based on existing ones. While inheritance works sort of like partitioning except the child tables can contain additional data. Selecting from the parent will display all data from the child.