"Kayteck" <[EMAIL PROTECTED]> writes: > I have two tables joined by foreign key id_przelewu, and for some rows > results of queries with NATURAL JOIN and JOIN ... USING (...) differs ! I've > readed that NATURAL JOIN is only shorthand for the second method, but this > results shows that's not true:
Your two examples are not necessarily equivalent --- in particular, if id_przelewu isn't the only common column name in the two tables then NATURAL JOIN isn't equivalent to a join USING only id_przelewu. I would guess that there's some other column the NATURAL JOIN is trying to match, and there are no matches. If you think there's an actual bug here, you need to exhibit a complete test case, which this most certainly wasn't. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq