"Custom" records?

Поиск
Список
Период
Сортировка
От Joel Palmius
Тема "Custom" records?
Дата
Msg-id Pine.LNX.4.44.0209191144210.15296-100000@ligur.student.mh.se
обсуждение исходный текст
Ответы Re: "Custom" records?  (Neil Conway <neilc@samurai.com>)
Re: "Custom" records?  ("Peter Darley" <pdarley@kinesis-cem.com>)
Список pgsql-general
Before asking this, I suspect that the answer is no, but I'll ask anyway.

Is there a way to return a completely custom column/row record from a
plpgsql function?

I'd want a function "Descriptives(int)" with results to looking like the
below when SELECT:ed :

  measurement | value
  ------------+------
  Mean        |  15.8
  Median      |  16.0
  Std.dev     |   0.8
  Max         |  38.0
  Min         |   0.0

If not possible in plpgsql, is there a workaround while still not having
an external program fetching a lot of data from the DB to do the
calculation?

  // Joel



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

Предыдущее
От: Jean-Christian Imbeault
Дата:
Сообщение: Re: IN vs EXIIST
Следующее
От: Jean-Christian Imbeault
Дата:
Сообщение: Re: IN vs EXIIST