pgsql functions: get column headers; optional arguments

Поиск
Список
Период
Сортировка
От Mark
Тема pgsql functions: get column headers; optional arguments
Дата
Msg-id 46CEDCF8.6070404@manngo.net
обсуждение исходный текст
Список pgsql-general
Hi. I hope this is the correct mailing list.

I am writing a function to extract data either from a table or a query
and output it in xml. I have the logic down, but I cannot work out a few
things.

1. How can I read the column headings from the returned data set? I have
resorted to writing the same function in tcl in which I can work out how
to do this, but what about pgsql? I can't use the system tables for
this, since the data may not come from a table.

2. It it possible, either in tcl or pgsql, to have optional function
arguments?

Thanks,

Mark
--


  Mark Simon

Manngo Net Pty Ltd

Phone/Fax: 1300 726 000
mobile: 0411 246 672

email: mark@manngo.net <mailto:mark@comparity.net>
web: http://www.manngo.net

Resume: http://mark.manngo.net



В списке pgsql-general по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Local authentication/security
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: FATAL: could not reattach to shared memory (Win32)