![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
My question is whether anybody here is using partial indexes? |
#3
| |||
| |||
|
|
PostgreSQL has some rather strange indexes, like partial indexes: [...] My question is whether anybody here is using partial indexes? The documentation says that those indexes are good when one wants to avoid indexing common values, but having come from the world of Oracle RDBMS, I have never seen anything like that. Is anybody here really using this? Any experiences with this? |
#4
| |||
| |||
|
|
PostgreSQL has some rather strange indexes, like partial indexes: scott=> create index ename_ind on emp(ename) scott-> where deptno=10; CREATE INDEX scott= The index has "where" clause and indexes only the records having deptno=10. The database version is 8.3: |
#5
| |||
| |||
|
|
Mladen Gogala, 03.12.2009 06:17: PostgreSQL has some rather strange indexes, like partial indexes: scott=> create index ename_ind on emp(ename) scott-> where deptno=10; CREATE INDEX scott= The index has "where" clause and indexes only the records having deptno=10. The database version is 8.3: This is actually possible in Oracle as well: CREATE INDEX ename_ind ON EMP (CASE WHEN detpno = 10 THEN depto ELSE NULL END); As Oracle will not include the NULLs in the index in this case, you have essentially a partial index as well. Thomas |
![]() |
| Thread Tools | |
| Display Modes | |
| |