Re: how to make functions multi-user safe?

Поиск
Список
Период
Сортировка
От Scott Lamb
Тема Re: how to make functions multi-user safe?
Дата
Msg-id 3DEEAC33.4040808@slamb.org
обсуждение исходный текст
Ответ на how to make functions multi-user safe?  (Robert Treat <xzilla@users.sourceforge.net>)
Список pgsql-general
Robert Treat wrote:
> Our goal: To have a multiuser-safe function that checks for the existence of a table.  If the table
> exists, it should return the name of the table.  If it does not exist, it will call another
> function that creates the table and then it should return the name of the table after it's been created.

Why? This seems strange to me. Is there some reason your application
can't require the entire schema be created beforehand? What are you
trying to accomplish by that?

Scott


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: psql question
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: get_bit etc.