c language function

From: Engard Ferenc <fery(at)pons(dot)sote(dot)hu>
To: Postgresql sql <pgsql-sql(at)postgresql(dot)org>
Subject: c language function
Date: 1999-01-03 00:30:34
Message-ID: Pine.LNX.3.96.990103011532.26879A-100000@Pons.sote.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi all,

I looked through all the docs in the postgresql binary package (debian),
and didn't found a good description about how to write an sql function
in 'c' which accepts an arbitrary table as an argument. The only function
which the programmers' guide mentioned around this context (i.e.
server-side functions) is the GetAttributeByName. Unfortunately I don't
have the source of the postgresql, and if you can suggest a (good)
description about the other functions which I can use, then I don't need to
download it. Anyway, the task I want to write is quite simple: I want to
write a function which is nearly the same as the COPY command, except that
in the 1st row it writes the names of the fields. So I need a func which
returns the No. of the fields and the names of the fields.

Thanks for all:
Circum

__ @
/ \ _ _ Engard Ferenc
l | ( \ / | | (\/) mailto:s-fery(at)kkt(dot)sote(dot)hu
\__/ | | \_ \_/ I I http://pons.sote.hu/~s-fery

Browse pgsql-sql by date

  From Date Subject
Next Message Gordon Clarke 1999-01-03 06:02:35 Re: [SQL] Probs with int2 in functions
Previous Message Tim Perdue, The Des Moines City.net 1999-01-02 03:15:23 Re: [SQL] SELECT DISTINCT