Re: writing a function without installing a language

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: writing a function without installing a language
Дата
Msg-id 482F230F.2060803@postnewspapers.com.au
обсуждение исходный текст
Ответ на Re: writing a function without installing a language  (Craig Ringer <craig@postnewspapers.com.au>)
Список pgsql-general
Craig Ringer wrote:
> ${spencer} wrote:
>> is there a way to write a function without installing a specific
>> language? all i need to do is write a function that can take 3 text's
>> and put them into a list format (eg. "text1, text2 and text3" )

> Failing that, you might be able to use an SQL function (though I don't
> really see how you'd handle the special case for "and" without a
> subquery to obtain a total result count)

... if the input was a set of `text', not 3 individual `text' arguments.
Whoops. It's trivially done with plain SQL.

--
Craig Ringer

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: migration problem
Следующее
От: Vladimir Kosilov
Дата:
Сообщение: pg_standby stuck on a wal file size <16MB