why I need col. def. list with setof record?

From: Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz>
To: pgsql-hackers(at)postgresql(dot)org
Subject: why I need col. def. list with setof record?
Date: 2003-12-05 14:05:49
Message-ID: Pine.LNX.4.44.0312051455100.8131-100000@kix.fsv.cvut.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello

I know so I need to use column definition list when I have SRF
function without def of own type. But I don't understand why. In my SRF
function I specify all informations about columns?

TupleDescInitEntry (tupdesc, 1, "idn", INT4OID, -1, 0, false);
TupleDescInitEntry (tupdesc, 2, "idv", VARCHAROID, -1, 0, false);

Why I have to duplicate to?

Thank You
Pavel Stehule

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Wildpaner 2003-12-05 14:59:31 [BUG/PATCH] backend crashes during authentication if data/global/pg_pwd is empty
Previous Message Oleg Bartunov 2003-12-05 12:10:41 OpenFTS-perl-0.35 released