Re: how to make functions multi-user safe?

From: Scott Lamb <slamb(at)slamb(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: how to make functions multi-user safe?
Date: 2002-12-05 01:30:27
Message-ID: 3DEEAC33.4040808@slamb.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christopher Kings-Lynne 2002-12-05 01:48:37 Re: [GENERAL] PostgreSQL Global Development Group Announces
Previous Message Bruce Momjian 2002-12-05 01:12:32 Re: psql question