[GENERAL] index usage in various scenarious

2009-04-10 Thread adam.slachta
Hello, QUESTION1: Can somebody clarify in what of the proposed scenarios is the following index used? Any further comment will be greatly appreciated. QUESTION2: Does any other scenarios when an index is NOT used (and someone might possibly expect it is used) come to your mind? Thank you v

Re: [GENERAL] UPDATE of several columns using SELECT statement

2009-03-17 Thread adam.slachta
Well, I should have been more specific and not use such a simplified example, which only lead you into wrong direction. What I am really tried to solve instead of UPDATE myFirstTable SET (fistCol, secCol) = ( SELECT anotherFistCol, anotherSecondCol FROM mySecondTable ) is this: x

[GENERAL] UPDATE of several columns using SELECT statement

2009-03-17 Thread adam.slachta
Hello, I am facing the following problem, nothing tough, I guess (hope)..think it should be some syntactical problem: 1. When trying to update two columns UPDATE myFirstTable SET (fistCol, secCol) = ( SELECT anotherFistCol, anotherSecondCol FROM mySecondTable ) I am getting: ERROR: s