Re: how to make functions multi-user safe? - Mailing list pgsql-general

From Scott Lamb
Subject Re: how to make functions multi-user safe?
Date
Msg-id 3DEEAC33.4040808@slamb.org
Whole thread Raw
In response to how to make functions multi-user safe?  (Robert Treat <xzilla@users.sourceforge.net>)
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: psql question
Next
From: Bruce Momjian
Date:
Subject: Re: get_bit etc.