Re: more than 32 parameters to a function?

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: more than 32 parameters to a function?
Дата
Msg-id 20061026182743.GD13440@fetter.org
обсуждение исходный текст
Ответ на more than 32 parameters to a function?  (Ottavio Campana <ottavio@campana.vi.it>)
Список pgsql-general
On Thu, Oct 26, 2006 at 10:03:27AM -0700, Ottavio Campana wrote:
> I'm writing some stored procedures in pl/pgsql for a database using
> postgresql 7.4.7.
>
> I need to write a complex function with 65 arguments, but when I try
> to run it I get an error complaining that arguments can be up to 32.
>
> Is there a way to solve this problem or do I have to try to split
> the function into three new ones?

You can pass the function one complex type that has as many parts as
you like.  Or several complex types if that makes more sense.

Cheers,
D
--
David Fetter <david@fetter.org> http://fetter.org/
phone: +1 415 235 3778        AIM: dfetter666
                              Skype: davidfetter

Remember to vote!

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

Предыдущее
От: Vivek Khera
Дата:
Сообщение: Re: Monitoring Postgres - Get the SQL queries which are sent to postgres
Следующее
От: Tom Lane
Дата:
Сообщение: Re: more than 32 parameters to a function?