About Types

Поиск
Список
Период
Сортировка
От Hervé Inisan
Тема About Types
Дата
Msg-id 20050512182835.29F921734E8@postfix3-1.free.fr
обсуждение исходный текст
Ответ на pg_dump: ERROR: Memory exhausted in AllocSetAlloc(875574064)  ("Reid Thompson" <Reid.Thompson@ateb.com>)
Список pgsql-general
Hi everybody,

I'm a PG newbie, and I'm trying to write a function that returns a set of
records.
These records come from 2 or more tables (joined).

When I have only 1 table, the return type of the function can be SETOF
mytable.
When I have 2 tables or more, am I obliged to create a type (CREATE TYPE) so
that my function can return a SETOF mytype?

This works fine, but I'm trying to avoid building a specific type for each
row returning function.
Is there any other solution (SQL or PLPGSQL)?

TIA,
-- Hervé Inisan.



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

Предыдущее
От: Marc Munro
Дата:
Сообщение: Thanks. Was: Need to determine how badly tables need vacuuming
Следующее
От: mmiranda@americatel.com.sv
Дата:
Сообщение: Re: About Types