hmm dokladnie to co wyzje napisalem czyli komunikat
Cytat
ERROR: a column definition list is required for functions returning "record"
i nic nie zwraca.. sam error
oczywiscie dodam na wszleki wypadek, ze w tabeli jest kilka rekorodw, nazwa sie zgadza itp, coby nie bylo

z tresci bledu mozna wnioskowac, ze baza chca aby rekord mial zdefiniowane kolumny, ale
a. nie wiem jak to zrobic
b. nigdzie w dokumentacjach tego nie moge znalezc ani w sieci
c. zaden z przykladow jakie widzialem w sieci nic takiego nie mial
tzn probowalem "into rec.login, rec.pass" bo takie cos tez widzailem w przykladach ale nici z tego :/ to samo :/
///edit
cholerka.. chyba mam :/
7.4 docs
http://www.postgresql.org/docs/7.4/interac...clarations.htmlCytat
One should also realize that when a PL/pgSQL function is declared to return type record, this is not quite the same concept as a record variable, even though such a function may well use a record variable to hold its result. In both cases the actual row structure is unknown when the function is written, but for a function returning record the actual structure is determined when the calling query is parsed, whereas a record variable can change its row structure on-the-fly.
7.2 docs
http://www.postgresql.org/docs/7.2/interac...clarations.htmlCytat
Thus, for example, one cannot declare a function returning RECORD.
czyli po prostu nie moge zwrocic rekordu w 7.2 podczas gdy 7.4 robi tak jak powinno czyli w locie zapisuje record tak jak myslalem... :/