[SQL] VIEWs and TEMP tables problem

2006-02-16 Thread Antal Attila
? Has anybody got good ideas for solve this problem? This construction came to my mind, because I tried to solve my another question: http://groups.google.co.hu/group/pgsql.performance/browse_thread/thread/c7aec005f4a1f3eb/83fa0053cad33dea Thanks your ideas! Regards, Antal Attila

[SQL] Multi ordered select and indexing

2004-04-26 Thread Antal Attila
Hi! What is the simplest solution for this query type: SELECT * FROM tablename ORDER BY col1 ASC, col2 DESC; In our experience, postgres cannot use a multi-colum index on (col1, col2) in this situation. Is custom operator class the easiest solution, which can solve the reverse indexing on

[SQL] Own opclass and LIKE problem again!

2004-04-26 Thread Antal Attila
#x27;asd%' working as ((col >= 'asd'::text) AND (col < 'ase'::text)) I'd like to see the next: col /~~ 'asd%'working as ((col />= 'asd'::text) AND (col /< 'ase'::text)) Can somebody help us? Thanks in advance. Antal

[SQL] Multi ordered select and indexing

2004-04-23 Thread Antal Attila
Hi! We have a complex problematic area. What is the simplest solution for the next query type: SELECT * FROM tablename ORDER BY col1 ASC, col2 DESC; In our experience, postgres cannot use a multi-colum index on (col1, col2) in this situation, becouse there are different directions after