Re: Improving ALTER TYPE support

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Improving ALTER TYPE support
Дата
Msg-id 200605231820.26829.josh@agliodbs.com
обсуждение исходный текст
Ответ на Improving ALTER TYPE support  ("John Jawed" <johnjawed@gmail.com>)
Ответы Re: Improving ALTER TYPE support  ("John Jawed" <johnjawed@gmail.com>)
Re: Improving ALTER TYPE support  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
John,

> I've been working on a function which returns a setof a composite type.
> Everytime I've changed the structure of the returning setof, I've had to
> change the type accordingly, which current means doing a drop type ...
> cascade down to the function. We should allow one of the following:

Why not go all the way and work out a way to define an SRF return type as a 
part of the function?  e.g.

CREATE OR REPLACE FUNCTION some_srf ( param1 int, param2 text )
RETURNS some_srf ( col1 int, col2 numeric ) AS ....

Then the "replace" function would automatically rebuild the type.

-- 
Josh Berkus
PostgreSQL @ Sun
San Francisco


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

Предыдущее
От: "John Jawed"
Дата:
Сообщение: Improving ALTER TYPE support
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Why is CVS server so slow?